Symfony2 / Plesk change php.ini location

I'm using Plesk panel on my server, and I have to change default path to php.ini to plesk path /opt/plesk/php/5.6/etc in my symfony2 project. It's possible?



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 something uses default php.ini it means that you 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 your server command/script you can use it in that way:

/opt/plesk/php/5.6/bin/php  /path/to/your/script.php

or in shebang of /path/to/your/script.php:


Maybe you just need to switch PHP handler to PHP 5.6:

Need Your Help

Why pub sub in redis cannot be used together with other commands?


I'm reading here, and I see a warning stating that PUB/SUB subscribers in Redis should not issue other commands: