Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Start / Stop / Restart Apache Web Server Via SSH or root

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
mach
Posts: 77
Joined: Tue Oct 27, 2015 6:34 pm

Start / Stop / Restart Apache Web Server Via SSH or root
  • Quote

Post by mach » Thu Nov 26, 2015 7:50 pm

problems with your server apache..

follow first this script...
Once logged in switch to the root user by typing su - and entering the root password, when prompted:
ubuntu users type sudo -i
$ su -

To restart Apache 2 web server over the ssh, enter:
# /etc/init.d/apache2 restart

To stop Apache 2, enter:
# /etc/init.d/apache2 stop

To start Apache 2, enter:
# /etc/init.d/apache2 start

If you are using RHEL / CentOS / Fedora based server, enter:
# service httpd restart

To stop RHEL / CentOS / Fedora based Apache server, enter:
# service httpd stop

To start RHEL / CentOS / Fedora based Apache server, enter:
# service httpd start
A Note About apachectl Command

You can also use the apachectl command as follows to restart the apache server:
# apachectl -k restart
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Start / Stop / Restart Apache Web Server Via SSH or root
  • Quote

Post by skurudo » Fri Nov 27, 2015 7:12 am

Ehm... what's it it? FAQ or problem? ;-)

If FAQ, then will be helpfull teach use sudo than command... fro

Code: Select all

sudo service apache2 status
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password