View Single Post
  #5  
Old 02-13-2013, 07:13 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
the issue resolved. the cause is in shared host, lsphp5 loads both php.ini:
Loaded Configuration File /usr/local/lib/php.ini
Additional .ini files parsed /home/user1/public_html/php.ini
some setting in /usr/local/lib/php.ini caused 503 error.

the way to debug/fix it, created a new lsphp53 ext app. the main difference is:
lsphp53 --- PHPRC=$VH_ROOT/public_html
lsphp5 --- PHP_INI_SCAN_DIR=$VH_ROOT/public_html

in lsws admin console->Server -->Script Handler, add php53 suffix which will pick up lsphp53
then in /home/user1/public_html/.htaccess, add this line:
AddType application/x-httpd-php53 php53 php

restart lsws, then check phpinfo,
Loaded Configuration File /home/user1/public_html/php.ini
only.

we've updated our wiki page:
http://www.litespeedtech.com/support...rol_panel_lsws
added one line:
"This method is not recommended if you replace apache with suphp, use PHPRC is recommended"
Reply With Quote