Linux Apps Tutorials - Herong's Tutorial Examples
∟Running Apache HTTP Server (httpd) on Linux Systems
This chapter provides introductions and tutorial on Apache HTTP Server (httpd) for Linux systems. Topics include installing Apache HTTP Server (httpd); opening firewall for http service on port 80; publishing Home Page; understanding Apache HTTP Server environment; installing Web server certificate; configuring Apache to support HTTPS protocol; adding extra ports.
What Is Apache HTTP Server "httpd"
Install Apache HTTP Server "httpd"
Enable Remote Access to "httpd" Service
Publish Home Page index.html
"apachectl status/start/stop" Commands
Verify Apache HTTP Server "httpd" Environment
Requirements for Supporting HTTPS on Apache
Web Server Certificate and Required Fields
Apache Configuration for HTTPS Protocol
Common Issues with Apache HTTPS Support
Listen to Non-Standard Ports with Apache
Takeaways:
- Apache HTTP Server is free and easy to use.
- Use "sudo dnf install httpd" to install Apache HTTP Server httpd.
- Use "sudo systemctl start/stop httpd" to start or stop Apache HTTP Server httpd.
- Use "sudo apachectl start/stop" to start or stop Apache HTTP Server httpd.
- Use "sudo cp index.html /var/www/html" to publish the Home Page.
- Use "sudo tail /var/log/httpd/access_log" to view server log messages.
- Use "sudo vi /etc/httpd/conf/httpd.conf" to change server configurations.
- Use "sudo vi /etc/httpd/conf.d/ssl.conf" to manage SSL configuration for HTTPS protocol.
- Use "/etc/pki/tls/certs" to store Web server certificate and its CA certificate chain files.
- Use "/etc/pki/tls/private" to store Web server private key file.
- Use "sudo systemctl disable httpd.socket" to stop using Socket Activation service
to avoid extra configuration when adding new ports.
Table of Contents
About This Book
Introduction to Linux Systems
Process Management
Files and Directories
►Running Apache HTTP Server (httpd) on Linux Systems
Running Apache Tomcat on Linux Systems
Running PHP Scripts on Linux Systems
Running MySQL Database Server on Linux Systems
Running Python Scripts on Linux Systems
Conda - Environment and Package Manager
GCC - C/C++ Compiler
OpenJDK - Open-Source JDK
Graphics Environments on Linux
SquirrelMail - Webmail in PHP
Tools and Utilities
References
Full Version in PDF/EPUB