Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8218001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:38:21+00:00 2026-06-07T12:38:21+00:00

So I am running a PHP script on my godaddy (don’t hate me) virtual

  • 0

So I am running a PHP script on my godaddy (don’t hate me) virtual server which I am expecting to take around 5 minutes to finish executing. The script is CURLing pages but never holds more than 1 page at a time (it is done in a loop reusing the same variable).
I modified my php5.ini file to the following:

max_execution_time = 600
max_input_time = 120
memory_limit = 64M 

I verified through phpinfo that the ini file changes had taken effect, however I am getting an Apache 500 error after 120 seconds. Here is the error log for this time:

[Wed Jul 11 22:08:52 2012] [warn] [client **.**.**.***] mod_fcgid: read data timeout in   120 seconds
[Wed Jul 11 22:08:52 2012] [error] [client **.**.**.***] Premature end of script headers: test.php

If anyone has any ideas on why I might be getting these errors or any suggestion on things to try I would appreciate the help. I did notice an option in the php settings set at 120, but I’m not sure if it would have an effect: realpath_cache_tt

I also set a time limit in the .php file: set_time_limit( 600 );

Thanks in advance.

UPDATE:
Here is what I tried in the .htaccess file:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
<IfModule mod_fcgid.c>
IPCCommTimeout  7200
</IfModule>

The causes an Apache 500 error on any page load.
I also disabled FastCGI but the issue is still occuring.

RESOLVED
RobB suggested the following:

IPCCommTimeout 7200

Which should have worked however due to my godaddy shared hosting it is not allowed. Time to find a new hosting service.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T12:38:23+00:00Added an answer on June 7, 2026 at 12:38 pm

    I’m not sure of the handling with this issue on GoDaddy but the normal resolution would be as follows:

    The issue that you are experiencing is due to FastCGI executing a PHP script but it doesn’t generate a response within the default IO timeout (120 seconds), which results in the 500 Internal Server Error.

    Try editing the default VirtualHost conf file, typically located at /etc/apache2/sites-available/default and add this directive inside the <VirtualHost> context:

    <IfModule mod_fcgid.c>
       IPCCommTimeout  7200
    </IfModule>
    

    After saving the modification, restart apache2 with this command: sudo /etc/init.d/apache2 restart.

    From what I’ve been able to determine from GoDaddy is that the maximum time limit is 120 seconds for PHP/FastCGI in shared hosting, which can not be increased by the client. I would suggest contacting their support for assistance and hopefully their reputation won’t serve up and you’ll be able to get help.

    Update:
    Not sure if it will help but you could try changing from FastCGI to PHP5 in your hosting control center (Settings > File Extension > php5).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running a php script from the command line against SQL server 2005 using
I have a PHP script running on my LAMP server that requires certain files
How do we determine which user the php script is running under when I
I have a long running php script which is basically an infinite loop listening
I have a long running PHP script that has a memory leak which causes
I have a php script http://example.com/myapp/myscript.php running on an Apache server. I call this
I' running a php script to insert events that I take from a CSV
I am running a PHP script on a OS X 10.6 Server via Terminal
The server my PHP script is running on is set to UTC. I can't
I have an Apache server running a PHP script that receives data via a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.