[last updated: 2019-12-30]
go to: Drupal home page
-----
- Apache is free and open-source cross-platform web server software.
- Disclaimer: Much of what's below may be in error. It's just my best guess at the moment.
- browser with /localhost/server-status ... reports:
Apache/2.4.29 (Ubuntu)
- When Apache is successfully installed, entering "localhost" into your web browser URL will bring up the Apache welcome screen. This is a index.html file that is located in /var/www/html
Further, entering localhost/index2.html will likewise display that file if it exists in the /var/www/html folder
Similarly, if you have subdirectories in the /var/www/html folder, with .html files in them, you can display/execute them by entering their pathname into your browser, eg. localhost/dir01/file01.html
Note: Writing or editing files in /var/www/html requires sudo privilege
- Apache was installed on my Dell tower along with mySQL, apparently because mySQL needs a webserver for accessing the DB.
----------------------
- Start, Stop or Restart Apache2:
Restart Apache 2 web server, enter:
# /etc/init.d/apache2 restart
OR: $ sudo /etc/init.d/apache2 restart
OR: $ sudo service apache2 restart
To Stop Apache 2 web server, enter:
# /etc/init.d/apache2 stop
OR: $ sudo /etc/init.d/apache2 stop
OR: $ sudo service apache2 stop
To Start Apache 2 web server, enter:
# /etc/init.d/apache2 start
OR: $ sudo /etc/init.d/apache2 start
OR: $ sudo service apache2 start
.
.
.
eof