So I’ve been trying to restore the backup of my Wordpress site and I’ve been getting a 504 error. I’ve tried to use the Wordpress REST API to restore the backup but it’s not working. Regardless of the reason, I’ve been getting the error for a long time.
Check first with your hosting provider if they are running any proxies. If not, you can solve the issue by adding a .user.ini
file to your Wordpress site.
Easies way to do that is to install Filezilla and then connect to your Wordpress site.
In the httpdocs folder of your Wordpress site, create a new file called .user.ini
Then open the .user.ini
file and add the following lines:
memory_limit = 256M
max_execution_time = 300
upload_max_filesize = 64M
post_max_size = 64M
Save it and make sure you close the file and it’s uploaded again by Filezilla.
Now you should be able to handle larger files on your Wordpress server and restore the backup.