Upgrade timed out

Hi, I was told to upgrade my OJS in order to solve some bugs I cannot fix, so I decided to test this out in an OJS subdomain I keep for tests before making any changes in my Production OJS.

So, I did everything recommended: backed it all up, copyed the config.inc and such, everything’s fine until the Upgrade Database Step: it takes forever and I get the 504 Gateway Time-out message everytime.

I’ve read that I could solve this by adding max_execution_time in my php.ini file and setting it to a high value.
This is my php.ini file:

    extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20100525"
    zend_extension = "/usr/local/IonCube/ioncube_loader_lin_5.4.so"
    extension = "pdo.so"
    extension = "pdo_sqlite.so"
    extension = "pdo_pgsql.so"
    extension = "pdo_mysql.so"
    extension = "timezonedb.so"
    date.timezone="America/Sao_Paulo"
    upload_max_filesize = 10M
    post_max_size = 10M
    extension = php_openssl.dll
    extension = php_smtp.dll 
    max_execution_time = "960"

As you can see, the value is very high. It should be enough to solve this, unless it’s the wrong file or other factor I’m unaware of. Any tips?

Hi @sienp2016,

It sounds like your server is behind a reverse proxy, and the proxy is where the timeout is occurring. Do you have access to the command line? I’d suggest using the tools/upgrade.php command-line tool to upgrade e.g. via SSH.

Regards,
Alec Smecher
Public Knowledge Project Team

Actually, I don’t. So, I guess this is a task for the hosting provider