User Tools

Site Tools


servers:bsd:nginx_php_php-fpm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
servers:bsd:nginx_php_php-fpm [2025/05/16 19:17] – [Let's Encrypt] Sean Rhoneservers:bsd:nginx_php_php-fpm [2025/08/28 00:45] (current) – [Non-existent 404] http2 works nginx-devel 1.29 Sean Rhone
Line 2: Line 2:
  
   * nginx   * nginx
-  * PHP 8.4 
   * PHP-FPM   * PHP-FPM
   * [[Information:Realm of Espionage]]   * [[Information:Realm of Espionage]]
- 
-  * :!: WIP 
  
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  * [[bsd:server:freebsd_14.2|FreeBSD 14.2]]+  * [[bsd:server:freebsd_14.3|FreeBSD 14.3]]
  
 ====== Dependencies ====== ====== Dependencies ======
Line 16: Line 13:
   su -   su -
  
-  pkg install nginx-lite php84 +  pkg install nginx-devel php84
- +
-===== PHP Extensions =====+
  
-==== Verify Modules ====+===== PHP Modules =====
  
 **** ****
Line 52: Line 47:
   su -   su -
  
-  mkdir -p '/usr/local/etc/nginx/conf.d' '/usr/local/etc/nginx/default.d' '/usr/local/etc/nginx/vhosts.d'+  mkdir -p -m '0644' '/usr/local/etc/nginx/conf.d' '/usr/local/etc/nginx/default.d' '/usr/local/etc/nginx/vhosts.d'
  
 ===== HTTPS Redirect ===== ===== HTTPS Redirect =====
Line 83: Line 78:
 server { server {
     listen 443 ssl default_server;     listen 443 ssl default_server;
-#    http2 on;+    http2 on;
     server_name _;     server_name _;
  
Line 181: Line 176:
  
 # End</code> # End</code>
 +
 +====== Resources ======
 +
 +===== dos2unix =====
 +
 +  * Useful for restoring files as-is from Windows
 +
 +  su -
 +
 +  pkg install 'dos2unix'
 +
 +  find /usr/local/www/media -type f -print0 | xargs -0 dos2unix --
 +
 +  chown -R 'www':'www' '/usr/local/www'
 +
 +===== Original confs =====
 +
 +  ee '/usr/local/etc/nginx/nginx.conf~'
 +
 +  ee '/usr/local/etc/php-fpm.d/www.conf~'
  
/usr/local/www/wiki/data/attic/servers/bsd/nginx_php_php-fpm.1747437469.txt.gz · Last modified: by Sean Rhone