• Upgrading PHP

  • Tell error you get when using VPSSIM & Other members help fix it

Tell error you get when using VPSSIM & Other members help fix it
 #4829  by Lakuma
 15 Jan 2019 07:04
So I think there is an issue when upgrading PHP versions, this is the second time this happened to me.

I'm trying to upgrade from the default 7.1 to 7.3 however it fails to install which is okay, my issues is that when your script tries to re-install PHP 5.6 as a backup this also fails because it was completely removed during the 7.3 upgrade:

========================================================================
PHP current not installed in VPS.
------------------------------------------------------------------------
VPSSIM will setup PHP 5.6 for VPS.
=========================================================================
Setup PHP failed.
chmod: cannot access ‘/var/lib/php/session/’: No such file or directory
/etc/vpssim/menu/menucheck/vpssim-show-menu-version: line 107: php: command not found
=========================================================================
VPSSIM (4.6.0.8) - Manage VPS/Server By VPSSIM.COM
=========================================================================
Last edited by Lakuma on 15 Jan 2019 10:34, edited 1 time in total.
Get 25 USD Free To USE VPSSIM
 #4830  by Lakuma
 15 Jan 2019 09:53
"chmod: cannot access ‘/var/lib/php/session/’: No such file or directory"

I fixed the missing directories by manually adding them, so that error message is gone.

But, I'm still getting the error: /etc/vpssim/menu/menucheck/vpssim-show-menu-version: line 107: php: command not found, I think it's because I don't have PHP installed (which was removed during the failed upgrade) so it can't run the command to re-install PHP 5.6.

How do I get PHP installed via VPSSIM?
 #4832  by Lakuma
 15 Jan 2019 10:36
nguyenoanh wrote:Hello !

You go to add website or change PHP version once again.
VPSSIM wil check PHP version, then auto re-install PHP 5.6 for you.
I already tried that many times, it won't re-install PHP 5.6, it gives me this error message: Setup PHP failed. /etc/vpssim/menu/menucheck/vpssim-show-menu-version: line 107: php: command not found
 #4833  by nguyenoanh
 15 Jan 2019 10:53
@Lakuma
Sorry about that.
I will check VPSSIM again then update when i fixxed this.
Now, you can manual install php by command:
Code: Select all
yum-config-manager --enable remi-php56
yum -y install php php-common php-fpm php-gd php-devel php-json
yum -y install php-curl php-pecl-zip php-zip php-soap php-cli php-ldap php-pgsql php-mysqlnd php-pear-Net-SMTP php-enchant php-pgsql php-mysql php-pear php-opcache php-pdo php-zlib php-xml php-mbstring php-intl php-mcrypt
 #4834  by Lakuma
 15 Jan 2019 11:20
So I found my issue. My /etc/resolv.conf was blank. Added "nameserver 8.8.8.8" and nameserver "8.8.4.4" and now VPSSIM automatically installed and upgraded me to PHP 7.3, thank you!!
nguyenoanh liked this
Get 25 USD Free To USE VPSSIM