How to solve a gateway timeout error

    1. Go to your command prompt, remotely log into your server using
      $ ssh username@domain_name.
    2. Go to your apache.conf file.
      $ sudo vi /etc/apache2/apache2.conf
    3. The editor shall open the file. Look for Timeout, change it to 600
    4. To save, change to command mode by pressing the esc key on the keyboard then
      Type :wq!
    5. Then restart apache2;
      $ sudo systemctl restart apache2