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/14 21:10] – [Prerequisites] Sean Rhoneservers:windows:nginx_php_php-cgi [2025/10/07 01:06] (current) Sean Rhone
Line 14: Line 14:
  
   * 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 26:
   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 44:
 ===== 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.0RC1-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.0RC1-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.0RC1-nts-Win32-vs17-x64
  
 ====== nginx Settings ====== ====== nginx Settings ======
Line 206: Line 212:
 ====== Scripts ====== ====== Scripts ======
  
-****+  MKDIR "%SystemDrive%\www\scripts\nginx"
  
-  MKDIR "%SystemDrive%\www\scripts\nginx"+  "explorer.exe" "%SystemDrive%\www\scripts\nginx"
  
 ===== Start ===== ===== Start =====
Line 215: Line 221:
  
 <code> <code>
 +@echo off
 +
 CD "%SystemDrive%\nginx-"*"\" CD "%SystemDrive%\nginx-"*"\"
 +
 "nginx.exe" -c "%SystemDrive%\www\nginx\nginx.conf" "nginx.exe" -c "%SystemDrive%\www\nginx\nginx.conf"
  
Line 225: Line 234:
  
 <code> <code>
 +@echo off
 +
 CD "%SystemDrive%\nginx-"*"\" CD "%SystemDrive%\nginx-"*"\"
 +
 "nginx.exe" -s quit "nginx.exe" -s quit
  
Line 237: Line 249:
  
 <code> <code>
 +@echo off
 +
 CD "%SystemDrive%\nginx-"*"\" CD "%SystemDrive%\nginx-"*"\"
 +
 "nginx.exe" -s reload "nginx.exe" -s reload
 "nginx.exe" -s reopen "nginx.exe" -s reopen
Line 268: Line 283:
  
   nginx   nginx
- 
  
 ====== TODOs ====== ====== TODOs ======
 +
 +  * Task schedule auto-reboot of OS ((to refresh PHP daemons; something about 0 limit))
  
 ===== Resources ===== ===== Resources =====
/usr/local/www/wiki/data/attic/servers/windows/nginx_php_php-cgi.1749949823.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki