Linux Apps Tutorials - Herong's Tutorial Examples - v1.02, by Herong Yang
Install Apache Web Server "httpd"
This section provides a tutorial example on how to install Apache Web Server 'httpd' on CentOS 8 systems.
The Apache Web server, httpd, should be included as part of the CentOS 8 system. If it is not included, you can follow what I did to install it.
1. Install Apache Web server, httpd, and its required packages:
herong$ sudo dnf install httpd ... Installed: apr-1.6.3-12.el8.x86_64 apr-util-1.6.1-6.el8.x86_64 apr-util-bdb-1.6.1-6.el8.x86_64 apr-util-openssl-1.6.1-6.el8.x86_64 centos-logos-httpd-85.8-2.el8.noarch httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.noarch httpd-tools-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64
2. Start httpd with its default configuration:
herong$ sudo systemctl start httpd
3. Check its running status:
herong$ sudo systemctl status httpd - httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; ...) Active: active (running) since Sun 2022-05-22 Docs: man:httpd.service(8) Main PID: 36626 (httpd) Status: "Started, listening on: port 80" Tasks: 213 (limit: 820618) Memory: 45.5M CGroup: /system.slice/httpd.service ...
4. Check default Web page served by httpd:
herong$ curl http://localhost <!DOCTYPE html> <html lang="en"> <head> <meta name="generator" content="HTML Tidy for HTML5 for Linux version 5.7.28"> <title>HTTP Server Test Page powered by CentOS</title> ...
5. Enable httpd as part of the system boot process:
herong$ sudo systemctl enable httpd Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service -> /usr/lib/systemd/system/httpd.service.
Cool. I have installed Apache Web server, httpd, on my CentOS computer!
Table of Contents
►Running Apache Web Server (httpd) on Linux Systems
►Install Apache Web Server "httpd"
Enable Remote Access to "httpd" Service
"apachectl status|start|stop" Commands
Verify Apache Web Server "httpd" Environment
Running PHP Scripts on Linux Systems
Running MySQL Database Server on Linux Systems
Running Python Scripts on Linux Systems
Conda - Environment and Package Manager