What is php.ini file?

Php.ini file is the configuration file of PHP in which you can configure the settings for PHP.  Either you can use the default setting or change the specific settings.

PHP.ini File

PHP.ini File

Default Settings

The web server is already configured with some standard and default settings for PHP. There is a no need to create an another php.ini file.

Create a php.ini File

This file already placed in tou cPanel home directory (/home/username/).  For VPS Plesk users the file is already exist in the following directory:

  • /var/www/vhost/$DOMAIN/etc/php.ini


Here are the some steps to create your own php.ini file in Cpanel:

  1. Login to cPanel.
  2. In the Files section, click on the File Manager
  3. Select Home Directory and click Go.
  4. Click the New Files button at the top of the page.
  5. In the field called New File Name, enter in and click Create New File.
  6. Click the file named ini.
  7. Select the Edit button at the top of the page and click the Edit button in the pop-up box.

View Sample PHP.ini file