• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Sunday, June 1, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System CentOS

Upgrade To PHP 7 On The Vultr WordPress App

How VPS by How VPS
October 1, 2019
in CentOS
0
0
SHARES
11
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Prerequisites
  2. Step 1: Update the system
  3. Step 2: Uninstall the pre-installed PHP 5 packages
  4. Step 3: Install PHP 7 packages using the IUS Yum repository
  5. Step 4: Configure PHP-FPM
  6. Want to contribute?


Recently, in December, 2015, PHP version 7 was released as a major upgrade for its predecessor, PHP 5. Compared to the last major version in PHP 5, PHP 5.6, PHP 7 introduced multiple significant improvements: up to 2x performance, significantly reduced memory usage, consistent 64-bit support, and numerous bug fixes, along with some new features like abstract syntax tree, return type declaration, and scalar type declaration.

If you want to make the most of PHP 7 right now, on RPM-based distributions, you can use the IUS Yum repository to perform the upgrade.

Note: Despite of the significant improvements PHP 7 introduces, you need to run thorough compatibility tests in the developing and staging environments before you deploy PHP 7 in your production environment in case of any unexpected issues with code-incompatibility.

In this article, as a demo, we will introduce to you how to upgrade the pre-installed PHP 5 to PHP 7 on a Vultr WordPress app server instance which is based on CentOS 6, PHP 5, Nginx, and MySQL.

Prerequisites

Before proceeding, you need to:

  • Deploy a new server instance with the Vultr WordPress app.
  • Log in using a sudo user. You can learn how to create such a sudo user in this Vultr article.

Step 1: Update the system

If your project does not have special requirements on the version of each program in the system, it is always a good practice to update every program in the system to the latest stable version.

sudo yum update

Step 2: Uninstall the pre-installed PHP 5 packages

List all of the installed PHP 5 packages for review:

yum list installed php* 

Remove all of the installed PHP 5 packages:

sudo yum remove php55u* 

Step 3: Install PHP 7 packages using the IUS Yum repository

Thanks to the built-in IUS Yum repository on this Vultr WordPress server instance, you can already use it to install the PHP 7 packages.

Here, you can install corresponding PHP 7 packages in accordance with the former PHP 5 packages:

sudo yum install php70u-cli.x86_64 php70u-common.x86_64 php70u-fpm.x86_64 php70u-gd.x86_64 php70u-mbstring.x86_64 php70u-mcrypt.x86_64 php70u-mysqlnd.x86_64 php70u-opcache.x86_64 php70u-pdo.x86_64 php70u-pear.noarch php70u-process.x86_64 php70u-xml.x86_64 php70u-xmlrpc.x86_64

Although the upgrade is not finished yet, you can have a look at the current version of PHP with the command below:

php -v

Step 4: Configure PHP-FPM

Because the upgrade operation modified the configuration of PHP-FPM, you need to reconfigure PHP-FPM, making it start on system boot:

sudo chkconfig php-fpm on

Next, we need to set php-fpm to execute as the user nginx in order to ensure WordPress media uploads continue to function as follows:

Open /etc/php-fpm.d/www.conf using your favorite text editor and locate the following 2 lines (usually lines 23 and 24):

user = php-fpm
group = php-fpm

Change php-fpm to nginx as follow, then save and Close the file.

user = nginx
group = nginx

Lastly, you need to restart the PHP-FPM service and the Nginx service to put your change into effect:

sudo service php-fpm restart
sudo service nginx restart

That’s it. You can use PHP 7 to serve your WordPress site now.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

How to Install Mautic on CentOS 7

Next Post

How to Install TYPO3 CMS on CentOS 7

Next Post

How to Install TYPO3 CMS on CentOS 7

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet