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


Most Viewed Articles (in PHP )

Latest Articles (in PHP)

Comment on this tutorial