SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    Aug 2009
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Running install.php script timeout

    Hi,

    I am working on a clients website - using their host and when I upload everything and run install.php I get a FastCGI error timeout.

    I have been in touch with the hosts and they say there is a 15 second timeout on all ASP & PHP scripts.

    They said the only way to go around this is compressing the file (which I have no idea how to do).

    Once the install.php script has run the rest of the site will load within the 15 seconds no problem - does any one have any suggestions on how to go about compressing code within a php file so the server can read it?

    Cheers,

    Paul

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    "Compressing" the code won't change how long it takes to do whatever's taking all that time. They gave you a bogus answer, or were simply being unclear.

    Perhaps you can break up whatever install.php does into chunks that take less than 15 seconds each.

  3. #3
    SitePoint Addict
    Join Date
    Aug 2009
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, I did think it was a little bit odd - had never heard it could be done before.

    What is the best way to go about breaking up the code?

    Cheers,

    P

  4. #4
    SitePoint Zealot Servyces's Avatar
    Join Date
    Jun 2007
    Location
    The Netherlands
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by jpopuk View Post
    What is the best way to go about breaking up the code?
    That's for you to decide, we're not familiar with your install script. The best thing to do is make "steps", like you see in many installers. That way the user needs to click "Next" a few times during the install process, but it should lower the script execution time.
    Servyces.com
    Where itís all about you.
    Your partner in online solutions.
    Visit our website at http://www.servyces.com/

  5. #5
    SitePoint Addict
    Join Date
    Aug 2009
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That makes good sense, thank you.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •