Jump to content

Search the Community

Showing results for tags '504 gateway timeout'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. I am constantly getting 504 gateway errors when my php script needs to run for longer than 60 secs. I am on media temple on a dedicated server. I have contacted media temple and they have been helpful but none of their suggesion seem to work for me i was told to edit this file. /etc/httpd/conf.d/fcgid.conf which i have to below LoadModule fcgid_module modules/mod_fcgid.so <IfModule mod_fcgid.c> <IfModule !mod_fastcgi.c> AddHandler fcgid-script fcg fcgi fpl </IfModule> FcgidIPCDir /var/run/mod_fcgid/sock FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm FcgidIdleTimeout 300 FcgidMaxRequestLen 1073741824 FcgidProcessLifeTime 10000 FcgidMaxProcesses 64 FcgidMaxProcessesPerClass 15 FcgidMinProcessesPerClass 0 FcgidConnectTimeout 600 FcgidIOTimeout 600 FcgidInitialEnv RAILS_ENV production FcgidIdleScanInterval 600 </IfModule> so i have tried to max everything as much as i can, to test this i am just running the function below. function test504(){ @set_time_limit(0); sleep(60); echo "true"; } Sleep will work on any value below 60 seconds returning true but on 60 i get 504 gateway error. my phpinfo(); outputs max_execution_time 600 max_input_time 180 I have seen a few post on increasing this fastcgi_connect_timeout but have no idea where to find this on media temple. after chatting with support i have been told i need to edit nginx.conf ? and was directed to this posthttp://blog.secaserv...teway-time-out/ This is driving me crazy any suggestions ???
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.