Installing PHP with nginx-server under windows

By: Donald Printer Friendly Format    

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 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_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

Ask a Question

Most Viewed Articles (in PHP )

PHP file upload prompts authentication for anonymous users

unset() and empty() functions in PHP

Parent: child process exited with status 3221225477 -- Restarting

A Basic Example using PHP in AWS (Amazon Web Services)

Retrieve multiple rows from mysql and automatically create a table in PHP

Password must include both numeric and alphabetic characters - Magento

Integers and Floating-Point Numbers in PHP

Reading .CSV file in PHP

How to fix: Warning: Visiting this site may harm your computer -

Building PHP 5.x with Apache2 on SuSE Professional 9.1/9.2

Running different websites on different versions of PHP in Windows 2003 & IIS6 platform

Function to return number of digits of an integer in PHP

Convert IP address to integer and back to IP address in PHP

Exception in module wampmanager.exe at 000F15A0 in Windows 8

PHP file upload (Large Files)

Latest Articles (in PHP)

Comment on this tutorial