64 Bit thread safe versions
1. Download resources
2. Create file system folder c:\dev
Unzip PHP to c:\dev\php
Unzip NGinX to c:\dev\nginx
Copy nssm.exe to c:\dev
3. Create nginx services. From an admin command
nssm.exe install nginx
4. Create php service. From an admin command
nssm.exe install php-cgi
5. Copy c:\dev\php\php-development to c:\dev\php.ini
6. Use the Windows service manager (services) to test the services start and restart cleanly
7. Edit c:\dev\nginx\conf\nginx.conf server block as follows
server { listen 80; server_name localhost; charset utf-8;root c:/dev/nginx/html; location / { index index.html index.htm; }# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9123 # verify $document_root is passed into SCRIPT_FILENAME location ~ \.php$ { fastcgi_pass 127.0.0.1:9123; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }
5. Restart the nginx service to reload the conf file
6. Create c:\dev\nginx\html\phpinfo.php
<?php phpinfo(); ?>
7. Using a web browser load the test file http://localhost/phpinfo.php and check the php.ini path is correct
8. Install Netbeans
-p
« Go back
Powered by Help Desk Software HESK, in partnership with SysAid Technologies