Etai Gilad
Etai Gilad

Reputation: 13

Site is down after VM restart Google Cloud Engine

After a restart of my VM instances my site is down. I checked the IP address, but it didn't change. Do you have any ideas about what is wrong and how to fix it?

I run WordPress (Bitnami) on a Debian-based OS. I use Cloudflare CDN. I understand that on stopping a VM it doesn't keep the settings. Can I restore them?

Upvotes: 0

Views: 1971

Answers (2)

AlbertoVI
AlbertoVI

Reputation: 110

About your last error message

Syntax OK (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down AH00015: Unable to open logs /opt/bitnami/apache2/scripts/ctl.sh : httpd could not be started Monitored apache

I have found similar errors due to Nginx, it could happen if you have it installed and it is creating conflicts. make sure you remove it as follow:

sudo apt-get remove nginx nginx-common

sudo apt-get autoremove         #to remove unneeded dependencies  

Upvotes: 1

cantuket
cantuket

Reputation: 1592

Your environment doesn't loose configuration "settings", but rather the servers that use those configurations will terminate their processes when the VM shuts downs and will need to be restarted.

The problem is likely that you need to restart both your Apache web server (which starts the PHP runtime and proxies HTTP requests) and your MySQL server (which is your database)...

Restart Apache:

sudo service apache2 restart

Restart MySQL:

sudo service mysql restart OR sudo /etc/init.d/mysql restart


EDIT: It appears your Bitnami image has a different configuration...

Start All services: sudo /opt/bitnami/ctlscript.sh start

Restart Apache: sudo /opt/bitnami/ctlscript.sh restart apache

Restart MySQL: sudo /opt/bitnami/ctlscript.sh restart mysql

Upvotes: 1

Related Questions