Upgrade dedicated server php version TODAY

Job ID: 32940233

Budget: $10 – $30 USD

Update our Dedicated Server PHP version through our computer via teamviewer. CentOS v7.6.1810 [host]

FYI INFO below:

VPS or Dedicated Server:
Please note that the following is informational and if you are unsure if you should be running these commands then please refer to your host and their relevant documentation.

If you are using ubuntu 14.04 or greater, you can use the following commands:

This will add the repository for PHP versions 5.6 and 7.0

sudo apt-add-repository ppa:ondrej/php
To install and update to 5.6, use the command:

sudo apt-get install php5.6
Then, for 7.0, use the command:

sudo apt-get install php7.0
If you are using MYSQL, you need to run the following command for PHP 7:

sudo apt-get install php7.0-mysql
Now all that is left is to restart your server for the changes to take effect.

Apache:

sudo service apache2 restart
Nginx:

sudo service nginx restart
If you are using PHP-FPM with NGINX please follow this guide here:

https://techbrij.com/php-7-ubuntu-install-upgrade

If you want to upgrade to PHP 7 when using the other Linux Distros, please follow the guides below.

CentOS:

https://linuxconfig.org/how-to-install-or-upgrade-to-php-7-on-centos-linux-server

Debian:

https://www.cyberciti.biz/faq/installing-php-7-on-debian-linux-8-jessie-wheezy-using-apt-get/
Related categories: PHP System Admin Linux Apache MySQL