How to Change PHP Setting Using PHP.INI in GoDaddy Shared Hosting

At some point of time you may want to change PHP Settings in GoDaddy shared hosting account. Most of time we need to increase memory limit, max upload size and max input size limit because by default these settings are extremely low. GoDaddy keeps master PHP.INI file in /web/conf/ folder which we are not allow to edit. But there is an alternative way to override Godaddy default php settings per account. GoDaddy allow to place our own PHP.INI settings file on per account basis which is effective to that account only.

How To Change

1. Download PHP.INI file from your godaddy account root folder. If file does not exist create your own file.

2. Create PHP.INI for php 4 and PHP5.INI file for PHP5. Default Godaddy PHP.INI file contain following content.

register_globals = off
allow_url_fopen = off
memory_limit = 128M
max_execution_time = 120

expose_php = Off
max_input_time = 120
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

; Only uncomment zend optimizer lines if your application requires Zend Optimizer support


; -- Be very careful to not to disable a function which might be needed!
; -- Uncomment the following lines to increase the security of your PHP site.

;disable_functions = "highlight_file,ini_alter,ini_restore,openlog,passthru,
;		      phpinfo, exec, system, dl, fsockopen, set_time_limit,
;                     popen, proc_open, proc_nice,shell_exec,show_source,symlink"

3. You can add following setting as well.

display_errors = Off ; -- php display error on/off
log_errors = On ; -- log php error on/off
error_log = [path to your error log file] ;-- change error log file path.

4. Upload changed PHP ini file to your root folder.

5. Now it is time to reload Apache to take change effect. Login to your GoDaddy account. Launch web hosting control panel. Go to Options & Settings -> Stats & Monitors -> System Processes ->


6. You will see list of web services running under your account. Select all web services and click End Web button. This step will terminate apache web service and will reload automatically when you browse your website in browser.

7. Run Phpinfo to see changes taken effect.

Written by Bala Krishna

Bala Krishna is web developer and occasional blogger from Bhopal, MP, India. He like to share idea, issue he face while working with the code.

This article has 9 comments

  1. Gautham

    I never thought changing PHP settings in Godaddy shared hosting is possible. During Vbulletin installation, i had to change my php.ini settings, i requested support help to do it.

  2. Ramu Sinha

    I have another site hosted at godaddy few weeks back i was trying to change php settings using interface/cpanel but it was giving me some random errors like max size cannot be increased….can you help me what is that?

  3. Ahsan

    Dear Bala-Krishna,
    I Was installing CATEGORY SEO META TAGS Plugin in my site but i saw that it was not working with ALL IN ONE SEO (Current Edition) [All in One SEO Pack 2.1.3 by Michael Torbert].

    I Was unable to find
    $title = apply_filters(‘aioseop_category_title’,$title);
    in aioseop.class.php. Please Implement CATEGORY SEO META TAGS For the Current Edition of ALL IN ONE SEO PACK And Send Me The Link Or Send Me The aioseop.class.php file So That i Could Be Able To Use This Plugin.

    Waiting For Your Response.

  4. Pesablog

    How about creating a new php.ini in Godaddy cPanel hosting? I cant seem to get a solution.

  5. Rjvir k khurana

    your blog was too good. i really appreciate with your blog.Thanks for sharing.

  6. Pingback: Godaddy Php5.ini File – Cyber Sun

  7. Pingback: How To Find Php.ini File In Cpanel

  8. Adams Shittu

    Thank you chief. It worked like magic.


  9. allo app for pc

    this is the best guide that covered every step of setting php in details.

    thanks a ton

Leave a Comment

Your email address will not be published. Required fields are marked *