# Installation Server Time Out Error

**URL:** <https://forum.mautic.org/t/installation-server-time-out-error/6736>\
**Category:** Product Support\
**Created:** [December 4, 2016, 11:33am UTC](https://forum.mautic.org/t/installation-server-time-out-error/6736 "2016-12-04T11:33:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdi](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@sdi](https://forum.mautic.org/u/sdi)\
**Post date:** [December 4, 2016, 11:33am UTC](https://forum.mautic.org/t/installation-server-time-out-error/6736/1 "2016-12-04T11:33:50Z")

</div>

I am trying to install Mautic on a VPS  
  
  
  
running - webmin 1.821 and virtualmin 5.05 on the VPS  
  
  
  
Operating system: CentOS Linux 6.8  
  
apache webserver  
  
php version 7.0.13  
  
MySQL version 5.6.34  
  
  
  
  
  
I keep getting a Sever Time Out Error page – after the step 1 of install  
  
  
  
a 504 Gateway Timeout error:

* * *
Gateway Time-out  
  
The gateway did not receive a timely response from the upstream server or application.
* * *
  
the error log shows:
* * *
[Sat Dec 03 22:00:41 2016] [warn] [client 111.248.149.100] Timeout waiting for output from CGI script /home/m/cgi-bin/php7.0.cgi, referer: http://domain.com/installer/step/1  
[Sat Dec 03 22:00:41 2016] [error] [client 111.248.149.100] Script timed out before returning headers: php7.0.cgi, referer: http://domain.com/installer/step/1  
[Sat Dec 03 22:02:29 2016] [warn] [client 111.248.149.100] Timeout waiting for output from CGI script /home/m/cgi-bin/php7.0.cgi, referer: http://domain.com/installer/step/1  
[Sat Dec 03 22:02:37 2016] [warn] [client 111.248.149.100] Timeout waiting for output from CGI script /home/m/cgi-bin/php7.0.cgi  
[Sat Dec 03 22:02:37 2016] [error] [client 111.248.149.100] Script timed out before returning headers: php7.0.cgi  
[Sat Dec 03 22:03:13 2016] [warn] [client 111.248.149.100] Timeout waiting for output from CGI script /home/m/cgi-bin/php7.0.cgi  
[Sat Dec 03 22:03:13 2016] [error] [client 111.248.149.100] Script timed out before returning headers: php7.0.cgi  
[Sat Dec 03 22:03:37 2016] [warn] [client 111.248.149.100] Timeout waiting for output from CGI script /home/m/cgi-bin/php7.0.cgi
* * *
  
  
  
  
I have increased all the resource limits on php:  
  
Maximum memory allocation 256M  
Maximum HTTP POST size 36M  
Maximum file upload size 2M  
Maximum execution time 900 seconds  
Maximum input parsing time 60 seconds  
  
  
and I have changed the permissions on the server to allow the htaccess file to do what it needs to do to control things  
(i found a support thread about this issue while googling solutions)  
  
  
I can't find anything else to change...  
  
and I have had the support from my hosting look into everything  
they say that all the setting should be correct  
and everything is there that is required  
  
  
  
  
  
  
  
the install script says that the server config is good to go  
  
the install script does run on step 1  
and does connect to the database  
and it does create some tables in the database  
  
  
  
hopefully someone will be able to suggest something  
that could get this working  
  
  
  
thanks  
  
Franklin

---

<div class="post-metadata">

**Author:** ![sdi](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@sdi](https://forum.mautic.org/u/sdi)\
**Post date:** [December 4, 2016, 11:33am UTC](https://forum.mautic.org/t/installation-server-time-out-error/6736/2 "2016-12-04T11:33:50Z")

</div>

I am trying to install Mautic on a VPS

running - webmin 1.821 and virtualmin 5.05 on the VPS

Operating system: CentOS Linux 6.8  
apache webserver  
php version 7.0.13  
MySQL version 5.6.34

I keep getting a Sever Time Out Error page – after the step 1 of install

## a 504 Gateway Timeout error:

Gateway Time-out

## The gateway did not receive a timely response from the upstream server or application.

## the error log shows:

## [Sat Dec 03 22:00:41 2016] [warn] [client 111.248.149.100] Timeout waiting for output from CGI script /home/m/cgi-bin/php7.0.cgi, referer: [http://domain.com/installer/step/1](http://domain.com/installer/step/1) [Sat Dec 03 22:00:41 2016] [error] [client 111.248.149.100] Script timed out before returning headers: php7.0.cgi, referer: [http://domain.com/installer/step/1](http://domain.com/installer/step/1) [Sat Dec 03 22:02:29 2016] [warn] [client 111.248.149.100] Timeout waiting for output from CGI script /home/m/cgi-bin/php7.0.cgi, referer: [http://domain.com/installer/step/1](http://domain.com/installer/step/1) [Sat Dec 03 22:02:37 2016] [warn] [client 111.248.149.100] Timeout waiting for output from CGI script /home/m/cgi-bin/php7.0.cgi [Sat Dec 03 22:02:37 2016] [error] [client 111.248.149.100] Script timed out before returning headers: php7.0.cgi [Sat Dec 03 22:03:13 2016] [warn] [client 111.248.149.100] Timeout waiting for output from CGI script /home/m/cgi-bin/php7.0.cgi [Sat Dec 03 22:03:13 2016] [error] [client 111.248.149.100] Script timed out before returning headers: php7.0.cgi [Sat Dec 03 22:03:37 2016] [warn] [client 111.248.149.100] Timeout waiting for output from CGI script /home/m/cgi-bin/php7.0.cgi

I have increased all the resource limits on php:

Maximum memory allocation 256M  
Maximum HTTP POST size 36M  
Maximum file upload size 2M  
Maximum execution time 900 seconds  
Maximum input parsing time 60 seconds

and I have changed the permissions on the server to allow the htaccess file to do what it needs to do to control things  
(i found a support thread about this issue while googling solutions)

I can’t find anything else to change…

and I have had the support from my hosting look into everything  
they say that all the setting should be correct  
and everything is there that is required

the install script says that the server config is good to go

the install script does run on step 1  
and does connect to the database  
and it does create some tables in the database

hopefully someone will be able to suggest something  
that could get this working

thanks

Franklin

---

<div class="post-metadata">

**Author:** ![eric1](https://avatars.discourse-cdn.com/v4/letter/e/3bc359/32.png) [@eric1](https://forum.mautic.org/u/eric1)\
**Post date:** [January 16, 2017, 11:14pm UTC](https://forum.mautic.org/t/installation-server-time-out-error/6736/3 "2017-01-16T23:14:39Z")

</div>

I’ve run into the same thing. Looking at the database, I see the table creation and ALTER TABLE commands of the migrations in app/migrations/\* but it doesn’t make it through all of them before the 120sec timeout kicks me back.

Is it possible to collapse all those migrations into a single set of TABLE CREATE statements that I could run?
