How to Edit php.ini In WHM

PHP is one of the most popular server-side scripting languages on the web. Many large, medium, and small websites rely on it to provide dynamic content. Whenever you need to adjust the settings of PHP, you will need to access the php.ini file. It is easy enough to access through SSH, but if you ever need to make changes to it and only have access to the web, you can use WHM to edit the file.

On your cPanel installation of PHP, your php.ini file may be located at /usr/local/lib/php.ini. You always have the option of editing it from the command line, but using WHM, you can edit from within your control panel.

  1. In the Main section, click on “Service Configuration”
  2. Select “PHP Configuration Editor”
  3. Choose Basic Mode, or if necessary, choose “Advanced Configuration Editor”

Basic Mode allows you to change 11 PHP configuration options, including upload_max_filesize, memory_limit, register_globals, and safe_mode. The Advanced Editor gives you access to all of the PHP configuration options. Change some of them incorrectly could cause PHP to stop functioning. Therefore, use caution when making changes, and be sure to read up on PHP configuration before beginning.

 











Comments: