Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # download for windows http://nginx.org/en/download.html
- # ubah konfigurasi nginx.conf
- server {
- listen 8181;
- server_name localhost;
- #charset koi8-r;
- #access_log logs/host.access.log main;
- location / {
- root "d:\www";
- index index.html index.htm;
- }
- # restart nginx windows, bikin file bat berikut
- @ECHO OFF
- cd C:\Portable\nginx-1.16.1
- taskkill /f /IM nginx.exe
- start nginx.exe
- pause
- # menyambungkan ke php
- # install php tambahkan ke path, kemudian jalankan php-cgi
- C:\php-7.3.14\php-cgi.exe -b 127.0.0.1:9000
- # jika ingin dijalan secara hide, bisa menggunakan RunHiddenConsole, bikin file bat dengan script berikut
- ECHO Starting PHP FastCGI...
- set PATH=C:\php-7.3.14;%PATH%
- C:\Portable\RunHiddenConsole\RunHiddenConsole.exe C:\php-7.3.14\php-cgi.exe -b 127.0.0.1:9000
- # agar bisa interface php, dokumentasi di sini https://www.nginx.com/resources/wiki/start/topics/examples/phpfastcgionwindows/
- # contoh deploy laravel di sini https://github.com/ajarkoding/nginx-laravel-windows
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement