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 'myfile.php' that requires the following settings according to the documentation -

1. upload_max_filesize need to be higher than 2M

2. safe_mode needs to be turned off

3. enable_dl needs to be turned on

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

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

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!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to setup Cron Job

To set up a cron job, follow the steps below:Log in to your cPanel and look for the Cron Jobs...

How to change the password of your cPanel account

There may be times where you would like to change the password of your account. It is recommended...

Can I password protect directories?

To password protect directory: Login into your cPanel and click on the Password Protect...

How to redirect a subdomain to another page

You might want your sub domain to redirect to another page. To do this, please do the following:...

How to log into cPanel

  There are a few ways to log into cPanel. The best way depends on if your domain name has...

Powered by WHMCompleteSolution