PHP 8.0 has been released officially to the General Availability on November 26, 2020. I got no chance to install it and test it. Yesterday I did the test run on my Vultr VPS.

Firstly, I prepare the VPS.

I created a new VPS on Vultr.  1GB RAM is good enough. I chose Ubuntu 20.04LTS OS.

When the VPS is in running status, I SSH to the server and run the commands apt update and apt upgrade to make the system updated.

Then, I installed Webmin on it.

I am also using TCP Wrapper to limit the ssh by my own IP address.

Secondly, Install Nginx Web Server

Regarding web servers, I always choose Nginx Web Server.

sudo apt install nginx

The version is 1.18.0. from the Ubuntu official repositories.

Thirdly, Install PHP 8.0

Because the php version shipped with Ubuntu 20.04 is php7.4. I have to add another PPA resource to install php8.0.
So, add ppa:ondrej/php to my server software sources.

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update

Run the following command to install php 8.0 and some extensions.

sudo apt install php8.0 php8.0-fpm php8.0-cli php8.0-common php8.0-mbstring php8.0-gd php8.0-intl php8.0-xml php8.0-mysql php8.0-zip php8.0-curl

After that, I input the command php -v to check the version information.

davidyin@roolife:~$ php -v
PHP 8.0.1 (cli) (built: Jan 13 2021 08:22:35) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.1, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.1, Copyright (c), by Zend Technologies

I implemented a web site on this server and use phpinfo() function to output the main information of this php 8.0 installation.


The full phpinfo output is here. I have not tried to run my favorite programs on PHP 8 .0.1, including WordPress, PhpBB, etc. Later I will try and report it here.

David Yin

David is a blogger, geek, and web developer — founder of If you like his post, you can say thank you here

Leave a Reply

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