Need Help Rebooting VPS

adam_g

Expert Member
Joined
Aug 18, 2011
Messages
1,199
Reaction score
264
Location
127.0.0.1
Hi Guys

I have a vps with host1plus.com

A friend of mine (partner) usually reboots the vps but now when i ask him he ducks and dives and is not really interested so im getting kind of annoyed with him & that i have not learned to do it myself.

if i reboot it from the cp then the website does not come back up i think i need to start apache im not really sure What to do

Im running Ubuntu 12.04 with LAMP

I Am not sure what cmds to execute in SSH once the vps is rebooted.

If anyone can please shed some light.
 
Thing is you shouldn't need to execute any commands, if the server is configured correctly the services needed for the server to do what it is supposed to do will start automatically.

Now in terms of which commands you need to execute will depend on what the server does? There is no generic set of commands.
 
Thing is you shouldn't need to execute any commands, if the server is configured correctly the services needed for the server to do what it is supposed to do will start automatically.

Now in terms of which commands you need to execute will depend on what the server does? There is no generic set of commands.
Yes you right but ever since we installed SSL we now need to boot apache manually.
 
To restart the apache service on Ubuntu all you need to do is run:

If you are the root user:

Code:
service apache2 restart

If you're not root:

Code:
sudo service apache2 restart

If you want to test your apache configuration before starting/stopping the service run:

Code:
apachectl configtest
 
Hi guys

Thanks for all the help i managed to find what i was looking for. i used the following cmds to get apache up and running after a restart

1) sudo netstat -lpn |grep :80
2) kill [PID]
3) service apache2 restart
 
Top
Sign up to the MyBroadband newsletter
X