LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   General (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=25)
-   -   HTTP 403 for any PHP pages (http://www.litespeedtech.com/support/forum/showthread.php?t=2886)

04nunhucks 04-19-2009 05:04 AM

HTTP 403 for any PHP pages
 
PHP was fine this morning, until a few seconds ago where are php page gave a HTTP 403 access denied:

Here's the log:

2009-04-19 07:02:05.589 ERROR [config:scripthandler] Can not find handler with type: 10, name: lsphp5.
2009-04-19 07:02:05.589 ERROR [config:scripthandler] Can not find External Application: lsphp5, type: lsapi
2009-04-19 07:02:05.589 ERROR [config:scripthandler] use static file handler for suffix [php]
2009-04-19 07:02:05.589 ERROR [config:scripthandler] Can not find handler with type: 10, name: lsphp5.
2009-04-19 07:02:05.589 ERROR [config:scripthandler] Can not find External Application: lsphp5, type: lsapi
2009-04-19 07:02:05.589 ERROR [config:scripthandler] use static file handler for suffix [php5]
2009-04-19 07:02:16.541 ERROR [78.144.192.95:28721-0#APVH_urvps.com] MIME type [application/x-httpd-php] for suffix '.php' does not allow serving as static file, access denied!
2009-04-19 07:02:16.547 ERROR [78.144.192.95:28722-0#APVH_urvps.com] MIME type [application/x-httpd-php] for suffix '.php' does not allow serving as static file, access denied!
2009-04-19 07:02:18.342 ERROR [78.144.192.95:28721-1#APVH_urvps.com] MIME type [application/x-httpd-php] for suffix '.php' does not allow serving as static file, access denied!
2009-04-19 07:02:26.618 ERROR [78.144.192.95:28721-3#APVH_urvps.com] MIME type [application/x-httpd-php] for suffix '.php' does not allow serving as static file, access denied!

Anyone know what to do? I restarting the server to no avail.

mistwang 04-19-2009 01:41 PM

You probably removed the script handler for .php5 from LSWS server configuration.

04nunhucks 04-19-2009 01:52 PM

I only removed the php4 but php5 is still here.

mistwang 04-19-2009 02:29 PM

something wrong lsphp5 external application, check the log file when server start.
Have you made any configuration change or to lsws/fcgi-bin/lsphp5 ?

04nunhucks 04-19-2009 02:34 PM

Quote:

Originally Posted by mistwang (Post 14651)
something wrong lsphp5 external application, check the log file when server start.
Have you made any configuration change or to lsws/fcgi-bin/lsphp5 ?

Nothing bad in server log file. I haven't made any configuration changed to lsphp5

mistwang 04-19-2009 02:39 PM

double check your lsphp5 external application configuration from LSWS console.

04nunhucks 04-19-2009 02:43 PM

Quote:

Originally Posted by mistwang (Post 14654)
double check your lsphp5 external application configuration from LSWS console.

I changed the run at start up to on, but, I've found the problem:

/usr/local/lsws/fcgi-bin/lsphp5 does not exist. Please create manually

What do I do now - it says create manually. In WinSCP it shows it, but the shortcut link is in red, and it says that the file doesn't exist :s

anewday 04-19-2009 02:45 PM

Try to rebuild lsphp5 from web console.

04nunhucks 04-19-2009 03:00 PM

Quote:

Originally Posted by anewday (Post 14657)
Try to rebuild lsphp5 from web console.

The main domain works, but the subdomain doesn, still 403:

http://my.urvps.com:90/

2009-04-19 17:00:37.422 ERROR [78.151.80.136:12936-0#APVH_my.urvps.com] MIME type [application/x-httpd-php] for suffix '.php' does not allow serving as static file, access denied!
2009-04-19 17:00:43.708 ERROR [78.151.80.136:12936-1#APVH_my.urvps.com] MIME type [application/x-httpd-php] for suffix '.php' does not allow serving as static file, access denied!

mistwang 04-20-2009 08:28 AM

looks like PHP 4 is still being used. check the lsws/fcgi-bin/lsphp5 and the file it points, usually lsws/fcgi-bin/lsphp-5.2.9 .


All times are GMT -7. The time now is 01:26 AM.