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/14 19:48] – PHP 8.4.5 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%"
  
   CD "%SystemDrive%\nginx-"*"\" && "nginx.exe" -v   CD "%SystemDrive%\nginx-"*"\" && "nginx.exe" -v
 +
 +==== confs ====
 +
 +  MKDIR "%SystemDrive%\www\nginx\conf"
 +
 +  COPY /Y "%SystemDrive%\nginx-1.27.5\conf\fastcgi_params" "%SystemDrive%\www\nginx\conf"
 +
 +  COPY /Y "%SystemDrive%\nginx-1.27.5\conf\mime.types" "%SystemDrive%\www\nginx\conf"
 +
 +==== Firewall ====
 +
 +  "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"
  
 ===== PHP-CGI ===== ===== PHP-CGI =====
Line 28: 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 39: Line 53:
   "SystemPropertiesAdvanced.exe"   "SystemPropertiesAdvanced.exe"
  
-  C:\php-8.4.5-nts-Win32-vs17-x64 +  C:\php-8.4.6-nts-Win32-vs17-x64
- +
-====== Firewall ====== +
- +
-  * 80/tcp is HTTP +
-  * 443/tcp is HTTPS +
- +
-  netsh advfirewall firewall add rule name="nginx HTTP" dir="in" action="allow" protocol="TCP" localport="80" +
- +
-  netsh advfirewall firewall add rule name="nginx HTTPS" dir="in" action="allow" protocol="TCP" localport="443"+
  
 ====== nginx Settings ====== ====== nginx Settings ======
Line 116: 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 145: 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.1741996124.txt.gz · Last modified: by Sean Rhone