extention load in php.ini
Dear All.
I Got
My question is, if a domain is choose to use php56, will it's code also 'read' php.ini placed in another directory? since my system is alway report 'module 'Mysql' already loaded' .... I walked throug one of hosted domain and could not find any 'mysql.so' loading in my user's code, so i'm prety sure there is no double loading in user php.ini level. Sincerely -bino-
[root@jatirejo ~]# find /opt/alt -name php.ini
/opt/alt/php53/etc/php.ini
/opt/alt/php52/etc/php.ini
/opt/alt/php72/etc/php.ini
/opt/alt/php71/etc/php.ini
/opt/alt/php56/etc/php.ini
/opt/alt/php70/etc/php.ini
/opt/alt/php51/etc/php.ini
/opt/alt/php55/etc/php.ini
/opt/alt/php44/etc/php.ini
/opt/alt/php54/etc/php.ini
My question is, if a domain is choose to use php56, will it's code also 'read' php.ini placed in another directory? since my system is alway report 'module 'Mysql' already loaded' .... I walked throug one of hosted domain and could not find any 'mysql.so' loading in my user's code, so i'm prety sure there is no double loading in user php.ini level. Sincerely -bino-
-
Hi, My question is, if a domain is choose to use php56, will it's code also 'read' php.ini placed in another directory?
-> With Cloudlinux there may be restriction, so most of the time domain may be restricted to this PHP.ini only, however, you will need to check your environment and create PHP.ini in the domain to check if it picks it up..0 -
Since you're using CloudLinux's alt PHP (this works the same with cPanel's multiPHP as well) your Global php.ini file is the one located in the directory for the version of PHP your domain is using. Your local php.ini in that domain's root directory will still work but will not override settings in the global. For the error you're getting you might also check in .htaccess, .user.ini and local.ini files if they exist. Thanks! 0
Please sign in to leave a comment.
Comments
2 comments