[Resolved] [ERROR] Can not open directory for URI: + 404 Not Found

Discussion in 'Install/Configuration' started by eva2000, Feb 6, 2010.

  1. eva2000

    eva2000 Member

    On WHM/Cpanel 11.25.xx based server with litespeed 4.0.12 on 2x web servers load balanced using haproxy where load balancer ip is xxx.xx.xxx.x13

    Both web1 and web2 have:

    • CentOS 5.4 64bit
    • PHP 5.2.12 + Eaccelerator
    • Memcached 1.4.4 and Memache 2.2.5 installed

    Everything was working fine for past few days until today decided to upgrade a vbdrupal install from 5.19 to 5.21 and copy overwrote some /home/username/public_html/* files

    Problems
    now it seems out of the blue after doing test upgrades for vbdrupal account for domain mydomain.com at /home/username/public_html on web1 and web2, litespeed no longer serves pages and gives me the following errors

    On mydomain.com through load balancer ip xxx.xx.xxx.x13 gives me:

    Code:
    [ERROR] Can not open directory for URI: /~username/!
    
    Also tried bypassing the load balancer direct to web1/web2 copies at


    give same error messages

    and accessing http://forums.mydomain.com/

    gives message

    Code:
    404 Not Found
    The resource requested could not be found on this server!
    
    I double checked the file ownership/permissions and they were as before when it was working ?

    file permissions for /home/username/public_html/.htaccess

    Code:
    -rwxrwxrwx  1 username username 4.5K Sep 21 09:26 .htaccess*
    looking at web 1 and web 2 error_logs

    on web 1
    Code:
    2010-02-06 06:50:00.006 [INFO] ProcInfo Pid: 30118, socket: /tmp/lshttpd/lsphp5.sock
    2010-02-06 06:50:00.006 [INFO] [lsphp5] pid list size: 0, pid stop list size: 0
    2010-02-06 06:50:01.651 [INFO] [127.0.0.1:47591-0#APVH_*_web1.mydomain.com] File not found [/usr/local/apache/htdocs/whm-server-status]
    2010-02-06 06:50:01.651 [INFO] [127.0.0.1:47591-0#APVH_*_web1.mydomain.com] Cannot found appropriate handler for [/whm-server-status]
    2010-02-06 06:50:01.657 [INFO] [127.0.0.1:47592-0#APVH_*_web1.mydomain.com] File not found [/usr/local/apache/htdocs/whm-server-status]
    2010-02-06 06:50:01.657 [INFO] [127.0.0.1:47592-0#APVH_*_web1.mydomain.com] Cannot found appropriate handler for [/whm-server-status]
    2010-02-06 06:52:33.980 [INFO] Remove pid: 29902
    2010-02-06 06:52:33.980 [INFO] Pid: 29902 associated with [AdminPHP]
    2010-02-06 06:52:33.980 [INFO] ProcInfo Pid: 29902, socket: /tmp/lshttpd/admin_php.sock
    2010-02-06 06:52:33.981 [INFO] [AdminPHP] pid list size: 0, pid stop list size: 0
    2010-02-06 06:55:01.313 [INFO] [127.0.0.1:46617-0#APVH_*_web1.mydomain.com] File not found [/usr/local/apache/htdocs/whm-server-status]
    2010-02-06 06:55:01.313 [INFO] [127.0.0.1:46617-0#APVH_*_web1.mydomain.com] Cannot found appropriate handler for [/whm-server-status]
    2010-02-06 06:55:01.324 [INFO] [127.0.0.1:46618-0#APVH_*_web1.mydomain.com] File not found [/usr/local/apache/htdocs/whm-server-status]
    2010-02-06 06:55:01.324 [INFO] [B][127.0.0.1:46618-0#APVH_*_web1.mydomain.com] Cannot found appropriate handler for [/whm-server-status]
    2010-02-06 06:57:20.494 [ERROR] [HTAccess] Failed to open [/home/username/public_html/forums/.htaccess]: Permission denied
    2010-02-06 06:57:20.494 [INFO] [208.xx.xxx.xxx:48287-0#APVH_forums.mydomain.com] File not found [/home/username/public_html/forums/]
    2010-02-06 06:57:20.494 [INFO] [208.xx.xxx.xxx:48287-0#APVH_forums.mydomain.com] Cannot found appropriate handler for [/]
    2010-02-06 06:57:20.494 [INFO] [208.xx.xxx.xxx:48287-0#APVH_forums.mydomain.com] File not found [/home/username/public_html/forums/404.shtml]
    2010-02-06 06:57:20.494 [INFO] [208.xx.xxx.xxx:48287-0#APVH_forums.mydomain.com] Cannot found appropriate handler for [/404.shtml][/B]
    

    on web 2

    particularly this line

    Code:
    2010-02-06 06:49:43.266 [INFO] [lsphp5] add child process pid: 5766
    [B]2010-02-06 06:49:43.726 [NOTICE] [220.xxx.xxx.76:3325-0#APVH_mydomain.com] [STDERR] PHP Warning: opendir(/home/username/public_html/) [function.opendir]: failed to open dir: Permission denied in /usr/local/lib/php/autoindex/default.php on line 136[/B]
    2010-02-06 06:49:54.079 [INFO] [lsphp5] kill pid: 5766
    2010-02-06 06:49:54.082 [INFO] Remove pid: 5766
    2010-02-06 06:49:54.082 [INFO] Pid: 5766 associated with [lsphp5]
    2010-02-06 06:49:54.082 [INFO] ProcInfo Pid: 5766, socket: /tmp/lshttpd/lsphp5.sock
    2010-02-06 06:49:54.082 [INFO] [lsphp5] pid list size: 0, pid stop list size: 0
    2010-02-06 06:50:01.534 [INFO] [127.0.0.1:57203-0#APVH_*_web2.mydomain.com] File not found [/usr/local/apache/htdocs/whm-server-status]
    2010-02-06 06:50:01.534 [INFO] [127.0.0.1:57203-0#APVH_*_web2.mydomain.com] Cannot found appropriate handler for [/whm-server-status]
    2010-02-06 06:50:01.540 [INFO] [127.0.0.1:57204-0#APVH_*_web2.mydomain.com] File not found [/usr/local/apache/htdocs/whm-server-status]
    2010-02-06 06:50:01.540 [INFO] [127.0.0.1:57204-0#APVH_*_web2.mydomain.com] Cannot found appropriate handler for [/whm-server-status]
    2010-02-06 06:53:28.739 [INFO] [208.xx.xxx.67:33773-0#APVH_*_web2.mydomain.com] File not found [/usr/local/apache/htdocs/server-status]
    2010-02-06 06:53:28.739 [INFO] [208.xx.xxx.67:33773-0#APVH_*_web2.mydomain.com] Cannot found appropriate handler for [/server-status]
    2010-02-06 06:53:58.997 [INFO] Remove pid: 5712
    2010-02-06 06:53:58.998 [INFO] Pid: 5712 associated with [AdminPHP]
    2010-02-06 06:53:58.998 [INFO] ProcInfo Pid: 5712, socket: /tmp/lshttpd/admin_php.sock
    2010-02-06 06:53:58.998 [INFO] [AdminPHP] pid list size: 0, pid stop list size: 0
    2010-02-06 06:55:01.204 [INFO] [127.0.0.1:60125-0#APVH_*_web2.mydomain.com] File not found [/usr/local/apache/htdocs/whm-server-status]
    2010-02-06 06:55:01.204 [INFO] [127.0.0.1:60125-0#APVH_*_web2.mydomain.com] Cannot found appropriate handler for [/whm-server-status]
    2010-02-06 06:55:01.211 [INFO] [127.0.0.1:60126-0#APVH_*_web2.mydomain.com] File not found [/usr/local/apache/htdocs/whm-server-status]
    2010-02-06 06:55:01.211 [INFO] [127.0.0.1:60126-0#APVH_*_web2.mydomain.com] Cannot found appropriate handler for [/whm-server-status]
    
    web 1 litespeed admin control panel reports

    web2 litespeed admin panel reports

    no idea what's going on ?

    Hope someone has some ideas :)

    thanks in advance
    Last edited by a moderator: Feb 9, 2010
  2. mistwang

    mistwang LiteSpeed Staff

    It is easy to confirm there is a permission issue or not. Just try

    sudo -u nobody cat /home/username/public_html/.htaccess

    If you get permission denied error, there is a permission issue, maybe you need to check permissions of the parent directory.
  3. eva2000

    eva2000 Member

    thanks.. apparently it was a issue with whm/apache config site which the web host fixed - not sure they did exactly.

Share This Page