Google Cloud (B) – Migrate WordPress to Google Cloud

  1. Install WordPress on Google Cloud
  2. Transfer Existing WordPress to Google Cloud
  3. Connect to PHPMyAdmin via an SSH


1. Install WordPress on Google Cloud

cd /var/www/html to the path
wget -c    
chown -R www-data:www-data /var/www/html/wordpress  

Create database for wordpress

mysql -u root -p  
CREATE DATABASE wordpress_db;GRANT ALL PRIVILEGES ON wordpress_db.* TO ‘wordpress_user’@’localhost’ IDENTIFIED BY ‘PASSWORD’;FLUSH PRIVILEGES;exit; create wordpress database
mv wp-config-sample.php wp-config.php make sure in /var/www/html/wordpress path
nano wp-config.php change: db_name, db_user, db_password
systemctl restart apache2systemctl restart mysql  go to http://your_server_ip_address/wordpress





About: Raymond