WordPress Issues with Cloud Compute
Solution 1:
You are not able to access your WordPress because your original IP was ephemeral and it changed when you stopped the instance and started it again.
To solved this problem you can modifying 2 fields in the DB:
-
In the Google Cloud Console, go to the VM instances page to check the new IP for your
WordPress
Instance. -
Use your new IP to access to your
phpMyAdmin
:
https://34.75.xxx.xxx/phpmyadmin/
If you don't know your credentials to access to phpMyAdmin you can get this information with the following command using ssh:
sudo sed -n 1p /home/ubuntu/.db_password
-
Once you have access, go to wordpress -> wp_options
-
Then you edit the option name
- siteurl
- home
After this action you should be able to access your site again with the New IP.
Reserving a static external IP address
To avoid this issue in the future you could Reserve your IP:
- In the Cloud Console, go to the VM instances page.
- Click the name of the instance that you want to assign an external IP to. The instance details page displays.
- From the instance details page, complete the following steps:
a. Click Edit. b. Under Network interfaces, click the edit button.
c. Under External IP, select Static external IP address to assign to the instance.
d. Click Done and Save.
(Note: I'm using a fresh installation of WordPress LiteSpeed)