Is possible to split PHP configuration file php.ini?

三世轮回 提交于 2019-12-05 00:12:16
Mike B

If your PHP installation is setup to scan for .ini files you can drop several of them in a folder. If you installed PHP through the Ubuntu repos, it should already be configured this way.

My phpinfo() (note: The additional ini files are the result of installing php extensions from the repos and won't be included with PHP):

The setting for this directory is a compile-time option:

--with-config-file-scan-dir=/etc/php5/apache2/conf.d

You can also set an environment variable through Apache:

SetEnv PHP_INI_SCAN_DIR /php/custom/scan/directory

More info @ ServerFault

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!