WordFence requires auto_prepend_file in order to work correctly, as it allows the Wordfence WAF to load before WordPress, rather than afterward. By default, the following directive in .htaccess is used to load WordFence, but this directive does not work in OpenLiteSpeed. php_value auto_prepend_file ‘/home/example.com/public_html/wordfence-waf.php’ Luckily,…
What’s PHP Detached Mode? PHP Detached Mode is new in OpenLiteSpeed v1.5.6. In previous versions, all PHP processes were attached to OpenLiteSpeed processes. As such, when OpenLiteSpeed restarted, so would the PHP processes. In PHP Detached Mode, the PHP processes will continue running independently, even when OpenLiteSpeed restarts. When you run in PHP SuEXEC ProcessGroup Mode, PHP process…
Troubleshooting 503 Errors 503 errors are often caused by a malfunction in PHP, and are not related to Apache or LiteSpeed Web Server. One of the common reasons for a 503 error is a PHP crash. Generally, troubleshooting 503 errors is out of our support…
Besides configuring PHP by virtual host, OLS also has ability to set up PHP by directory. This means that you can have different directories running different PHP versions to further customize your server environment.
OpenLiteSpeed allows you to change PHP Settings by Vhost and User, if the global settings are inappropriate.
Compiling PHP is not recommended way to setup your openlitespeed web server and most of the users don’t need to compile PHP at all. You should install LSPHPs through either LiteSpeed or remi repository. In some very rare situation, a user may need to…