Modifying PHP Variables in cPanel

You may modify php variables as desired from within your cPanel account.  Here's how:

1) Log into cPanel
2) Click on the PHP Variables Manager:

3) Within the PHP Variables Manager, you will see a listing of all of the folders in your account.  You may browse to the appropriate directory by clicking on the folder icon.

4) When you see the directory you wish to change, click on the directory name:
  • If you wish to set the PHP variables for your entire website, click on the "public_html" folder
  • If you wish to set the PHP variables for a particular folder within your site, click on the folder name

5) Type the appropriate php variable into the field, then click to add that variable (The screenshot below references variable "magic_quotes_gpc"):

6)  Select whether you want that variable enabled or disabled (the screenshot below shows it disabled), then click to save the changes:

7)  The system will modify the php.ini file accordingly.  Click to return to the PHP Variables Manager:

  • Email, SSL
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Do you offer web hosting with PHP4 or PHP5?

PHP4 has reached an "end of life" status with the developers and as such Total Server Solutions...

What version of PHP do I have?

This can be found in your cpanel on the left column near where the server status link is. You can...

Can I run PHP scripts anywhere on my hosting account?

Yes, PHP scripts do not have to reside in a particular directory and will run anywhere on your...

Can I use short tags in my PHP scripts?

Yes, we have installed PHP to support short tags, so you can use this feature in your PHP scripts.

What is PHP?

PHP is a server-side, cross-platform, HTML embedded scripting language. It has a syntax familiar...