Service apache2 start & service apache2 status Let’s now enable apache2 service daemon and check its status once again. Service apache2 stop & service apache2 status We can stop apache2 service and check its status again. You can accomplish this with our previously used service command, which is a high-level utility tool that manages systemd processes on your Ubuntu machine.įirst, let’s make sure Apache is up and running by checking the status of our apache2 service. When running an Apache web server, you may want to manipulate its system process one way or another. If all went well, you should see the default Apache landing page. You may now test your Apache web server connection by accessing your IP address on port 80, which you may do by entering into your web browser. Let’s enable the default HTTP port in the firewall by creating an allow rule for Apache application profile.Īs you can see, all incoming traffic is now being denied, except to port 80 (Apache) and port 22 (SSH) which is what we want.
Apache Full profile opens both the non-encrypted HTTP port 80 and the encrypted HTTPS port 443.Apache Secure profile is associated with port 443 which is used for SSL encrypted HTTPS traffic.
Apache profile is associated with port 80 which is used for non-encrypted HTTP traffic.You may list all application profiles that ufw service is aware off.Īs you may see, ufw is aware of three Apache application profiles. Next, you need to enable Apache service through ufw. If you are using the default SSH port, you must allow it before enabling ufw service to not accidentally block yourself from connecting to your server, since ufw denies all incoming traffic by default. Ubuntu comes with ufw (Uncomplicated Firewall) pre-installed for managing iptables. #Adjust Firewall Security ConfigurationĪfter Apache is installed, you should make sure your firewall is properly configured. If not, enable it yourself with service apache2 start command. You should see Apache service active and running. You may verify this yourself by using your service manager. Now that your package list is up to date, we can proceed to installing Apache on your host machine.Īfter the installation is complete Apache httpd daemon should be up and running.
#Install Apache Web Serverīefore installing any new software, it is always a good idea to update your software package lists.
Apache is now a mature, yet still actively developed web server that is highly compatible with other popular software such as WordPress, Joomla, Drupal, and others.
The Apache foundation’s goal is to create a robust, commercial-grade, feature-full, and freely available source code implementation of an HTTP (Web) server. Apache has a rich set of features that can be enabled dynamically by installing official modules for auto-indexing, ftp connections, load balancing, URL tracking and many other additional functionality. It is based on a process-driven architecture and works by creating a new thread every time a server request is received. Apache is one of the most widely used web servers in the world.