LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   PHP (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=19)
-   -   PHP per host/path configuration directives (http://www.litespeedtech.com/support/forum/showthread.php?t=6379)

andyf 11-19-2012 05:25 AM

PHP per host/path configuration directives
 
ref: http://us3.php.net/manual/en/ini.sections.php

PHP allows configuration directives to be defined with HOST= and PATH= syntax. This prevents these directives being overridden from from ini_set or via .htaccess.

Does LSWS support this, as no matter what I try, the configuration directives defined in the system php.ini under the HOST and PATH sections do not get applied to PHP requests at all.

NiteWave 11-21-2012 03:39 AM

please refer:
http://php.net/manual/en/configuration.changes.php

you can archive same goal by using
php_admin_value name value
or
php_admin_flag name on|off

in LSWS. and it looks easier to use and apply for all php versions not only with php 5.3.0+

andyf 05-07-2013 02:06 AM

I was asking specifically about the HOST= and PATH= syntax in the php.ini, which allows you to set values based on the location of files within the filesystem - so for example /home/regularusers/ could have one value and /home/superusers/ could have another.

It also allows you to prevent overriding of values via .htaccess or php.ini within the accounts, so you can enforce php.ini values.

Can LSWS support this standard PHP behaviour?


All times are GMT -7. The time now is 06:59 PM.