使用WHM在LAMP服务器上配置EasyApache Php

时间:2017-02-22 12:50:48

标签: php easyapache-4

使用EasyApache3和Php5.4,服务器已设置,主php.ini文件中的参数值可以使用位于帐户根目录中的本地php.ini文件调整每个帐户。升级到EasyApache4和Php 5.6后,此配置结构似乎不起作用,本地php.ini文件显示为在phpinfo.php中加载,但参数设置不会更改主值,例如:

 <uses-permission android:name="com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY" />

还有想法吗?

1 个答案:

答案 0 :(得分:1)

With EA4 by default there's one server-wide php.ini located at /opt/cpanel/ea-php56/root/etc/php.ini but when the MultiPhp Editor is used I believe it creates ini files at /opt/cpanel/ea-php56/root/etc/php.d/local.ini, public_html/php.ini, and public_html/.user.ini where the hierarchy is:

php.ini > local.ini > .user.ini

So .user.ini over-rides local.ini which over-rides the server-wide php.ini

Although the MultiPhp editor creates it, public_html/php.ini seems not to be used as long as user_ini.filename is not set, since the default for user_ini.filename is .user.ini, and as long as there is not a directive in .htaccess

Ref: https://forums.cpanel.net/threads/ea4-php-ini-local-ini-behavior.559871/