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/03/15 18:48] Sean Rhoneservers:windows:nginx_php_php-cgi [2025/04/18 11:29] (current) – [nginx] Sean Rhone
Line 14: Line 14:
  
   * https://nginx.org/en/download.html   * https://nginx.org/en/download.html
-  * Last tested: ''nginx-1.27.4.zip''+  * Last tested: ''nginx-1.27.5.zip''
  
-  * Extract to root system drive for ''C:\nginx-1.27.4\nginx.exe''+  * Extract to root system drive for ''C:\nginx-1.27.5\nginx.exe''
  
   explorer "%SystemDrive%"   explorer "%SystemDrive%"
Line 22: Line 22:
   CD "%SystemDrive%\nginx-"*"\" && "nginx.exe" -v   CD "%SystemDrive%\nginx-"*"\" && "nginx.exe" -v
  
-==== Firewall ====+==== confs ====
  
-  "netsh.exe" advfirewall firewall add rule name="nginx HTTP" dir="in" action="allow" program="%SystemDrive%\nginx-1.27.4\nginx.exe" protocol="tcp" localport="80"+  MKDIR "%SystemDrive%\www\nginx\conf"
  
-  "netsh.exe" advfirewall firewall add rule name="nginx HTTPS" dir="in" action="allow" program="%SystemDrive%\nginx-1.27.4\nginx.exeprotocol="tcp" localport="443"+  COPY /Y "%SystemDrive%\nginx-1.27.5\conf\fastcgi_params" "%SystemDrive%\www\nginx\conf"
  
-=== Update ===+  COPY /Y "%SystemDrive%\nginx-1.27.5\conf\mime.types" "%SystemDrive%\www\nginx\conf" 
 + 
 +==== Firewall ====
  
-  "netsh.exe" advfirewall firewall delete rule name="nginx HTTP"+  "netsh.exe" advfirewall firewall add rule name="nginx" dir="in" action="allow" profile="any" program="%SystemDrive%\nginx-1.27.5\nginx.exe" protocol="tcp" localport="80,443"
  
-  "netsh.exe" advfirewall firewall delete rule name="nginx HTTPS"+  "netsh.exe" advfirewall firewall delete rule name="nginx"
  
 ===== PHP-CGI ===== ===== PHP-CGI =====
Line 40: Line 42:
   * https://windows.php.net/download/   * https://windows.php.net/download/
   * x64 Non Thread Safe   * x64 Non Thread Safe
-  * Last tested: ''php-8.4.5-nts-Win32-vs17-x64.zip''+  * Last tested: ''php-8.4.6-nts-Win32-vs17-x64.zip''
  
-  * Extract to root system drive for ''C:\php-8.4.5-nts-Win32-vs17-x64\php-cgi.exe''+  * Extract to root system drive for ''C:\php-8.4.6-nts-Win32-vs17-x64\php-cgi.exe''
   * Add to user ''Path''   * Add to user ''Path''
  
Line 51: Line 53:
   "SystemPropertiesAdvanced.exe"   "SystemPropertiesAdvanced.exe"
  
-  C:\php-8.4.5-nts-Win32-vs17-x64+  C:\php-8.4.6-nts-Win32-vs17-x64
  
 ====== nginx Settings ====== ====== nginx Settings ======
Line 119: Line 121:
  
 ===== nginx ===== ===== nginx =====
- 
-  * :!: ''mime.types'' include hard-coded to nginx version path 
-  * TODO: Copy all hard-coded files to ''www'' instead 
  
   notepad "%SystemDrive%\www\nginx\nginx.conf"   notepad "%SystemDrive%\www\nginx\nginx.conf"
Line 148: Line 147:
     include C:/www/nginx/conf.d/*.conf;     include C:/www/nginx/conf.d/*.conf;
     include C:/www/nginx/vhosts.d/*.conf;     include C:/www/nginx/vhosts.d/*.conf;
-    include C:/nginx-1.27.4/conf/mime.types;+    include C:/www/nginx/conf/mime.types;
     default_type application/octet-stream;     default_type application/octet-stream;
  
/srv/www/wiki/data/attic/servers/windows/nginx_php_php-cgi.1742078889.txt.gz · Last modified: by Sean Rhone