It's fast boilerplate of Google's steps to deploy WP in GAE
Demo: GAE for PHP Blog
- The project includes php-5.4.15 binary that must be used with GAE PHP SDK, GAE SQL CLI, Wordpress 3.5.1 with batcache and memcached plugins, scripts for installation and appengine required files (app.yaml, php.ini etc).
- The SDK will install via script.
- If you want to deploy it to App Engine, register your application first: https://gaeforphp.appspot.com/
- Batcache and Memcached plugins don't need to be activated in plugins
- Edit the
database.sql
with credentials of your local MySQL. Basically you will just need to change allwp_user
andwp_password
to whatever you want. - Edit
project/wordpress/wp-config.php
with same credentials in lines 27 and 30 - Run
bash install.sh
inside the project root folder.
- In the project root folder, run
bash run.sh
- Go to
http://localhost:8080/
to see WP. Go tohttp://localhost:8000/
to see GAE console.
- Go to Google Cloud Console and create a project.
- Open the project and click on App Engine. Inside App Engine go to Administration > Application Settings.
Copy the
Service Account Name
. - Go back to the project. Now go to the Cloud Storage and create a new bucket. On the left, click on the
checkbox of the bucket and then click on Bucket Permissions. Go to
Add another permission
and add a new user withWriter
permission. The email address is the one that you copied in App Engine. Save it. - Go back to the project, go to
Cloud SQL
and create a new instance. Remember the name of the instance you gave. - Go to Console API. Find your created project on the left nav bar and go to Services.
On the tab
Google Cloud Platform
make sure Google Cloud Storage and Google Cloud SQL is bothON
- Enable billing on the left nav.
- Go to your terminal and run
deploy.sh
- Activate Google Cloud Storage
- Using Google Cloud SQL with App Engine PHP SDK
- Uploading Your Application
- Google Cloud SQL CLI
Thanks for sjlangley that helped me with plugins and many other things.