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:\web\php
Edit file c:\web\conf\nginx.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:\web\nginx.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
- Error: Class ‘DOMDocument’ not found in Drupal\Component\Utility\Html::load() (line 286 of core/lib/Drupal/Component/Utility/Html.php)
- how to use VestaCP with Node.JS support.
1,296