If you have web application hosted on apache HTTP web server on a Linux server (say Ubuntu) and you want to know how to stop/start or restart the server, you can follow the below commands,
1. Command to start apache server:
# sudo service apache2 start
* Starting Apache httpd web server apache2
AH00558: apache2: Could not reliably determine the server's
fully qualified domain name, using 172.17.0.2.
Set the 'ServerName' directive globally to suppress this message *
2. Command to stop apache server:
# sudo service apache2 stop
* Stopping Apache httpd web server apache2 *
3. Command to restart apache server:
# # sudo service apache2 restart
* Restarting Apache httpd web server apache2
AH00558: apache2: Could not reliably determine the server's fully qualified domain name,
using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
[ OK ]
More Posts related to Ubuntu,
- Fix - sudo: systemctl: command not found
- How to know the version of Ubuntu
- [Fix] Ubuntu E: Unable to locate package sudo error
- How to install Apache Maven on Ubuntu
- Steps to Kill a Running Process in Ubuntu Linux
- How to know current Ubuntu Linux version via terminal command
- How to stop/start/restart apache server using command [Ubuntu]
- Fix: Ubuntu (Linux) - bash: sudo: command not found error
- Ubuntu: How to search for a package to install using apt in Terminal
- Fix: E: Command line option --installed is not understood in combination with the other options
- How to install Python on Ubuntu
- Ubuntu Linux: How to Login as root User
- Access Windows share folder in Ubuntu Device in Network
- Add a User as a Sudoer Using Ubuntu Linux Command Line Terminal
- Install Oh My Zsh on Ubuntu Docker complete steps
- Fix: Make makefile:31 Error 127 (GCC)
- [fix] openssl No such file or directory error C++
- How to install zsh shell on Ubuntu
- Install Golang (Go) on Ubuntu
- Ubuntu Linux: Unzip a zip file using Terminal
- Where are Environment Variables stored in Ubuntu
- apt-get list --installed packages in Ubuntu Linux
- Ubuntu: List all Installed Packages using apt
- Quick steps to install Nginx on Ubuntu Linux
- How to kill service running on a port on Ubuntu Linux
More Posts:
- How to Change Notepad++ Toolbar Icons and size - NotepadPlusPlus
- Mac - Steam Needs to Be Online to Update. Please confirm your network connection and try again error - News
- How to resolve Failed to create interpreter PyCharm Error - Python
- Windows 365: Restore Deleted Distribution Group using Admin Center (Active Directory) - Windows
- Fix - ssh-copy-id no identities found error - Linux
- Microsoft Teams Error - You cannot add another work account to Teams at the moment - Teams
- Fix: Failed in attempting to update the source: winget - Windows
- How to Replace delimiter with new line in Notepad++ - NotepadPlusPlus