servers:linux:nginx_php_php-fpm
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
servers:linux:nginx_php_php-fpm [2025/01/22 16:59] – Sean Rhone | servers:linux:nginx_php_php-fpm [2025/07/13 23:02] (current) – Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Information ====== | ====== Information ====== | ||
- | * nginx ((https:// | + | * nginx |
* PHP | * PHP | ||
* PHP-FPM | * PHP-FPM | ||
Line 8: | Line 8: | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
- | * [[linux;distros;server; | + | * [[linux:distros:server:opensuse_tumbleweed_server|openSUSE Tumbleweed |
- | + | ||
- | ===== Resources ===== | + | |
- | + | ||
- | * [[https:// | + | |
- | * https:// | + | |
- | + | ||
- | ==== Old ==== | + | |
- | + | ||
- | * [[https:// | + | |
- | * [[https:// | + | |
- | * [[https:// | + | |
- | * https:// | + | |
- | * https:// | + | |
- | * https:// | + | |
- | * https:// | + | |
- | * https:// | + | |
====== Dependencies ====== | ====== Dependencies ====== | ||
Line 30: | Line 14: | ||
**** | **** | ||
- | sudo dnf install git nginx php-fpm php-cli | + | sudo zypper |
====== Information ====== | ====== Information ====== | ||
Line 40: | Line 24: | ||
====== Firewall ====== | ====== Firewall ====== | ||
- | | + | **** |
- | | + | |
sudo firewall-cmd --add-service=' | sudo firewall-cmd --add-service=' | ||
- | |||
- | ====== SELinux ====== | ||
- | |||
- | ===== DokuWiki ===== | ||
- | |||
- | * 2023/09/12 | ||
- | |||
- | sudo setsebool -P ' | ||
- | |||
- | sudo setsebool -P ' | ||
- | |||
- | sudo setsebool -P ' | ||
- | |||
- | sudo setsebool -P ' | ||
====== Services ====== | ====== Services ====== | ||
Line 66: | Line 35: | ||
sudo systemctl enable ' | sudo systemctl enable ' | ||
- | |||
- | ====== Permissions ====== | ||
- | |||
- | **** | ||
- | |||
- | sudo chown --recursive ' | ||
====== Config Defaults ====== | ====== Config Defaults ====== | ||
- | ===== Backup | + | ===== php-fpm Default Pool ===== |
- | sudo mv '/etc/nginx/default.d/php.conf' '/etc/nginx/default.d/php.conf~' | + | sudo mv '/etc/php8/fpm/php-fpm.d/www.conf' '/etc/php8/fpm/php-fpm.d/www.conf~' |
- | | + | |
- | sudo mv '/ | + | ===== nginx.conf ===== |
sudo mv '/ | sudo mv '/ | ||
- | ===== View ===== | + | nano '/ |
- | nano '/ | + | ===== php.ini ===== |
- | + | ||
- | nano '/ | + | |
- | + | ||
- | nano '/ | + | |
- | + | ||
- | nano '/ | + | |
- | nano '/ | + | nano '/etc/php8/cli/ |
====== nginx Settings ====== | ====== nginx Settings ====== | ||
Line 148: | Line 105: | ||
===== Headers ===== | ===== Headers ===== | ||
- | * Last updated: 2024/02/07 | ||
* Add to individual site configs as an '' | * Add to individual site configs as an '' | ||
Line 166: | Line 122: | ||
===== nginx ===== | ===== nginx ===== | ||
- | |||
- | * Last updated: 2023/09/12 | ||
sudo -e '/ | sudo -e '/ | ||
< | < | ||
- | user nginx; | ||
- | worker_processes auto; | ||
- | error_log / | ||
- | pid / | ||
- | |||
- | include / | ||
- | |||
events { | events { | ||
- | | + | |
+ | worker_connections | ||
} | } | ||
+ | |||
+ | #error_log / | ||
http { | http { | ||
- | | + | # Logging |
- | log_format | + | #log_format main '$time_local - $http_host - $remote_addr - $status |
- | ' | + | #access_log |
- | '" | + | |
- | + | ||
- | | + | |
- | | + | # Includes |
- | include / | + | |
- | include / | + | |
- | include / | + | |
- | default_type application/ | + | |
- | | + | # Config |
- | sendfile on; | + | |
- | tcp_nopush on; | + | |
- | tcp_nodelay on; | + | |
- | keepalive_timeout 65; | + | |
- | types_hash_max_size 4096; | + | |
- | | + | # gzip |
- | gzip on; | + | |
- | gzip_vary on; | + | |
- | gzip_proxied any; | + | |
- | gzip_comp_level 9; | + | |
- | gzip_types *; | + | |
} | } | ||
Line 245: | Line 192: | ||
ssl_prefer_server_ciphers ' | ssl_prefer_server_ciphers ' | ||
ssl_ecdh_curve ' | ssl_ecdh_curve ' | ||
- | |||
- | ssl_stapling ' | ||
- | ssl_stapling_verify ' | ||
# End</ | # End</ | ||
+ | |||
+ | ====== TODOs ====== | ||
+ | |||
+ | ===== Resources ===== | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * [[https:// | ||
+ | |||
+ | ==== Old ==== | ||
+ | |||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * [[https:// | ||
+ | * https:// | ||
/usr/local/www/wiki/data/attic/servers/linux/nginx_php_php-fpm.1737583184.txt.gz · Last modified: by Sean Rhone