Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ambrizals/662aebdc04224d907fc3 to your computer and use it in GitHub Desktop.
Save ambrizals/662aebdc04224d907fc3 to your computer and use it in GitHub Desktop.
Windows Nginx
error_log = C:\Server\nginx\logs\error.log
extension_dir = "ext"
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_sqlite3.dll
sqlite3.extension_dir = ext
==================== SENDMAIL ====================
[mail function]
; For Win32 only.
;SMTP = localhost
;smtp_port = 25
; For Win32 only.
;sendmail_from =
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = C:\Server\sendmail\sendmail.exe
C:\Server\php7\php-cgi.exe -b 127.0.0.1:9000 -c C:\Server\php7\php.ini
C:\Server\php7\php-cgi.exe -b 127.0.0.1:9000 -c C:\Server\php7\php.ini
cd c:\
unzip nginx-1.9.6.zip
cd nginx-1.9.6
start nginx
tasklist /fi "imagename eq nginx.exe"
nginx -s stop
nginx -s quit
nginx -s reload
nginx -s reopen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment