Hello everyone
I'm currently setting up my Webserver and decided to also test LiteSpeed.
I'm using Virtualmin as my control panel. From there I can configure my virtualhost's which get saved inside the httpd.conf.
With the installation of Virtualmin alot of other programs and configurations come along. e.g. PHP, Apache, Mysql, AWStats etc.
Virtualmin sets up an fcgi suEXEC engine to use mutiple versions of PHP configured for every virtualhost at directory level. Besides the php54 and php70 that comes installed with Virtualmin I also installed php72 from Remi repro.
Now to my question/problem. I have installed a trial version of LiteSpeed following a few guides. I successfully configured LiteSpeed to read the Apache config. All the Virtualhosts show up inside the LS Webadmin.
During the insallation the wizard is asking:
Since Virtualmin already sets up a PHP engine and makes it configurable it's best to just use that, right? In the first install I answered "n" to not setup PHP for LS. But then I will get this error when trying to read a php file. (Copied from the server log viewer)
I think the situation here is pretty obvious. PHP just doesn't get called and so LiteSpeed prevents printing the php code or sending it for download and sends a 403. (Which is a nice feature)
Then I reinstalled LS with the default PHP setting "Y" which seems to setup an own internal PHP handler. As expected the PHP files are running now from cgi-bin inside lsws. But I think this is not the right way to do it for my usecase. Calling a wordpress also gets the following error.
Here the phpinfo from both Virtualmin's cgi and LSWS's cgi.
So how could I integrete the PHP engine which Virtualmin setup for me inside LiteSpeed?
Thanks alot already for your help.
Greets Toby
I'm currently setting up my Webserver and decided to also test LiteSpeed.
I'm using Virtualmin as my control panel. From there I can configure my virtualhost's which get saved inside the httpd.conf.
With the installation of Virtualmin alot of other programs and configurations come along. e.g. PHP, Apache, Mysql, AWStats etc.
Virtualmin sets up an fcgi suEXEC engine to use mutiple versions of PHP configured for every virtualhost at directory level. Besides the php54 and php70 that comes installed with Virtualmin I also installed php72 from Remi repro.
Now to my question/problem. I have installed a trial version of LiteSpeed following a few guides. I successfully configured LiteSpeed to read the Apache config. All the Virtualhosts show up inside the LS Webadmin.
During the insallation the wizard is asking:
Code:
You can setup a global script handler for PHP with the pre-built PHP engine
shipped with this package now. The PHP engine runs as Fast CGI which
outperforms Apache's mod_php.
You can always replace the pre-built PHP engine with your customized PHP
engine.
Code:
MIME type [application/x-httpd-php] for suffix '.php' does not allow serving as static file, access denied!
Then I reinstalled LS with the default PHP setting "Y" which seems to setup an own internal PHP handler. As expected the PHP files are running now from cgi-bin inside lsws. But I think this is not the right way to do it for my usecase. Calling a wordpress also gets the following error.
Code:
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
Virtualmin/Apache:
https://qbn.ch/wp/LSWS:
https://qbn.ch:2443/wp/So how could I integrete the PHP engine which Virtualmin setup for me inside LiteSpeed?
Thanks alot already for your help.
Greets Toby