Add .htaccess user login authentication on nginx
June 23, 2011 by admin · Leave a Comment
Here is a good tutorial show you how to Add .htaccess user login authentication on nginx:
# vim /etc/nginx/nginx.conf
root /usr/local/www/page;
index index.php;
location /user {
auth_basic “Restricted”;
auth_basic_user_file /usr/local/www/user.pass
}location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/local/www/page$fastcgi_script_name;
include fastcgi_params;
}then create user.pass using htpasswd
# /usr/bin/htpasswd -c /usr/local/www/user.pass admin
New password:
Re-Type new password:
Adding password for user adminthen restart your nginx
# /etc/init.d/nginx stop
#/etc/init.d/nginx start
Install WEMP (Windows, NGINX, MySQL and PHP)
June 23, 2011 by admin · Leave a Comment
Here is a good tutorial show you how to Install WEMP (Windows, NGINX, MySQL and PHP):
WAMP system by far is the most popular server for desktop computers. It takes advantage of Windows, Apache, MySQL and PHP which are also used in production environment, but more commonly run in Linux and UNIX setup.
While Apache is able to adopt to almost every situation, it is not ideal for servers with lower memory. Desktop computers needs extra memory because the owners still run various applications on top of those workstations.
With this problem, WEMP now came up as an alternative solution wich results in a faster and more responsive windows server.
Install Nginx, PHP, PHP-FPM and MySQL on Windows with Cygwin
June 23, 2011 by admin · Leave a Comment
Here is a good tutorial show you how to Install Nginx, PHP, PHP-FPM and MySQL on Windows with Cygwin:
Table of contents
1 – Getting the needed files
2 – Installing MySQL Win32 (server and client)
3 – Installing Cygwin
4 – Installing Nginx under Cygwin
5 – Installing MySQL (client only) under Cygwin
6 – Installing PHP and PHP-FPM under Cygwin
7 – Creating Windows services
8 – Using your new installation
Conclusion
Resources
Annex 1 – Simple benchmark