Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable do install Wordpress on App Engine Standard #618

Closed
dianaarnos opened this issue May 27, 2018 · 6 comments

Comments

@dianaarnos
Copy link

commented May 27, 2018

When running the Wordpress install after deployment, I'm unable to finish the process because the script exceeds the maximum execution time when going from step 1 to step 2 (wp-admin/install.php?step=2)
This error only happens on GAE Standard and we are unable to change the default value for max_execution_ time of php, so this option shouldn't be available when running php wordpress-helper.php setup nor presented as an option on the README.md of appengine/wordpres

This is the error registered on Stackdriver:

PHP Fatal error: The request was aborted because it exceeded the maximum execution time. in /base/alloc/tmpfs/dynamic_runtimes/php55_dynamic/604979b5e0b1a912/sdk/google/appengine/api/log/LogService.php on line 411
@CarlosKhazs

This comment has been minimized.

Copy link

commented Aug 12, 2018

I'm getting a redirect loop (302 error on the GET request on the instance logs) when I try to access the home page. Since I've deployed my application I cannot even access the Wordpress installation page. Actually, none page. I'm using php72 Standard App Engine.
Any solution?

@tkhduracell

This comment has been minimized.

Copy link

commented Aug 19, 2018

I'm also trying the appengine/php72/wordpress sample without any success. Redirect loops when trying to access wp-admin and the wp cli command in the README is outdated.

@bshaffer

This comment has been minimized.

Copy link
Contributor

commented Aug 22, 2018

Hi guys, please try with the new tool and see if the issue persists. I believe it has to do with this fix, the App Engine server does not set the HTTPS parameter, which WordPress relies on to determine if it's secure, and redirects if it isn't there.

@bshaffer

This comment has been minimized.

Copy link
Contributor

commented Aug 22, 2018

The fix is as follows:

$_SERVER['HTTPS'] = $_SERVER['HTTP_X_APPENGINE_HTTPS'];

@bshaffer bshaffer added the wordpress label Sep 5, 2018

@CarlosKhazs

This comment has been minimized.

Copy link

commented Sep 11, 2018

@bshaffer

This comment has been minimized.

Copy link
Contributor

commented Sep 27, 2018

Yay! Thank you! Please open a new issue if you run into anything else!

@bshaffer bshaffer closed this Sep 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.