Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:apache:migration [2015/07/07 21:37]
Jackson Zhang [Step 2: Install PHP]
litespeed_wiki:apache:migration [2015/07/20 19:36]
Michael Alegre removed
Line 94: Line 94:
   ​   ​
 Most of the time, LSWS loads your Apache configuration straight away without any error. Most of the time, LSWS loads your Apache configuration straight away without any error.
-===== Step 4: Start LiteSpeed ​again =====+===== Step 4: Test and switch to LiteSpeed ​ =====
  
-Restart LSWS and try web sites hosted on port 2080 and secured sites on 2443. If all sites work properly, stop Apache, change "​Apache Port Offset"​ to 0, restart LSWS, all hosted web sites are powered by LiteSpeed now.+Restart LSWS and try web sites hosted on port 2080 and secured sites on 2443. Most of the time your website are running smoothly and very faster already. 
 + 
 +If there is any problem, probably a PHP issue, you need to check LSWS error log, LSWS stderr log or PHP errors log for details. Server error log and stderr log are set to the following location by default unless you customize it.  
 + 
 +  /​usr/​local/​lsws/​logs/​error.log 
 +  /​usr/​local/​lsws/​logs/​stderr.log 
 +   
 +For PHP error logs, they are normally located at the directory where PHP script runs: 
 + 
 +You may go to your server document root and find them: 
 +  find . -name php_errors.log 
 + 
 +You should check the php_errors.log for corresponding location where the PHP script running into problems. Try to clear the errors, which may fix the problem. Sometime even undefined date.timezone in php.ini may cause problems.  
 + 
 +If all sites work properly, stop Apache, change "​Apache Port Offset"​ to 0, restart LSWS, all hosted web sites are powered by LiteSpeed now.
  
 **Note:** Remember to change rc script configuration to remove httpd from the services that get started automatically during a reboot. For example, On CentOS, try this from a root shell: **Note:** Remember to change rc script configuration to remove httpd from the services that get started automatically during a reboot. For example, On CentOS, try this from a root shell:
Line 109: Line 123:
   update-rc.d -f apache2 ​ remove   update-rc.d -f apache2 ​ remove
   update-rc.d lsws defaults   update-rc.d lsws defaults
- 
 ===== Step 5: Monitor ===== ===== Step 5: Monitor =====