Wordpress on App Engine
It's fast boilerplate of Google's steps to deploy WP in GAE
Demo: GAE for PHP Blog
Notes (READ FIRST):
- 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
Local installation and setup
Installation
- Edit the
database.sqlwith credentials of your local MySQL. Basically you will just need to change allwp_user
andwp_passwordto whatever you want. - Edit
project/wordpress/wp-config.phpwith same credentials in lines 27 and 30 - Run
bash install.shinside the project root folder.
Running
- 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.
Creating GAE project and deploying
Setup
- 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 theService 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 toAdd another permissionand add a new user withWriterpermission.
The email address is the one that you copied in App Engine. Save it. - Go back to the project, go to
Cloud SQLand 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 tabGoogle Cloud Platformmake sure Google Cloud Storage and Google Cloud SQL is bothON - Enable billing on the left nav.
Deploying
- Go to your terminal and run
deploy.sh
Docs
- 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.
On this page
Languages
PHP68.8%C18.9%JavaScript9.4%Shell2.4%C++0.5%Objective-C0.1%Awk0.0%
Contributors
Created May 23, 2013
Updated March 5, 2024