How to Start Apache in Linux?
Contents How Do I Start Apache on Ubuntu? Debian/Ubuntu Linux Specific Commands to Start/Stop/Restart Apache Restart Apache 2 Web Server, Enter: # /Etc/Init...
Contents
How do I start Apache on Ubuntu?
Debian/Ubuntu Linux Specific Commands to Start/Stop/Restart Apache
- Restart Apache 2 web server, enter: # /etc/init.d/apache2 restart. OR. $ sudo /etc/init.d/apache2 restart.
- To stop Apache 2 web server, enter: # /etc/init.d/apache2 stop. OR.
- To start Apache 2 web server, enter: # /etc/init.d/apache2 start. OR.
How do I start apache on CentOS?
Install Apache and PHP on CentOS 6
- Install Apache. Use the following steps to install Apache:
- Open the port to run Apache. Apache runs on port 80.
- Test the Apache installation. Navigate to your Cloud Server IP address (for example, ).
- Configure Apache to run automatically.
- Install PHP and reload Apache.