• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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