Manage PHP and PHP settings in cPanel
PHP is a widely-used open source server wide scripting language which is mainly suitable for web development and can be embedded into HTML language. On a Webhosting field, different PHP settings need to be changed to host a website without any issue. Every changes needs at php.ini which is the PHP configuration file. Some CMS websites need different PHP extensions to work properly and some PHP extensions like OPcache is used to enhance the website performance. And also some time you need to tweaks some PHP settings like upload size, post size, memory limit, the execution time for the proper working of the Websites and its admin areas. You can easily do all this via our cPanel “Select PHP Version” under the “Software” section.
Before discussing that, you can also see the current PHP settings via PHP info page. You can easily create a phpinfo page via cPanel File Manager. To create phpinfo page follow below steps
-> Go to FileManager on cPanel and navigate to the directory and create a new file named “phpinfo.php” and open the file for edit and add below code and save the file.
<?php phpinfo(); ?>
Let’s discuss how we can change the PHP settings via cPanel easily:
1) Login to your cPanel and choose “Select PHP Version” under the “Software” section.
Look for the ‘Current PHP version’. If it is native, please change it to some other version. You could keep the version same without the native option.
2) In the current page, you will see many options to enable PHP extensions. You can easily enable/disable the PHP extensions by click on the square next to the extension name and “Save” at the bottom.
If you need to edit the PHP settings like upload size, post size, memory limit, execution time, click on “Switch To PHP Options”, It will redirect to another page.
After making the changes click on “Save” to complete the process.
If you need any further help please contact our support department.