4. access the file phpinfo.php in your web browser or send the link to the client.
Notice that on some servers the phpinfo() function is disabled. In this case, you may need to use other functions like ini_get(). A simple PHP file to get the most common PHP values is here https://github.com/plothost/php-list-values
13 January 2020 – As of writing this article, cPanel doesn’t support PHP 7.4 yet. According to the feature request, the PHP 7.4 version will be added in Q1 of 2020.
We’re currently working towards Q1 of 2020.
PHP 7.4 feature request
PHP 7.4 is already at the first minor release 7.4.1. PHP 7.4. was released on 28 Nov 2019 and comes with some new features, such as:
Typed Properties Arrow Functions Limited Return Type Covariance and Argument Type Contravariance Unpacking Inside Arrays Numeric Literal Separator Weak References Allow Exceptions from __toString() Opcache Preloading Several Deprecations Extensions Removed from the Core
PHP 7.4 new features
We will support the new version as soon as it is added by cPanel. From our internal tests, we don’t expect any issues. PHP 7.4 will become our servers’ default PHP version. WordPress, the most used script, is already supporting PHP 7.4.
You want to have a local Apache web server to test your new site? We’ll show you how to setup a web server and an MySQL server using XAMPP. XAMPP is a software that will install Apache+PHP+MySQL on your computer. Of course, you can download Apache, PHP and MySQL and install them by yourself, but using a suite like XAMPP will make the things much easier.
This tutorial is for XAMPP on Windows OS. XAMPP is also available for Linux and Max OS.
So, the steps to install the Apache+MariaDB(MySQL) development environment are:
It’s always a good idea to use the latest version of PHP. For some time 2-3 PHP versions will be supported, but in the end the old ones will be discontinued. So, whenever possible, use the latest version.
We will show below how to change the PHP version for your site from cPanel.
cPanel MultiPHP Manager Interface
The steps are:
Log into your cPanel account.
Go to MultiPHP Manager under the Software Section
Select the domain for which you want to change the PHP version.
From the right drop down list select the desired PHP version. If you choose the inherit option the site will use the default PHP version which is listed at the top of the page.
Click the Apply button. The site is using now the PHP version you selected.
Some hosts may block this cPanel feature for end users. If you don’t see this feature in cPanel contact your host.
Please check now the video tutorial. You will also see how to check your current PHP version.