Odd Issue, possibly permit related.

robputt796

Member
May 12, 2011
5
0
51
Hi,

I am experiencing this really strange problem on one of our cPanel servers. We have one user who has made an add-on domain and they have sites in the root directory of the new domain, all works fine, but any subfolders won't open giving a "Not Found" error. Although 1 folder will, very odd. I have used chown to change the subfolders and subfiles to the right user account for the user and used chmod to make sure the permissions are correct. I have also tried removing the domain, re-adding the domain, removing all files and re uploading via FTP, but still the same issue. I have also checked .htaccess but there isn't any rules in the .htaccess file. The server isn't under any real load (0.04 average) and plenty of RAM is available, cPanel is LATEST STABLE. Only seem to have this issue with this one account and this one addon domain, the other addons on the account are working fine.

Here is the directory listing with permits and owner shown... I have gained permission to show this from the user...

[email protected] [/home/ljones/public_html/theaddondomain.com]# ls -l
total 60
drwxr-xr-x 10 ljones ljones 4096 May 12 21:45 ./
drwxr-xr-x 10 ljones nobody 4096 May 12 21:29 ../
drwxr-xr-x 2 ljones ljones 4096 May 12 21:29 cgi-bin/
drwxr-xr-x 2 ljones ljones 4096 Jan 17 18:52 css/
drwxr-xr-x 2 ljones ljones 4096 Jan 11 00:43 ed1/
drwxr-xr-x 2 ljones ljones 4096 May 12 17:23 ed2/
drwxr-xr-x 2 ljones ljones 4096 Apr 4 01:32 img/
drwxr-xr-x 2 ljones ljones 4096 Jan 17 02:23 inc/
-rw-r--r-- 1 ljones ljones 13536 Apr 7 19:26 index.html
drwxr-xr-x 2 ljones ljones 4096 May 12 21:43 LATEST/
drwxr-xr-x 2 ljones ljones 4096 Apr 4 14:45 podcast/
-rw-r--r-- 1 ljones ljones 911 Feb 14 15:43 sie.html
The "podcast", "inc" and "css" folders gives a directory listing as expected, the other folders "ed1", "ed2" and "LATEST" give "Not Found" error pages.

Really very odd, has anyone got any suggestions or ideas on how to solve this?

Kind Regards

Rob
 
Last edited:

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hello Rob,

Please tail the Apache error logs while trying to load those folders in a browser:

Code:
tail -fn0 /usr/local/apache/logs/error_log
Thanks!
 

robputt796

Member
May 12, 2011
5
0
51
Hi,

When running tail on the logs and opening the page it seems to be trying to grab files from other domains...

[email protected] [/]# tail -fn0 /usr/local/apache/logs/error_log
[Fri May 13 07:09:30 2011] [error] [client 67.195.113.218] File does not exist: /home/domainma/public_html/takken-now.com/650-180.html
[Fri May 13 07:09:30 2011] [error] [client 67.195.113.218] File does not exist: /home/domainma/public_html/takken-now.com/404.shtml

[email protected] [/]# tail -fn0 /usr/local/apache/logs/error_log
[Fri May 13 07:09:52 2011] [error] [client 118.208.96.186] File does not exist: /home/proxies/public_html/favicon.ico, referer: /http://www.letmesurf.info/
[Fri May 13 07:09:52 2011] [error] [client 118.208.96.186] File does not exist: /home/proxies/public_html/404.shtml, referer: /http://www.letmesurf.info/

[email protected] [/]# tail -fn0 /usr/local/apache/logs/error_log
[Fri May 13 07:10:31 2011] [error] [client 203.216.255.70] File does not exist: /home/domainma/public_html/takken-now.com/MCP.html
[Fri May 13 07:10:31 2011] [error] [client 203.216.255.70] File does not exist: /home/domainma/public_html/takken-now.com/404.shtml
takken-now.com and letmesurf.info are different user's sites, not this users site. This is the only output whilst trying to load one of the folders discussed above.

Kind Regards

Rob
 

robputt796

Member
May 12, 2011
5
0
51
Hi,

I have ran tail on the apache log, interesting as it doesn't report any errors relating to the directory of these files, or even files owned by this user when I try and load the page.

[email protected] [/]# tail -fn0 /usr/local/apache/logs/error_log
[Fri May 13 07:09:30 2011] [error] [client 67.195.113.218] File does not exist: /home/domainma/public_html/takken-now.com/650-180.html
[Fri May 13 07:09:30 2011] [error] [client 67.195.113.218] File does not exist: /home/domainma/public_html/takken-now.com/404.shtml

[email protected] [/]# tail -fn0 /usr/local/apache/logs/error_log
[Fri May 13 07:09:52 2011] [error] [client 118.208.96.186] File does not exist: /home/proxies/public_html/favicon.ico, referer: /http://www.letmesurf.info/
[Fri May 13 07:09:52 2011] [error] [client 118.208.96.186] File does not exist: /home/proxies/public_html/404.shtml, referer: /http://www.letmesurf.info/

[email protected] [/]# tail -fn0 /usr/local/apache/logs/error_log
[Fri May 13 07:10:31 2011] [error] [client 203.216.255.70] File does not exist: /home/domainma/public_html/takken-now.com/MCP.html
[Fri May 13 07:10:31 2011] [error] [client 203.216.255.70] File does not exist: /home/domainma/public_html/takken-now.com/404.shtml
Although the client IP is not my IP address, which suggests this is different clients using the service and hitting errors. All very strange.

Kind Regards

Rob
 

robputt796

Member
May 12, 2011
5
0
51
Hi,

I have worked it out, just checked the DNS lookup for the domain, looks like the user has the name servers set wrong.

Thanks for your help guys, will contact the user.

Regards

Rob
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hello Rob,

When you tail the Apache error logs, you get errors for any users hitting sites on the machine, which is why you saw those other user sites and another IP. When you did not see that user's domain in the logs when hitting the site, it did indeed indicate either it wasn't logging errors or wasn't even pointing to the server.

Thanks.