LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > [Resolved] [ERROR] Can not open directory for URI: + 404 Not Found

Reply
 
Thread Tools Display Modes
  #1  
Old 02-06-2010, 05:24 AM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
Default [Resolved] [ERROR] Can not open directory for URI: + 404 Not Found

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] [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]

on web 2

particularly this line

Quote:
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
Code:
2010-02-06 06:49:43.266 [INFO] [lsphp5] add child process pid: 5766
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
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

Quote:
2010-02-06 07:04:12.663 ERROR HttpListener::start(): Can't listen at address adminListener: Address already in use!
2010-02-06 07:04:12.663 ERROR HttpServer::addListener(adminListener) failed to create new listener
2010-02-06 07:04:12.663 ERROR [config:admin:listener:adminListener] failed to start listener on address *:7080!
2010-02-06 07:04:12.663 ERROR [config:admin:listener] No listener is available for admin virtual host!
2010-02-06 07:04:12.663 ERROR Fatal error in configuration, exit!
2010-02-06 07:04:12.827 WARN [config:server:listener] No listener is available for normal virtual host!
2010-02-06 07:33:02.383 ERROR [HTAccess] Failed to open [/home/username/public_html/forums/.htaccess]: Permission denied
2010-02-06 07:33:10.750 ERROR [HTAccess] Failed to open [/home/username/public_html/.htaccess]: Permission denied
web2 litespeed admin panel reports

Quote:
Found 2 warning/error messages in the log: More
Time Level Message
2010-02-06 06:49:43.250 ERROR [HTAccess] Failed to open [/home/username/public_html/.htaccess]: Permission denied
2010-02-06 07:03:27.887 WARN [config:server:listener] No listener is available for normal virtual host!
no idea what's going on ?

Hope someone has some ideas

thanks in advance

Last edited by NiteWave; 02-08-2010 at 06:29 PM..
Reply With Quote
  #2  
Old 02-07-2010, 09:22 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
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.
Reply With Quote
  #3  
Old 02-07-2010, 09:30 PM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
thanks.. apparently it was a issue with whm/apache config site which the web host fixed - not sure they did exactly.
Reply With Quote
Reply

Tags
404, htaccess, permission denied, url:, [error]

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:56 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.