<\/span><\/h2>\n\n\n\nThe Apache web server is open-source software written in C and can run on multiple operating systems such as Windows, Linux, OpenVMS, etc. According to the world statistics, the Apache web server is currently the most used, leading Nginx and Cloudflare as its concurrent.<\/p>\n\n\n\n
To install the Apache web server, execute the commands below:<\/p>\n\n\n\n
sudo apt install apache2 -y<\/pre>\n\n\n\nOnce the web server is installed, we need to start and enable the apache2 service:<\/p>\n\n\n\n
sudo systemctl start apache2 && sudo systemctl enable apache2<\/pre>\n\n\n\nTo check the status of the service, execute the following command:<\/p>\n\n\n\n
sudo systemctl status apache2<\/pre>\n\n\n\nIf everything is OK, you should receive the following output:<\/p>\n\n\n\n
root@host:# sudo systemctl status apache2\n\u25cf apache2.service - The Apache HTTP Server\n Loaded: loaded (\/usr\/lib\/systemd\/system\/apache2.service; enabled; preset: enabled)\n Active: active (running) since Wed 2024-03-13 20:15:39 CDT; 3min 9s ago\n Docs: https:\/\/httpd.apache.org\/docs\/2.4\/\n Main PID: 58694 (apache2)\n Tasks: 55 (limit: 4624)\n Memory: 5.3M (peak: 5.4M)\n CPU: 102ms\n CGroup: \/system.slice\/apache2.service\n \u251c\u250058694 \/usr\/sbin\/apache2 -k start\n \u251c\u250058695 \/usr\/sbin\/apache2 -k start\n \u2514\u250058696 \/usr\/sbin\/apache2 -k start\n\nMar 13 20:15:39 host.test.vps systemd[1]: Starting apache2.service - The Apache HTTP Server...<\/pre>\n\n\n\n