Custom php.ini per-directory (for testing sites)

后端 未结 2 1210
别那么骄傲
别那么骄傲 2021-01-15 14:09

I\'m running Apache 2.26, on Windows 7 with PHP 5.39 mod_ssl/2.2.6 OpenSSL/0.9.8g .

PHP works fine, so does Apache.

However, I want to try and create custom

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-15 15:05

    If you are using php_flag then you are probably using mod_php5. Custom 'php.ini' files aren't supported with this. You would need to use suPHP or equiv as the php.ini is only loaded at PHP startup, and this isn't per-request for mod_php5 and FCGI.

    However, since you are using PHP 5.3 you can also use .user.ini files which are parsed on a per-request basis.

提交回复
热议问题