Increase GoDaddy max_execution_time

GoDaddy ini Before

I recently moved a couple of my sites from Dreamhost to GoDaddy’s managed WordPress hosting.

While one of the websites migrated perfectly fine, the other website had issues with the WordPress importer failing. :/

My best guess of what was happening is that the GoDaddy max_execution_time was set quite low, which was causing the importer to fail. I confirmed this by downloading the phpinfo plugin which showed the following:

GoDaddy max_execution_time before

Let’s Increase the GoDaddy max_execution_time

It took a bit for me to figure out how to increase the max_execution on GoDaddy’s managed WordPress hosting, but after quite a bit of search I found an article on GoDaddy’s support portal that describes where to put the PHP initialization files for the varying GoDaddy hosting products.

Easily enough, the PHP initialization file for GoDaddy’s managed WordPress hosting is located at html, which is the initial directory upon logging in to SFTP.

So, to increase GoDaddy max_execution_time, all I had to do was:

  • Open an SFTP connection
  • In the same directory as wp-config.php, create a .user.ini file. Note the leading .
  • Lastly, in this .user.ini file, I added the following:

max_execution_time = 180

The above will increase the GoDaddy max_execution_time to 3 minutes, which you can verify yourself by using the phpinfo plugin mentioned above.

GoDaddy ini After

Unfortunately for me, increasing the GoDaddy max_execution_time didn’t fix my issue of the WordPress importer failing. I ended up moving my site to WP Engine which worked like a charm.

15 thoughts on “Increase GoDaddy max_execution_time”

  1. You are a LIFE SAVER!! I went through so many other hoops trying to change this setting on my godaddy wordpress site…editing php.ini and php5.ini and htaccess files and nothing worked….until i found this!! Thank you for sharing!!!

  2. I tried doing this, but upon verification, max_execution_time is still at 180. (I need it at 600). I did, changed it to 600 though. But still the same.

    Named the file .user.ini

    Is there anything that I am doing wrong?

    1. Hi Sarah,

      My apologies for the slow reply. I had several issues with GoDaddy managed and eventually moved my sites elsewhere.

      One thing I’ll mention though is that the name of the ini file changes depending on what GoDaddy product you are using. So, for the GoDaddy managed WordPress product, the file is named .user.ini. But, other products expect different filenames, which is described in this article.

  3. Great help. I was also able to change upload_max_filesize in the .user.ini file. Just remember to put an “M” at the end or you’ll get an error (i.e. upload_max_filesize = 40M).

  4. Fantastic! Thank you, i don’t usually use GoDaddy but occasionally a client is self hosted and you have to fix theses hosting issues. This was right on the money!

  5. I uploaded the file and the new max_execution_time is updated as local value, may be it is due to the domain is added as addon domain. The master max_execution_time is 30.

  6. Thank you for this post. .user.ini file is the ticked for godaddy’s horrendous server default limitations and no where on their support forums do they show this tutorial.

    max_execution_time = 300
    max_input_vars = 2000


Leave a Reply

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