12-02-2018, 04:52 AM
12-02-2018, 04:28 PM
I have upgraded the php my server now says php7 but in sentora it is still showing as php 5.59 i am not sure what is happening. please help
from sentora control panel : PHP Version 5.5.9-1ubuntu4.26
from server ssh: root@ns1:~# php -v
PHP 7.0.32-4+ubuntu14.04.1+deb.sury.org+1 (cli) (built: Nov 4 2018 05:40:44) ( NTS )
no idea why it is showing different
from sentora control panel : PHP Version 5.5.9-1ubuntu4.26
from server ssh: root@ns1:~# php -v
PHP 7.0.32-4+ubuntu14.04.1+deb.sury.org+1 (cli) (built: Nov 4 2018 05:40:44) ( NTS )
no idea why it is showing different
12-08-2018, 12:05 AM
Hi pakmafia,
Sometimes both versions of PHP are installed on the server but only one is enabled. You have to disable PHP7 then enabled PHP5 if you want to use it. Some directions below:
$ssh username@myIP - Login to your server via ssh
$ a2dismod php7.0 - Disable PHP7
$ a2enmod php5 - Enable PHP5
$ service apache2 restart - Restart Apache2
Sometimes both versions of PHP are installed on the server but only one is enabled. You have to disable PHP7 then enabled PHP5 if you want to use it. Some directions below:
$ssh username@myIP - Login to your server via ssh
$ a2dismod php7.0 - Disable PHP7
$ a2enmod php5 - Enable PHP5
$ service apache2 restart - Restart Apache2