Manage PHP and PHP settings in cPanel

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.

Manage PHP and PHP settings in cPanel

 

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.

Manage PHP and PHP settings in cPanel

 

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.

 

Manage PHP and PHP settings in cPanel

 

After making the changes click on “Save” to complete the process.

If you need any further help please contact our support department.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Block Bots using Robots.txt File?

How to Block Bots using Robots.txt File? The robots.txt file is a simple text file placed on...

PageSpeed on cPanel Server

PageSpeed on cPanel Server PageSpeed on cPanel Server PageSpeed (mod_pagespeed) is a module for...

How to change cPanel logout URL

How to change cPanel logout URL Do you know that it is possible to change cPanel logout URL any...

How to Change cPanel Style

How to Change cPanel Style How to Change cPanel Style cPanel is the most popular control panel...