Custom php.ini for cPanel shared hosting

Do you want to modify the global php.ini file to accommodate a script you are installing.

You have a script 'myscript.php' that requires the following settings according to the documentation -



1. register_globals need to be turned on

2. safe_mode needs to be turned off

3. enable_dl needs to be turned on

In this example the script 'myscript.php' resides within your public_html/ directory.

1. Open up notepad on your computer and add the following

register_globals = On
safe_mode = Off
enable_dl = On

2. Save that file with the name 'php.ini'

3. Upload that file to public_html/

Now you have a custom php configuration!

  • 29 Users Found This Useful
Was this answer helpful?

Related Articles

How many log in attempts into cPanel before I am blocked?

5 consecutive attempts that fail will get you a permanent block. You will have to create a...

How to change cPanel password

There is two methods to changing your cPanel password. If you already know your password and can...

Do you offer cPanel addons?

Yes, we offer the following addons for an extra $2.50 per month : Fantastico shoutcast rvskins...

Using Mailing lists

cPanel Tutorial: How to add mailing lists? This cPanel tutorial will show you how to add...

Increase your Memory Limit via .htaccess or php.ini

First off, there are two different ways to increase the memory limit on a hosting account You...