This article shows you how to quick install and integrate Nginx and PHP on Windows-based systems.
1. Install Nginx + PHP
Basically, just download zip file and extracts it, no installation.
To install Nginx
- Visit http://nginx.org/en/download.html
- Download to c:web
- Extract to
C:web
To Install PHP
- Visit http://windows.php.net/download/
- Download PHP For Windows: Binaries and sources Releases (7.4 -nts-vc15-x64)
- Extract to
C:webphp
Edit file c:webconfnginx.conf
location / { root html; index index.html index.htm index.php; } location ~ .php$ { fastcgi_pass 127.0.0.1:9999; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }
Then run:
php-cgi.exe -b 127.0.0.1:9999
and run nginx…
start c:webnginx.exe
That’s all…
Similar Posts:
- nginx configuration for wordpress
- how to setup FusionAuth server with nginx and ssl
- how to secure nginx http traffic to upstream servers
- Windows Server 2012 / 2016 how to add a program to startup
- How to synchronize time in an Active Directory domain
2,149