Back to PHP (Applications and Scripts)

Common php.ini Changes

This article is for cPanel Accounts. Determine where your account is with this guide.

You cannot modify the server's root php.ini file. However, you can make your php.ini file that will override certain php variables.

You just need to log into cPanel and go into your File Manager. Then navigate your way to the directory you want the php settings changed for and click on the 'new file' icon. Then name it 'php.ini' (without the quotations). Then you need to edit the file and you can place in the variables that you want.

//Common local changes:

upload_max_filesize   = 20M;             //  (default 8 - Max, 32)
post_max_size = 20M;                //  (Average, 20  - Max, 32)
register_globals = Off;                 //    (off by default - you can turn it On)
allow_url_fopen = On;               //    (off by default  - you can turn to On)
memory_limit  = 24M;                //   (default of 8M, Max 32)

Related Articles

How To Troubleshoot PHP Upgrade Issues
Can I Enable PHP Allow_url_include On My Account
Can I Increase The PHP post_max_size Setting
Can I Modify My Suhosin Settings With A Local php.ini File
Can I Utilize PHP Shell Exec Functions

Can’t Find what you need?

No worries, Our experts are here to help.