[solved] PHP per-user configuration

#1
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 a moderator:
#3
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?
 
#5
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?
 
Top