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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > [solved] PHP.ini Files

Reply
 
Thread Tools Display Modes
  #1  
Old 02-21-2012, 08:42 PM
craigles craigles is offline
Member
 
Join Date: Jun 2011
Posts: 34
Default [solved] PHP.ini Files

Hi Everyone,

Hoping somebody can point me in the right direction with this query.

I'm looking at replacing our fleet with Litespeed instead of Apache, but I've hit a roadblock for me.

Basically, on our current setup when a user creates a custom php.ini in their home directory, php reads that as well as the master php.ini.

It seems I can't make the same thing happen with Litespeed.

Basically, when I run a phpinfo on Litespeed with a custom php.ini, it's not bringing in all the extensions as well. Whereas that is what it's currently doing on our existing setup.

Things like FFMPEG, uploadprogress, memcache, suhosin, etc....

Does anybody have any idea?

Cheers,
Craig

Last edited by NiteWave; 02-22-2012 at 05:01 PM..
Reply With Quote
  #2  
Old 02-21-2012, 09:18 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,293
please refer
http://www.litespeedtech.com/support...rol_panel_lsws
Reply With Quote
  #3  
Old 02-21-2012, 09:45 PM
craigles craigles is offline
Member
 
Join Date: Jun 2011
Posts: 34
I've been staring at that particular link all day long and have tried any number of options to make it work and it's not working that way at all.

If I use PHPRC=$VH_ROOT/public_html (option1) then it seems to load both master and local php.ini files, however NONE of the extensions show up at all ina phpinfo command.

If I use PHP_INI_SCAN_DIR=$VH_ROOT/public_html (option2) then it does the same thing.

However, if none of the above are mentioned in the environmental vars for php then the master php.ini loads WITH extensions.
Reply With Quote
  #4  
Old 02-22-2012, 02:27 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
Quote:
Originally Posted by craigles View Post
I've been staring at that particular link all day long and have tried any number of options to make it work and it's not working that way at all.

If I use PHPRC=$VH_ROOT/public_html (option1) then it seems to load both master and local php.ini files, however NONE of the extensions show up at all ina phpinfo command.

If I use PHP_INI_SCAN_DIR=$VH_ROOT/public_html (option2) then it does the same thing.

However, if none of the above are mentioned in the environmental vars for php then the master php.ini loads WITH extensions.
Option 1 is for local php.ini only. Option 2 is local php.ini on top of master ini. Pls verify them with phpinfo page (check field "Loaded Configuration File" and "Additional .ini files parsed" ).
Reply With Quote
  #5  
Old 02-22-2012, 02:34 PM
craigles craigles is offline
Member
 
Join Date: Jun 2011
Posts: 34
Thanks for the info.

I just decided to completely clear them all out, apply changed and graceful restart then added option2 back in and did the same again and it seems to be working fine now.

Maybe with all my stuffing around I gave Litespeed a headache and it wasn't sure what it was doing.

Anyway, thank's so much for your assistance - much appreciated

Cheers,
Craig
Reply With Quote
Reply

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 04:34 AM.



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