Sudo ufw allow 80/tcp comment 'accept Apache' Step 3 – Open the Apache port 80 and 443 using UFW firewallĮxecute the following ufw command to port TCP port 80 and 443 for everyone May 05 19:49:41 db-host systemd: Started The Apache HTTP Server. Set the 'ServerName ' directive globally to suppress this message May 05 19: 49: 41 db-host apachectl : AH00558: apache2: Could not reliably determine the server 's fully qualified domain name, using 127.0.1.1. May 05 19: 49: 41 db-host systemd : Starting The Apache HTTP Server. Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled )Īctive: active (running ) since Tue 19: 49: 41 UTC 7min ago Sudo systemctl reload rvice Find the status of apache2 server Sudo systemctl restart rvice Reload the apache2 server gracefully Sudo systemctl stop rvice Restart the apache2 server
Sudo systemctl start rvice Stop the apache2 server To start, stop, restart and then find the service status again use the following commands. Sudo systemctl enable rvice Managing Apache 2 service on Ubuntu cloud server We are going to use the systemctl command as follows to enable the rvice: Step 2 – Make sure Apache service started on boot In other words, type the following command and press the key:
Now that system updated with the latest patches, it is time to install Apache 2 software. To do that, type the following apt command: Make sure your system is up to date and patched.
#Install apache ant on linux how to
How to install Apache on Ubuntu 20.04 LTS