View Single Post
  #6  
Old 05-25-2012, 12:21 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Quote:
Originally Posted by jackwilliams View Post
Hello,

I could see that if I switch to apache it is giving the following error.
++++++++++
LiteSpeed Web Server Control Operation ... Switch to Apache

LSWS Stopped.
Apache is not up within 30 secs, try again by force kill litespeed.
Apache is still not up.

Failed to switch to Apache! Please either start LiteSpeed or manually switch to Apache!

Apache is not started may be caused by configuration error. To manually check this problem, please ssh to your server and check:

Try stop LiteSpeed if lshttpd still running:
killall -9 lshttpd

remove the lsws wrapper if the original one is found:

restore Apache httpd if /usr/local/apache/bin/httpd_ls_bak exists.
mv -f /usr/local/apache/bin/httpd_ls_bak /usr/local/apache/bin/httpd

restore cPanel restart httpd script if /scripts/restartsrv_httpd_ls_bak exists.
mv -f /scripts/restartsrv_httpd_ls_bak /scripts/restartsrv_httpd

run the restart command manually: /scripts/restartsrv_httpd and check the error.
++++++++

I have tried to kill the process and tried to do the same thing. But still i get the above error when i switch to apache.
These are command to run from shell to get Apache to start and lsws to stop.
There is no need to switch to Apache in plugin.

Quote:
Originally Posted by jackwilliams View Post
I have found one more possible cause that the PHP is working with lsphp
++++++++
# /usr/local/lsws/fcgi-bin/lsphp5 -i | grep Configuration
Configuration File (php.ini) Path => /usr/local/lsws/lsphp5/lib
Loaded Configuration File => /usr/local/lsws/lsphp5/lib/php.ini
Configuration
++++++++

Normally, the litespeed PHP with cPanel will point to the default location php.ini.
++++++++
# /usr/local/lsws/fcgi-bin/lsphp5 -i | grep Configuration
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini
++++++++

What can I do now?
maybe your cwd is in /usr/local/lsws/lsphp5/lib. the php.ini in current dir will take precedence. so it is not an issue.
Reply With Quote