Skip to content

About

Linux web stack configuration & deployment repository for Nginx, WordPress, Apache HTTPD, and PHP-FPM FastCGI pools

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Linux Web Stack Deployments

Configuration templates and deployment scripts for Nginx, WordPress, Apache HTTPD, and PHP-FPM architectures on Linux enterprise servers.

Overview

This repository demonstrates hands-on experience in web server architecture and application stack deployment on Linux systems. It details Nginx reverse proxy configurations with WordPress and MySQL 8.0, alongside Apache HTTPD integration with PHP-FPM FastCGI process management.

Components and Configurations

1. Nginx Web Server with WordPress (nginx/wordpress-site.conf)

Nginx virtual host configuration configured for high-concurrency web serving and reverse proxying.

Key features:

  • FastCGI proxy pass-through to PHP-FPM daemon (127.0.0.1:9000).
  • Enabled gzip HTTP compression for static assets (text/css, application/javascript).
  • Hardened HTTP security headers (X-Frame-Options, X-Content-Type-Options, X-XSS-Protection).
  • Configured /stub_status metrics path restricted to loopback IP (127.0.0.1) for Prometheus exporters.

2. Apache HTTPD with PHP-FPM (apache/httpd-php-fpm.conf)

Apache VirtualHost setup offloading PHP execution to PHP-FPM via FastCGI (mod_proxy_fcgi).

Key features:

  • Decouples static file serving from dynamic PHP execution pools.
  • Uses FilesMatch directives to forward .php execution handlers.
  • Defines standard log formats and directory access controls.

3. Syntax Validation Script (scripts/verify_configs.sh)

Utility script for validating web server configuration files before applying reloads.

Usage:

chmod +x ./scripts/verify_configs.sh
./scripts/verify_configs.sh

Architecture Summary

  • Nginx Architecture: Asynchronous event-driven worker processes with stub_status telemetry for monitoring.
  • PHP-FPM Management: Process manager pools handling dynamic PHP workloads independently from front-end web daemons.
  • Apache Modular Integration: HTTPD configured as front-end listener with proxy_fcgi handler modules.

Repository Structure

.
├── README.md
├── apache/
│   └── httpd-php-fpm.conf
├── nginx/
│   └── wordpress-site.conf
└── scripts/
    └── verify_configs.sh

About

Linux web stack configuration & deployment repository for Nginx, WordPress, Apache HTTPD, and PHP-FPM FastCGI pools

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages