This is Our Old blog with useful tutorials, We'll start posting tutorial In forum soon, please use this forum as blog is discontinued but will not been taken down Link to Forum
Control PanelHestia CPLinuxUbuntu

Install PHP 8.0 in HestiaCP Latest Version

In this tutorial we’re going to install php 8.0 latest version in HestiaCP. Its very easy . Since HestiaCP supports multi php we can install php 8.0 easily by following below .

Ensure before using php 8.0 you should know the compatibility of php 8.0 towards your app/script. Since php 8 is the fastest and there are many changes under the hood. So without wasting time Lets get started.

Hestia CP is now officially have php 8.0 as multi php go to Admin >> Server Settings >> Configuration >> Web server

Now Click on “Web Server menu Drop down and select php-8.0 and save :

It will install php 8.0 in background after instalaltion template will be ready for selection under edit domain configuration.

For manual build only:

Ensure you’re login as root user and via ssh/terminal.

Step 1 :

Install php 8.0 packages via package manager:

apt install php8.0-amqp php8.0-apcu php8.0-ast php8.0-bcmath php8.0-bz2 php8.0-cgi php8.0-cli php8.0-common php8.0-curl php8.0-dba php8.0-dev php8.0-ds php8.0-enchant php8.0-fpm php8.0-gd php8.0-gmp php8.0-igbinary php8.0-imagick php8.0-imap php8.0-interbase php8.0-intl php8.0-ldap php8.0-mailparse php8.0-mbstring php8.0-memcached php8.0-msgpack php8.0-mysql php8.0-oauth php8.0-odbc php8.0-opcache php8.0-pgsql php8.0-phpdbg php8.0-pspell php8.0-psr php8.0-raphf php8.0-readline php8.0-redis php8.0-rrd php8.0-smbclient php8.0-snmp php8.0-soap php8.0-solr php8.0-sqlite3 php8.0-sybase php8.0-tidy php8.0-uuid php8.0-xhprof php8.0-xml php8.0-xsl php8.0-yaml php8.0-zip php8.0-zmq php8.0 

Step 2 :

Now download this packages and extract it, follow the commands :

it is necessary to create php templates and other settings.

cd /usr/local/hestia/install/deb/multiphp
wget --no-cache
unzip -o
rm -rf

Step 3 :

Now we’re going to add php 8.0 to HestiaCP via this simple command :

v-add-web-php 8.0

it will show like below example :

root@server:~# v-add-web-php 8.0
Installing PHP-8.0, please wait...

Thats it you’ve installed php 8.0 in HestiaCP

root@server:~# /usr/bin/php8.0 -v
PHP 8.0.0 (cli) (built: Nov 27 2020 12:26:22) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.0, Copyright (c), by Zend Technologies
    with Xdebug v3.0.1, Copyright (c) 2002-2020, by Derick Rethans

Step 4 :

Now go to “web” section under account and choose the “Backend Template PHP-FPM” drop down and select php 8 template and save it:

that’s it you’re done check php version via phpinfo.

Extras :

if you want to update default php version for CLI you can run this command :

update-alternatives --set php /usr/bin/php8.0

it will set defualt php version under cli and it can be called by simply typing php command.

Sandeep B.

I'm a system admin and php developer and currently working as System Admin In CWP Control panel, expertise in Linux and Windows administration RHEL certified admin.

Related Articles

One Comment

  1. Thanks for the tutorial!
    Could you also do one about setting up modern Redis. Secure and via socket. TIA.

Back to top button