• 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

Question PHP Version Question???

Corey

New Pleskian
Probably a really dumb question,but I installed Owncloud to my server using the default YUM install location, which placed it in /var/www/html/owncloud. I have a single domain that is aliased to this path and every domain on my server uses PHP version 5.6.30.

php -v from command line shows version 5.6.30.

However, a phpinfo() placed in the /var/www/html/owncloud directory shows PHP version 5.4. Does anyone know how the heck I change the version of PHP that is used in this directory?? There are no config files for this directory as it is not an actual domain.

I've searched for hours, no luck.
 
For vhosts Plesk uses own PHP versions which are located in

/opt/plesk/php/X.X/bin/php

For example

# ll /opt/plesk/php/
total 28
drwxr-xr-x 7 root root 4096 Oct 17 05:21 5.2
drwxr-xr-x 7 root root 4096 Oct 17 05:21 5.3
drwxr-xr-x 8 root root 4096 Oct 17 05:22 5.4
drwxr-xr-x 8 root root 4096 Oct 17 05:22 5.5
drwxr-xr-x 8 root root 4096 Oct 17 05:22 5.6
drwxr-xr-x 8 root root 4096 Oct 17 05:22 7.0
drwxr-xr-x 8 root root 4096 Oct 17 05:22 7.1

But /usr/bin/php is default PHP version from OS vendor.
 
Back
Top