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.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

  1. Install Apache. Use the following steps to install Apache:
  2. Open the port to run Apache. Apache runs on port 80.
  3. Test the Apache installation. Navigate to your Cloud Server IP address (for example, ).
  4. Configure Apache to run automatically.
  5. Install PHP and reload Apache.
Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest