LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Enterprise Evaluation stuck - php.ini not loading for suPHP site, no MySQL either

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-19-2013, 04:44 AM
jdamnation jdamnation is offline
New Member
 
Join Date: Feb 2013
Posts: 6
Default Enterprise Evaluation stuck - php.ini not loading for suPHP site, no MySQL either

Hi there.

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:

http://www.rackspace.com/knowledge_c...ling-litespeed

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:

/usr/local/lsws/phpbuild/php-5.4.11/php.ini-production

over to

/usr/local/lsws/lsphp5/lib/php.ini

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:

http://www.litespeedtech.com/support...ead.php?t=4782

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....

Cheers,

JD
Reply With Quote
 

Tags
interworx, mysql, php.ini

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:15 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.