PHP per host/path configuration directives

Discussion in 'PHP' started by andyf, Nov 19, 2012.

  1. andyf

    andyf New Member

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

    NiteWave Administrator

    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+
  3. andyf

    andyf New Member

    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?

Share This Page