User Tools

Site Tools


servers:windows:nginx_php_php-cgi

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:windows:nginx_php_php-cgi [2025/06/03 11:27] – PHP 8.4.8RC1 (soon) Sean Rhoneservers:windows:nginx_php_php-cgi [2025/09/11 06:43] (current) – external edit 127.0.0.1
Line 7: Line 7:
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  * [[windows;11_ltsc_server|Windows 11 (24H2)]]+  * [[windows;10|Windows 10 (21H2)]] 
 + 
 +===== TODOs ===== 
 + 
 +  * Task schedule auto-reboot of OS ((to refresh PHP daemons; something about 0 limit))
  
 ====== Install ====== ====== Install ======
Line 14: Line 18:
  
   * https://nginx.org/en/download.html   * https://nginx.org/en/download.html
-  * Last tested: ''nginx-1.28.0.zip''+  * Last tested: ''nginx-1.29.1.zip''
  
-  * Extract to root system drive for ''C:\nginx-1.28.0\nginx.exe''+  * Extract to root system drive for ''C:\nginx-1.29.1\nginx.exe''
  
   explorer "%SystemDrive%"   explorer "%SystemDrive%"
Line 26: Line 30:
   MKDIR "%SystemDrive%\www\nginx\conf"   MKDIR "%SystemDrive%\www\nginx\conf"
  
-  COPY /Y "%SystemDrive%\nginx-1.28.0\conf\fastcgi_params" "%SystemDrive%\www\nginx\conf"+  COPY /Y "%SystemDrive%\nginx-1.29.1\conf\fastcgi_params" "%SystemDrive%\www\nginx\conf"
  
-  COPY /Y "%SystemDrive%\nginx-1.28.0\conf\mime.types" "%SystemDrive%\www\nginx\conf"+  COPY /Y "%SystemDrive%\nginx-1.29.1\conf\mime.types" "%SystemDrive%\www\nginx\conf"
  
 ==== Firewall ==== ==== Firewall ====
  
-  "netsh.exe" advfirewall firewall add rule name="nginx" dir="in" action="allow" profile="any" program="%SystemDrive%\nginx-1.28.0\nginx.exe" protocol="tcp" localport="80,443"+  DIR "%SystemDrive%\nginx-1.29.1\nginx.exe" 
 + 
 +  "netsh.exe" advfirewall firewall add rule name="nginx" dir="in" action="allow" profile="any" program="%SystemDrive%\nginx-1.29.1\nginx.exe" protocol="tcp" localport="80,443" 
 + 
 +=== Delete Rule === 
 + 
 +****
  
   "netsh.exe" advfirewall firewall delete rule name="nginx"   "netsh.exe" advfirewall firewall delete rule name="nginx"
Line 38: Line 48:
 ===== PHP-CGI ===== ===== PHP-CGI =====
  
-==== 8.====+==== 8.====
  
   * https://windows.php.net/download/   * https://windows.php.net/download/
   * https://windows.php.net/qa/   * https://windows.php.net/qa/
   * x64 Non Thread Safe   * x64 Non Thread Safe
-  * Last tested: ''php-8.4.8RC1-nts-Win32-vs17-x64.zip''+  * Last tested: ''php-8.5.0beta2-nts-Win32-vs17-x64.zip''
  
-  * Extract to root system drive for ''C:\php-8.4.8RC1-nts-Win32-vs17-x64\php-cgi.exe''+  * Extract to root system drive for ''C:\php-8.5.0beta2-nts-Win32-vs17-x64\php-cgi.exe''
   * Add to user ''Path''   * Add to user ''Path''
  
   explorer "%SystemDrive%"   explorer "%SystemDrive%"
  
-  CD "%SystemDrive%\php-8.4"*"-nts-Win32-"*"-x64\" && "php.exe" -v+  CD "%SystemDrive%\php-8.5"*"-nts-Win32-"*"-x64\" && "php.exe" -v
  
   "SystemPropertiesAdvanced.exe"   "SystemPropertiesAdvanced.exe"
  
-  C:\php-8.4.8RC1-nts-Win32-vs17-x64+  C:\php-8.5.0beta2-nts-Win32-vs17-x64
  
 ====== nginx Settings ====== ====== nginx Settings ======
Line 163: Line 173:
     gzip_comp_level 9;     gzip_comp_level 9;
     gzip_types *;     gzip_types *;
-}</code>+    gzip_static always; 
 +    gunzip on; 
 +} 
 + 
 +# End</code>
  
 ==== CSP Headers ==== ==== CSP Headers ====
Line 215: Line 229:
  
 :: End</code> :: End</code>
- 
-==== Autostart ==== 
- 
-  "explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\StartUp" 
- 
-  "%SystemDrive%\www\scripts\nginx\Start.bat" 
- 
-  nginx 
  
 ===== Stop ===== ===== Stop =====
Line 248: Line 254:
  
   "%SystemDrive%\www\scripts\nginx\Reload.bat"   "%SystemDrive%\www\scripts\nginx\Reload.bat"
 +
 +====== Shortcuts ======
 +
 +===== Desktop =====
 +
 +==== Start ====
 +
 +  "%SystemDrive%\www\scripts\nginx\Start.bat"
 +
 +  nginx Start
 +
 +==== Stop ====
 +
 +  "%SystemDrive%\www\scripts\nginx\Stop.bat"
 +
 +  nginx Stop
 +
 +==== Autostart ====
 +
 +  "explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\StartUp"
 +
 +  "%SystemDrive%\www\scripts\nginx\Start.bat"
 +
 +  nginx
 +
  
 ====== TODOs ====== ====== TODOs ======
Line 258: Line 289:
   * https://community.letsencrypt.org/t/using-certbot-in-windows-the-pragmatic-way/173929   * https://community.letsencrypt.org/t/using-certbot-in-windows-the-pragmatic-way/173929
   * https://www.php.net/manual/en/image.installation.php   * https://www.php.net/manual/en/image.installation.php
 +  * [[https://www.ssllabs.com/ssltest/analyze.html?d=wiki.realmofespionage.xyz|Qualys SSL Test]]
  
/srv/www/wiki/data/attic/servers/windows/nginx_php_php-cgi.1748964470.txt.gz · Last modified: by Sean Rhone