something in the last build damage new users in CentOS 6.x

nservices

Verified User
Joined
Dec 11, 2008
Messages
302
Hi,
am working with CentOS 6.x in few of DA servers
in the last week I have 2 cases that I did
Code:
./build update
./build update_versions
and after that, if I added new users and domains to that servers, I got error 404 randomly in some of the requests
I did ./build rewrite_confs
few times, without any help

additional info:
* mod_security is active
* Visualization over OpenVZ
* no nay problems like that before

any suggestions?

Regards,
StarNetwork
 
Have you checked the apache logs? If there is an error, it should say why:
/var/log/httpd/error_log
/var/log/httpd/domains/domain.com.error.log

plus the mod_security logs, if applicable.

If it continues, try disabling mod_security (to test) to see if the problem goes away.

John
 
Hi John,
Hi John,
thanks for your reply
I checked /var/log/httpd/error_log
and I see the errors, for example
Code:
[Wed May 04 21:00:37.100424 2016] [:error] [pid 16129] [client 5.9.11.11:56913] script '/var/www/html/installer.php' not found or unable to stat
[Wed May 04 21:00:42.703316 2016] [:error] [pid 16295] [client 5.9.11.11:56914] script '/var/www/html/installer.php' not found or unable to stat
[Wed May 04 21:00:43.736904 2016] [:error] [pid 16295] [client 5.9.11.11:56914] script '/var/www/html/installer.php' not found or unable to stat
[Wed May 04 21:01:03.319102 2016] [:error] [pid 16304] [client 5.9.11.11:56985] script '/var/www/html/installer.php' not found or unable to stat, referer: http://domainname.tld/installer.php
[Wed May 04 21:04:40.289190 2016] [:error] [pid 16850] [client 5.9.11.11:57216] script '/var/www/html/installer.php' not found or unable to stat
[Wed May 04 21:04:41.350014 2016] [:error] [pid 16850] [client 5.9.11.11:57216] script '/var/www/html/installer.php' not found or unable to stat
[Wed May 04 21:04:42.922637 2016] [:error] [pid 16850] [client 5.9.11.11:57216] script '/var/www/html/installer.php' not found or unable to stat
[Wed May 04 21:04:43.826917 2016] [:error] [pid 16850] [client 5.9.11.11:57216] script '/var/www/html/installer.php' not found or unable to stat
[Wed May 04 21:04:44.380698 2016] [:error] [pid 16850] [client 5.9.11.11:57216] script '/var/www/html/installer.php' not found or unable to stat
[Wed May 04 21:04:48.638629 2016] [:error] [pid 16885] [client 5.9.11.11:57229] script '/var/www/html/installer.php' not found or unable to stat
[Wed May 04 21:04:49.262625 2016] [:error] [pid 16885] [client 5.9.11.11:57229] script '/var/www/html/installer.php' not found or unable to stat

and after some refresh it's work, it's look like sometime it's looking for the files at /var/www/html instead of user home directory even I checked it manually and the vhost settigns are correct
I also checked: https://help.directadmin.com/item.php?id=242
and it's not help.

I also disabled the mod_security from this domain and it's didn't help

Regards,
 
If you're not seeing any matching 404 errors in the logs when you hit them, another possibility is that the domain is set to resolves to 2 different IPs at the same time.. one being correct, the other pointing to a different server.

As for your output, if "installer.php" is the correct file, but /var/www/html is not the correct path, then it means the incoming IP to the device doesn't match the IP set in the VirtualHost.
This would be related for that:
http://help.directadmin.com/item.php?id=242

So is probably either a dns issue where the domain resolves to 2+ values, or a neworking issue where a proxy might be rotating the incoming IP somehow.
I'm not too sure.

John
 
Back
Top