User Tools

Site Tools


servers:bsd:freenginx_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:freenginx_php_php-fpm [2026/07/07 17:54] – Sean Rhoneservers:bsd:freenginx_php_php-fpm [2026/09/24 20:41] (current) – USE_ZEND_ALLOC=0 Sean Rhone
Line 8: Line 8:
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  * [[bsd:server:arm:freebsd_16.0|FreeBSD 16.0]]+  * [[bsd:server:arm:freebsd_15.1|FreeBSD 15.1]]
  
 ====== Dependencies ====== ====== Dependencies ======
Line 172: Line 172:
  
 http { http {
- # Logging 
  #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '  #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  #                  '$status $body_bytes_sent "$http_referer" '  #                  '$status $body_bytes_sent "$http_referer" '
  #                  '"$http_user_agent" "$http_x_forwarded_for"';  #                  '"$http_user_agent" "$http_x_forwarded_for"';
  #access_log  logs/access.log  main;  #access_log  logs/access.log  main;
- 
  access_log '/dev/null';  access_log '/dev/null';
  
- # Includes 
  include '/usr/local/etc/freenginx/conf.d/*.conf';  include '/usr/local/etc/freenginx/conf.d/*.conf';
  include '/usr/local/etc/freenginx/vhosts.d/*.conf';  include '/usr/local/etc/freenginx/vhosts.d/*.conf';
Line 186: Line 183:
  default_type 'application/octet-stream';  default_type 'application/octet-stream';
  
- # Config 
  sendfile 'on';  sendfile 'on';
  tcp_nopush 'on';  tcp_nopush 'on';
Line 193: Line 189:
  types_hash_max_size '4096';  types_hash_max_size '4096';
  
- # gzip 
  gzip 'on';  gzip 'on';
  gzip_vary 'on';  gzip_vary 'on';
Line 229: Line 224:
  
 # End</code> # End</code>
 +
 +====== Tweaks ======
 +
 +===== PHP =====
 +
 +  su -
 +
 +  mkdir -p '/usr/local/etc/profile.d' && echo "export USE_ZEND_ALLOC='0'" | tee '/usr/local/etc/profile.d/php-tweaks.sh' > '/dev/null'
  
 ====== Resources ====== ====== Resources ======
/srv/www/wiki/data/attic/servers/bsd/freenginx_php_php-fpm.1783461285.txt.gz · Last modified: by Sean Rhone