Menjalankan WordPress pada App Engine Flexible Environment


1. Create project (appengine-flex-wp, flex-wordpress)
2. Enable App engine Admin API
3. Enable Cloud SQL API
4. Create Instance and database
5. Create Cloud storage bucket
6. Install composer
a. mkdir -p ${HOME}/bin
b. php -r “copy(‘ ‘composer-setup.php’);”
c. php -r “if (hash_file(‘SHA384’, ‘composer-setup.php’) === rtrim(file_get_contents(‘ { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;”
d. php composer-setup.php –filename=composer –install-dir=${HOME}/bin
e. export PATH=${HOME}/bin:${PATH}
7. Get The WordPress Helper Script
a. git clone
b. cd php-docs-samples/appengine/flexible/wordpress
c. sudo apt-get update -y
d. sudo apt-get install php7.2-zip
e. composer install –no-dev
8. Create your WordPress project
a. Use the default directory. When prompted We will use the directory: my-wordpress-project. If the directory exists, we will overwrite the contents. Do you want to continue? (Y/n) Enter Y.
b. When prompted Please select the region of your Cloud SQL instance (defaults to us-central1), enter us-central1.
c. When prompted to enter your project_id, enter your Qwiklabs project ID found in the connection details section.
d. When prompted for your password, enter your DB password (should be password).
e. cd into the directory my-wordpress-project so you’ll be ready to run the next step.
9. Deploy your WordPress blog
a. gcloud app deploy
b. gcloud app browse



Please enter your comment!
Please enter your name here