Go Daddy and PHP.ini file.

If you are using GoDaddy and hosting Linux with them, you may be needing to modify the PHP.ini configuration file.

The PHP initialization files can manage form, server, and environmental variables as well as server-side cookies, temporary directories, error display, and error logging.

First, you need to know how to modify it (or where to find it).  Most of the time GoDaddy will not provide you direct access to the server PHP.ini, rather you make your own and "incorporate it" into your server settings.

  1. Go here to look-up the hosting you have with GoDaddy and thus where and how to do PHP.ini file. What filename does my PHP initialization file need to use?
  2. Once you know create the php.ini or php5.ini file and put it in the right directory, per graph below:
    1. Type Filename Location (more info)
      Web Hosting - Windows
      with PHP 5.4
      .user.ini Root of account (one per account)
      All Other Web Hosting php5.ini Root of account (one per account)
      cPanel php.ini
      /public_html (one per account)
      Plesk .user.ini Website root (one per website)
      Managed WordPress .user.ini /html (one per website)
  3. Make your necessary edits per the PHP manual.
  4. If you are not seeing your php.ini/user.ini changes not taking effect, read this GoDaddy article on how fast it updates.
    1. Filename Refresh Rate
      php.ini Only updates when a new PHP process is created, e.g. when a new visitor comes to your site. However, refreshing your own site you recently visited does not generate a new PHP process.
      .user.ini By default, updates every 5 minutes

No Comments Yet.

Leave a comment