@anissa
To install Apache on Ubuntu, you can follow these steps:
- Open a terminal and update the package manager index:
- Install Apache using the following command:
1
|
sudo apt install apache2
|
- Once the installation is complete, start the Apache service:
1
|
sudo systemctl start apache2
|
- You can check the status of the Apache service using the following command:
1
|
sudo systemctl status apache2
|
- If the Apache service is running, you should see a message similar to "Active: active (running)".
- You can now access the default Apache page by opening a web browser and visiting "http://localhost" or "http://127.0.0.1".
- If you want to enable Apache to start automatically when the system boots up, use the following command:
1
|
sudo systemctl enable apache2
|
That's it! Apache should now be installed and running on your Ubuntu system.