notes/apachesetup.txt
2021-08-21 06:37:26 -07:00

34 lines
967 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Install Apache on Arch Linux
We must first begin by installing Apache with the following command:
sudo pacman -S apache
Start the Apache service with the following command:
sudo systemctl start httpd
To edit the main Apache configuration file for one or many websites, according to your preference, open the configuration file located in the following directory:
sudo nano /etc/httpd/conf/httpd.conf
In order to test the installation, create a test HTML file in the following directory with the command below:
sudo nano /srv/http/index.html
Insert the following HTML code in the empty file then save and exit:
<html>
<body>
<h1>CONGRATULATIONS</h1>
<h2>You have just installed Apache on your Arch Linux Server</h2>
</body>
</html>
You can now verify that Apache is installed correctly by typing http:// and your IP address in your browser.
http://YOUR.IP.ADD.RESS
To get your servers public IP address, type the following command:
curl icanhazip.com