symfony - Symfony2 / Plesk change php.ini location -
i'm using plesk panel on server, , have change default path php.ini plesk path /opt/plesk/php/5.6/etc in symfony2 project. it's possible?
thanks
plesk's php binary /opt/plesk/php/5.6/bin/php uses it's own /opt/plesk/php/5.6/etc/php.ini, not default.
if uses default php.ini means use default php binary(/usr/bin/php).
default php binary call:
~# php --ini loaded configuration file: /etc/php.ini
plesk php binary call:
~# /opt/plesk/php/5.6/bin/php --ini loaded configuration file: /opt/plesk/php/5.6/etc/php.ini
in server command/script can use in way:
/opt/plesk/php/5.6/bin/php /path/to/your/script.php
or in shebang of /path/to/your/script.php:
#!/opt/plesk/php/5.6/bin/php
maybe need switch php handler php 5.6:
Comments
Post a Comment