Immigrate WordPress to Google Cloud (Ubuntu 18.04)

At the begining the lowest capacity was chosen for the instance. Just few hours after the immigration finished, I couldn’t load to the site. Neither SSH connection worked.  I tried to review the serial port log, where I could only find soe trace that it might be caused by the PHP. But apart from that, there was no way for me to fix the issue. The first time when I encountered this, I was thinking, OK, maybe I did wrong on some configurations, so let’s redo it… and I got the same result the second time ! 

The third time, I installed BT Panel, which can set up the environment automatically. And still the second day I get notified that the performance of the instance is saturated. 

So I just swiched to a capacity that is just a bit higher. It has been 4 days since then and everything works well. 

Next I need to figure out why the lowest capacity works for many other WP sites but not mine.

  1. Register Google Cloud Platform
    https://guozeyu.com/2016/10/asia-google-compute-engine/#i-11
  2. Create et setup VM instance (Compute Engin)
  3. VPC Network setting – Static External IP, Firewall Rules
  4. Initial Server Setup with Ubuntu 18.04
    http://blkstone.github.io/2018/05/13/set-up-wordpress-with-ubuntu-18-04/
    https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04
  5. SSH connection with PuTTY
    https://blog.tearth.me/putty_gc/
  6. Install Apache2
    https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-18-04
    https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-18-04#step-5-%E2%80%94-setting-up-virtual-hosts-(recommended)
  7. Install MySQL
    https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-18-04
  8. Install PHP
    https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-18-04
  9. Install phpmyadmin (manually)
    https://devanswers.co/manually-upgrade-phpmyadmin/
    https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-18-04
  10. Create a MySQL Database and User for WordPress
    https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-16-04
  11. Upload backup site folder through SFTP/FileZilla
    Google Cloud FTP Setup with FileZilla
  12. Move the files to /var/www/xxxx
    https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-16-04
  13. Transfer Namesilo domain to Google Cloud Hosting
    https://www.iqiqi.org/namesilo-domain-resolution/
    https://www.onepagezen.com/transfer-domain-google-cloud-platform/
  14. Directory setup for wordpress and phpmyadmin
    https://www.tecmint.com/change-secure-phpmyadmin-login-url-page/
  15. WordPress initialization
  16. Replace database with the old one (change url)
    https://blog.fazero.me/2015/07/11/WordPress%E5%8D%9A%E5%AE%A2%E7%BD%91%E7%AB%99%E6%90%AC%E5%AE%B6%E5%92%8C%E6%8D%A2%E5%9F%9F%E5%90%8D%E6%96%B9%E6%B3%95/
    https://www.zhudc.com/wordpress/221
  17. SSL: Secure Apache with Let’s Encrypt on Ubuntu 18.04
    https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04

发布者

adaier

奔四。 好骑车,拍照,背包旅行和各种折腾。 最近的爱好应该是宅。 正努力充电正能量。