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
Next revision Both sides next revision
litespeed_wiki:php:enable_opcode_cache [2018/09/14 16:15]
Michael Alegre [For Shared Hosting Environments:PHP SuEXEC]
litespeed_wiki:php:enable_opcode_cache [2018/09/19 18:32]
Michael Alegre [For Non-Shared Hosting Environments:PHP non-SuEXEC]
Line 11: Line 11:
 Opcode cache can be easily installed through yum or apt-get. To see if it has been enabled, check the corresponding phpinfo page. If you use the PHP non-EXEC mode you may be finished at this point, however when using PHP SuEXEC mode for shared hosting environments such as cPanel or Plesk, you also have to choose the right PHP process mode.  Opcode cache can be easily installed through yum or apt-get. To see if it has been enabled, check the corresponding phpinfo page. If you use the PHP non-EXEC mode you may be finished at this point, however when using PHP SuEXEC mode for shared hosting environments such as cPanel or Plesk, you also have to choose the right PHP process mode. 
  
-==== For Shared Hosting Environments:​PHP SuEXEC ====+==== For Shared Hosting Environments:​ PHP SuEXEC ====
  
 For shared hosting environments such as cPanel or Plesk, you should use PHP SuEXEC mode as your execution method. **LSWS WebAdmin Console -> Server -> General -> Using Apache Configuration File -> PHP suEXEC** to ''​Yes''​. When you check a user's phpinfo page, it may show that Zend Opcode Cache is installed and enabled. ​ For shared hosting environments such as cPanel or Plesk, you should use PHP SuEXEC mode as your execution method. **LSWS WebAdmin Console -> Server -> General -> Using Apache Configuration File -> PHP suEXEC** to ''​Yes''​. When you check a user's phpinfo page, it may show that Zend Opcode Cache is installed and enabled. ​
Line 55: Line 55:
 As of LiteSpeed Web Server v5.3RC2 and above, LSWS //can share opcache between Multi CPU processes//​. As of LiteSpeed Web Server v5.3RC2 and above, LSWS //can share opcache between Multi CPU processes//​.
  
-==== For Non-Shared Hosting Environments:​PHP non-SuEXEC ====+==== For Non-Shared Hosting Environments:​ PHP non-SuEXEC ====
  
 Non-shared hosting environments should use PHP non-exec mode. (**LSWS Web Admin > Server > General > Using Apache Configuration File > PHP suEXEC** = ''​No''​). LSPHP just runs in ''​workgroup''​ mode as the "​nobody"​ user by default. For this situation, as long as you see opcode cache in the phpinfo page, opcode cache has already been enabled. Non-shared hosting environments should use PHP non-exec mode. (**LSWS Web Admin > Server > General > Using Apache Configuration File > PHP suEXEC** = ''​No''​). LSPHP just runs in ''​workgroup''​ mode as the "​nobody"​ user by default. For this situation, as long as you see opcode cache in the phpinfo page, opcode cache has already been enabled.
  • Admin
  • Last modified: 2019/05/17 21:18
  • by Kacey Schroeder