Title: Timeout waiting for output from cgi script error
Last modified: August 31, 2016

---

# Timeout waiting for output from cgi script error

 *  [viviannehr](https://wordpress.org/support/users/viviannehr/)
 * (@viviannehr)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/timeout-waiting-for-output-from-cgi-script-error/)
 * Hello, I’m getting 504 Gateway Error when I’m loading some pages in my website.
   It doesn’t occur every time I load a page. I looked through the server error 
   log and I found the error:
    “Timeout waiting for output from CGI script” The 
   file content is: define(‘WP_USE_THEMES’, true); require( dirname( __FILE__ ) .‘/
   wp-blog-header.php’ ); What can I do to prevent this error?
 * Additional information:
    it’s on multisite, there are lots of plugins but the
   client wants them all, I increased the PHP memory but the error keeps showing.

Viewing 1 replies (of 1 total)

 *  [senica@gmail.com](https://wordpress.org/support/users/senicagmailcom/)
 * (@senicagmailcom)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/timeout-waiting-for-output-from-cgi-script-error/#post-7451497)
 * I have a client who has a client that is experiencing this exact same issue. 
   Did you find a resolution?
 * You wouldn’t happen to be on media temple would you?

Viewing 1 replies (of 1 total)

The topic ‘Timeout waiting for output from cgi script error’ is closed to new replies.

## Tags

 * [timeout](https://wordpress.org/support/topic-tag/timeout/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [senica@gmail.com](https://wordpress.org/support/users/senicagmailcom/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/timeout-waiting-for-output-from-cgi-script-error/#post-7451497)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
