• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Resolved Loaded php.ini is not same on panel and ssh

Ahmad12

Basic Pleskian
Hello,

I've this issue with all my vhosts that in plesk panel the loaded php is not the same when i'm checking it in ssh:
in the panel as per phpinfo the php.ini is loaded from: /opt/plesk/php/7.0/etc/php.ini
in the ssh as per (php -i | grep "Loaded Configuration File") the php.ini is loaded from: /etc/php.ini

please help solving this issue..

Regards,
 
In Plesk for Linux, the PHP binary (the php file) is located in the following path:

/opt/plesk/php/<PHP version>/bin/php

Here <PHP version> should be replaced with a particular PHP version number.

For example, if you need to use PHP verion 7.0, use the following command to run the my_script.php script:

/opt/plesk/php/7.0/bin/php my_script.php
 
I'm installing magento 2, so the webserver php version is 7.0.8 but in command it is taking the os php version and not the webserver php, how to make the command use the webserver php version?
 
@IgorG how to make the vhost work always with assigned php version everywhere?

Yes it is working when i'm using : alias php='/opt/plesk/php/7.0/bin/php', but ehy do i need to use that every time i need to run something? my cronjobs reading the main php configuration on plesk panel.
 
Back
Top