02-19-2013, 04:44 AM
Join Date: Feb 2013
Enterprise Evaluation stuck - php.ini not loading for suPHP site, no MySQL either
We have just started our 14 day Enterprise trial, are have a customer that is interested in upgrading their Apache web server to LiteSpeed. They are using the Interworx panel. The underlying OS is Redhat 6.
We found some quite good install instructions here:
This install went fine, we need to use suPHP which we enabled during setup. Once complete - we then logged into Litespeed admin, and compiled PHP 5.4.11.
We used the following compile options:
'./configure' '--prefix=/usr/local/lsws/lsphp5' '--with-mysqli' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--with-libdir=lib64' '--with-mysql' '--with-litespeed'
This all went swimmingly, and soon the compile was complete.
We switched the Interworx Litespeed plugin on, and were then able to create a site and run a phpinfo which showed that Litespeed was working, and that the PHP version was correct.
However we immediately saw a problem. No Php.ini was loaded for this site.
PHP was telling us it was looking for a configuration file in /usr/local/lsws/lsphp5/lib/php.ini
However the standard LSWS install and PHP compile does not place this file in there - hence it was missing - simple fix we thought.
So we copied the following file:
Restarted. Same problem.
This is an suphp setup, and we could also see this was working as the phpinfo file was set to the correct user.
We would like to get unique php.inis for each site on the server, so we followed this thread:
We set PHPRC=$VH_ROOT/myphp.ini as directed, restarted and still no dice.
However phpinfo does show '_ENV["PHPRC"]' in PHP Variables and this is set to the right place.
As mentioned in the title, we are unable to connect to a MySQL database from this instance, (testing a Wordpress install) but we have put that down to the fact that the php.ini is not loading.
This is a limited trial period, so we would really like to get up and running as soon as possible so we can devote time to important testing of applications / plugins for compatibility.
Hope someone can help....