apache not reading vhost?

Started by lee069, May 03, 2015, 11:57:38 AM

Previous topic - Next topic

lee069

Hi and thanks for taking the time to read this.

I have seen several people with the same problem as me but yet haven't seen a fix.

My server will only display the website in /usr/local/apache/htdocs/ and seems to ignore the vhost file altogether.

Any fixes I could try?

Regards Lee.

Glenn

Hi there

please explain a bit more about the way you have set your server up , are you using varnish ?

lee069

Hi, no I'm not using varnish.
I have a fresh install of centos 6.6 desktop minimum.
I've been over and over the setup's but can't find anything wrong.
The only thing I did by mistake was installed NGINX but I've disabled it again.

Many thanks Lee.

Glenn

Do you have DNS setup with www A records pointing to the server ip address for the domains that arent working ?

lee069


Glenn

Ok i see whats happening if i visit the website , what does tail -f /usr/local/apache/logs/error_log show when you refresh the website ? it could be permissions on the include files or vhost file

Glenn

Also check file and folder permissions for the website files while youre at it

lee069

the log shows this:-

[Sun May 03 15:02:05 2015] [error] [client 196.210.209.153] File does not exist: /usr/local/apache/htdocs/img, referer: http://www.farmradio.org.uk/
[Sun May 03 15:04:57 2015] [error] [client 196.210.209.153] File does not exist: /usr/local/apache/htdocs/img, referer: http://www.farmradio.org.uk/
[Sun May 03 15:06:47 2015] [error] [client 196.210.209.153] File does not exist: /usr/local/apache/htdocs/img, referer: http://www.farmradio.org.uk/
[Sun May 03 15:07:45 2015] [error] [client 196.210.209.153] File does not exist: /usr/local/apache/htdocs/img, referer: http://www.farmradio.org.uk/
[Sun May 03 15:08:46 2015] [error] [client 128.65.103.201] File does not exist: /usr/local/apache/htdocs/farmradio.xml
[Sun May 03 15:14:57 2015] [error] [client 196.210.209.153] File does not exist: /usr/local/apache/htdocs/img, referer: http://www.farmradio.org.uk/
[Sun May 03 15:14:59 2015] [error] [client 196.210.209.153] File does not exist: /usr/local/apache/htdocs/img, referer: http://www.farmradio.org.uk/
[Sun May 03 15:15:03 2015] [error] [client 196.210.209.153] File does not exist: /usr/local/apache/htdocs/img, referer: http://www.farmradio.org.uk/
[Sun May 03 15:15:46 2015] [error] [client 151.227.94.108] File does not exist: /usr/local/apache/htdocs/img, referer: http://www.farmradio.org.uk/

brijendrasial

There is a known bug to us that enabling nginx will cause your apache not to work as expected. You can contact your server administrator to fix it.

lee069

Thanks for the reply, this server is owned by me on our company network, what do I need to do?

Regards Lee.

brijendrasial

Well if you dont have a server admin, I would say best possible option for you is to reinstall CWP or I think CWP team provides managed support, so you can pay them and get it.

Glenn

/usr/local/apache/htdocs/farmradio.xml

it looks like youre not hosting from /home/user/public_html i would try correcting the config on the server before reinstalling everything , could learn something new (-;

lee069

100% agree with you about the paths but were can I set it?

Many thanks.

Glenn

Id start by making sure Nginx is really not installed, then delete the current user youre using ,reboot the server and re compile apache with the options you want,( from within cwp) then add a new user and see where the home folder is created , compare the path to the config in vhosts under apache in cwp , then lets see if it works.

Administrator

have you tried to rebuild apache vhosts ?