Set PHP version to the wesite

Started by kaavain, August 24, 2021, 11:13:56 AM

Previous topic - Next topic

kaavain

Hi All

Sorry, can't understand this issue.

Installed this great panel to CentOS7, native PHP is 5.6
But I need PHP 5.3 for my website. So I've did PHP Version Switcher -> PHP 5.3
After a while -> "You are running PHP 5.3.29", great!

BUT!

Made a user, place a phpinfo.php to the domain root and it shows PHP 5.6 instead...

As I understand, there is PHP Selector but it is available only in PRO and needed if I wish to have MULTIPLE versions. But I need only one and it is 5.3

So I can't understand how to assign the 5.3 to my domain...

Please assist!


kaavain

UPDATE: altough I've switched to 5.3, the section PHP Info of the panel shows me info of PHP 5.6...

PHP Info

You are running PHP version: 5.3.29

PHP logo
PHP Version 5.6.37

kaavain

Just tested to change version to 7.1, and it works. All mentioned places indicating 7.1.1... Somebody have an idea what's wrong with 5.3?

kaavain

#3
Changed 7.1.1 -> 5.3.20 and again, I have "You are running PHP version: 5.3.20" but "PHP Version 7.1.1" something went wrong.

The only error lines in log file (missed when changed to 7.1.1) are:

DELETING DSO Handler
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Tried to change to 5.6.1 - everything fine, no error messages. So it is obviously something wrong with 5.3... Which is sad. Especially it seems that nobody knows about this

Sandeep

uncheck litespeed and install php 5.3 again

digdug

Quote from: Sandeep on September 07, 2021, 05:00:10 AM
uncheck litespeed and install php 5.3 again

hello sorry to bump.. but can you check my post about user php.ini ?