Install PHP 8 Latest version in CWP control panel

by Sandeep B.

In this tutorial we’ll install most awaited php version in CWP control panel as php switcher. This easy guide will guide you upon how to install PHP 8 easily.

Few features of php 8 :

  • Faster code execution
  • Code with higher quality 
  • Cleaner, shorter code
  • The “type” trend
  • and many things are improved under the hood including security and performance wise

PHP 8 will not support your current php scripts/cms/themes. Check before shifting to php 8.

Follow this steps From Step 1 to Step 2 : CLICK Here

After you installed deps and exporting path variable continue to install php 8 with this steps :

mkdir -p /usr/local/php-8
cd /usr/local/php-8
tar zxvf php-8.0.0.tar.gz
cd php-8.0.0
./configure --with-config-file-path=/usr/local/php --enable-cgi --with-config-file-scan-dir=/usr/local/php/php.d --with-zlib=/usr --enable-mbstring --with-zip --enable-bcmath --enable-pcntl --enable-ftp --enable-exif --enable-calendar --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-tidy --with-curl --with-iconv --with-gmp --with-pspell --enable-gd --with-jpeg --with-freetype --enable-gd-jis-conv --with-webp --with-zlib-dir=/usr --with-xpm --with-openssl --with-pdo-mysql=mysqlnd --with-gettext=/usr --with-bz2=/usr --with-mysqli --enable-soap --enable-phar --with-xsl --with-kerberos --enable-posix --enable-sockets --with-external-pcre --with-libdir=lib64 --with-mysql-sock=/var/lib/mysql/mysql.sock --enable-intl --enable-litespeed --with-ldap=/usr --with-ldap-sasl=/usr  
make install

it will take some time depends on your server speed when it is finished you can check the php version via command :

php -v

eg :

# php -v
PHP 8.0.0 (cli) (built: Dec 02 2020 11:09:47) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies

if you’ve any question comment below or for discussion go to our forum link :

If this post helps you in any way please consider a donation

Donate with PayPal :


You may also like


Anon December 3, 2020 - 3:05 am

Is this official?

If not, when will this be available from the official update?

Sandeep B. December 3, 2020 - 6:40 pm

hi configs 100% matches with official.

Darin December 12, 2020 - 6:43 am

Is there a guide to do this, but with PHP-FPM 8.0?

Sandeep B. December 12, 2020 - 12:55 pm

hi there is not as FPM is paid product and only available via cwp.


Leave a Comment