Setting custom PHP settings

The default PHP settings should work fine for most accounts, but for some specific applications, you may need to override the default values.

Fortunately, you can do so in two ways.

Using the Select PHP Version menu

Most common settings can be changed through your cPanel.

  1. Login to cPanel.
  2. Go to Select PHP Versions.
  3. Click Switch to PHP Options.
  4. Find the setting you want to edit in the list.
  5. Click the setting value and fill in the desired value.
  6. Click Apply next to the setting.
  7. Click Save at the bottom of the page.

Using .htaccess rules

Some settings cannot be edited through cPanel, however you can override the settings by adding rules to your .htaccess file.

The .htaccess file is a text file, typically located in your public_html directory. Many scripts already include their own .htaccess file which you can edit. Alternatively, you can create a new .htaccess file by simply creating a text file with that name.

When using the file manager, be sure that in the Settings screen "Show Hidden Files (dotfiles)" is ticked. The .htaccess file cannot be seen otherwise.

In the .htaccess file, add a line like this:

php_value setting value


For example
php_value max_input_vars 10000
  • 1 Users Found This Useful
Was this answer helpful?

Powered by WHMCompleteSolution