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/13 07:39] – [nginx] 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;10_ltsc_server|Windows 10 (21H2)]]+  * [[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.8-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.8-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.8-nts-Win32-vs17-x64+  C:\php-8.5.0beta2-nts-Win32-vs17-x64
  
 ====== nginx Settings ====== ====== nginx Settings ======
/srv/www/wiki/data/attic/servers/windows/nginx_php_php-cgi.1749814743.txt.gz · Last modified: by Sean Rhone