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 21:39] – external edit 127.0.0.1servers:bsd:nginx_php_php-fpm [2025/08/28 00:45] (current) – [Non-existent 404] http2 works nginx-devel 1.29 Sean Rhone
Line 7: Line 7:
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  * [[bsd:server:freebsd_14.2|FreeBSD 14.2]]+  * [[bsd:server:freebsd_14.3|FreeBSD 14.3]]
  
 ====== Dependencies ====== ====== Dependencies ======
Line 13: Line 13:
   su -   su -
  
-  pkg install nginx-lite php84+  pkg install nginx-devel php84
  
-===== PHP Extensions ===== +===== PHP Modules =====
- +
-==== Verify Modules ====+
  
 **** ****
Line 49: 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 72: Line 70:
  
   * This prevents unconfigured subdomains from loading assets from other sites ((if a site/URL doesn't exist, it'll 404))   * This prevents unconfigured subdomains from loading assets from other sites ((if a site/URL doesn't exist, it'll 404))
-  * 2025/05/16: ''http2'' disabled due to freshports note about gcc disabled; might need ''nginx-full'' or non-lite too? 
  
   su -   su -
Line 81: Line 78:
 server { server {
     listen 443 ssl default_server;     listen 443 ssl default_server;
-#    http2 on;+    http2 on;
     server_name _;     server_name _;
  
Line 179: 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.1747445948.txt.gz · Last modified: by 127.0.0.1