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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > [solved] PHP per-user configuration

Reply
 
Thread Tools Display Modes
  #1  
Old 04-08-2011, 06:32 AM
fernandomm fernandomm is offline
Member
 
Join Date: Oct 2010
Posts: 27
Default [solved] PHP per-user configuration

Hi,

I am trying to use php per-user configuration on litespeed + cpanel.

I created the file /usr/local/apache/conf/userdata/std/2/user/domain/php.conf with content:

Code:
SetEnv PHP_INI_SCAN_DIR /home/user/ini
But it's not working. What is the correct way to do this with litespeed?

Thanks!

Last edited by NiteWave; 04-13-2011 at 08:23 AM..
Reply With Quote
  #2  
Old 04-08-2011, 11:06 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Please reference this doc:

http://www.litespeedtech.com/support...rol_panel_lsws
Reply With Quote
  #3  
Old 04-08-2011, 01:19 PM
fernandomm fernandomm is offline
Member
 
Join Date: Oct 2010
Posts: 27
Hi,

I have tried both options: SetEnv and PHPIniDir.

When running verify_vhost_includes i get this error for PHPIniDir:

Code:
Syntax error on line 3 of /usr/local/apache/conf/_ensure_vhost_includes_vhostless_test_file.inc:
Invalid command 'PHPIniDir', perhaps misspelled or defined by a module not included in the server configuration
And the SetEnv option doesn't seem to apply changes, as php.ini remains the same in phpinfo.

Any ideas?
Reply With Quote
  #4  
Old 04-08-2011, 03:27 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
SetEnv does not work. Please follow http://www.litespeedtech.com/support...rol_panel_lsws as provided earlier.
Reply With Quote
  #5  
Old 04-11-2011, 09:37 AM
fernandomm fernandomm is offline
Member
 
Join Date: Oct 2010
Posts: 27
Hi,

Let me specify my question better. Options 1 and 2 of that page works fine for me. But what i need is option 3.

The issue is that when i add PHPUniDir to the file that is used by Cpanel for includes, i can't run verify_vhost_includes as it returns an error.

I have PHPSuExec enable since the php processes in server are all being run as their respective users.

Is it normal for verify_vhost_includes to return this error when using LiteSpeed or there is a another way of doing this?
Reply With Quote
  #6  
Old 04-11-2011, 08:40 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Just add
<IfModule LiteSpeed>
...
</IfModule>

around the directive breaks cPanel.
Reply With Quote
  #7  
Old 04-12-2011, 04:52 AM
fernandomm fernandomm is offline
Member
 
Join Date: Oct 2010
Posts: 27
Thank you. Issue fixed.
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 02:38 PM.



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