Installing PHP with nginx-server under windows
By: Donald
There is a way to install PHP with nginx-server under windows (current version is 0.7.60)
Step-1 (install nginx server)
Just extract nginx-0.7.60.zip in C:\nginx-0.7.60
In C:\nginx-0.7.60\conf\nginx.conf uncomment and edit following lines
location ~ \.php$ {
root html;
fastcgi_pass
127.0.0.1:9000;
fastcgi_index
index.php;
fastcgi_param
SCRIPT_FILENAME C:/nginx-0.7.60/html$fastcgi_script_name; #this is the one
line for edition
include fastcgi_params;
}
and run C:\nginx-0.7.60\nginx.exe (the server is started)
Step-2 (install PHP5)
Just extract php in C:\PHP5
Create (or modify) php.ini
extension_dir="ext/" ;for extensions
And run C:\PHP5\php-cgi.exe -b 127.0.0.1:9000
Archived Comments
1. acupuhua
View Tutorial By: acupuhua at 2017-08-09 04:21:18
2. avezino
View Tutorial By: avezino at 2017-08-09 04:07:35
3. php-cgi.exe return popup "is not a valid Win32 application"
but is is the x86 versi
View Tutorial By: noob at 2013-06-30 09:47:38
4. Wow! thank you! after an hour of frustration! this works like a charm thanks!
View Tutorial By: vaultdweller123 at 2012-02-14 02:49:44
Comment on this tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
PHP convert string to lower case
PHP code to write to a CSV file for Microsoft Applications
PHP code to write to a CSV file from MySQL query
PHP code to import from CSV file to MySQL
Password must include both numeric and alphabetic characters - Magento
Error: Length parameter must be greater than 0
PHP file upload prompts authentication for anonymous users
PHP file upload with IIS on windows XP/2000 etc
Multiple File Upload in PHP using IFRAME
Resume or Pause File Uploads in PHP
Exception in module wampmanager.exe at 000F15A0 in Windows 8