• 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

php -v no result

A

AyazA

Guest
Hello

yesterday i installed the Plesk 9.5 and updated the php 5.2 into php 5.3 after that when i checked the php version by using command as below:


php -v and this command give me php 5.3 version with PHP Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0


after that i found the solution through google and i get one solution which link is: http://forum.parallels.com/showthread.php?t=106087


when i used the command in above solution which command :
/usr/local/psa/bin/php-cli -> /usr/bin/php

applied this command then when i checked the php version again by php -v command but it is not giving any result.

php -v log via SSH:
[root@NSW ~]# php -v
[root@NSW ~]#

so plz any body how i can fix it and how i can remove the link between php-cli with php


plz need help urgent.


thanks
ayaz ali
 
Try :

yum downgrade php* for two times so it will downgrade to version 5.2.17.

Then try again yum upgrade php* and make sure you change the php.ini with the new one

mv /etc/php.ini /etc/php.ini_old
mv /etc/php.ini.rpmnew /etc/php.ini

And restart apache if everything is working.
 
Back
Top