Apache Whirr 0.6.0-incubating Released

August 31, 2011 by admin · Leave a Comment 

Apache Whirr 0.6.0-incubating has been released.

Change LOG

Download HERE

Nginx 1.0.6 Released

August 30, 2011 by admin · Leave a Comment 

Nginx 1.0.6 has been released.

Changes with nginx 1.0.6                                         29 Aug 2011

    *) Feature: cache loader run time decrease.

    *) Feature: loading time decrease of configuration with large number of
       HTTPS sites.

    *) Feature: now nginx supports ECDHE key exchange ciphers.
       Thanks to Adrian Kotelba.

    *) Feature: the "lingering_close" directive.

    *) Feature: now shared zones and caches use POSIX semaphores on Solaris.
       Thanks to Den Ivanov.

    *) Bugfix: nginx could not be built on Linux 3.0.

    *) Bugfix: a segmentation fault might occur in a worker process if
       "fastcgi/scgi/uwsgi_param" directives were used with values starting
       with "HTTP_"; the bug had appeared in 0.8.40.

    *) Bugfix: in closing connection for pipelined requests.

    *) Bugfix: nginx did not disable gzipping if client sent "gzip;q=0" in
       "Accept-Encoding" request header line.

    *) Bugfix: in timeout in unbuffered proxied mode.

    *) Bugfix: memory leaks when a "proxy_pass" directive contains variables
       and proxies to an HTTPS backend.

    *) Bugfix: in parameter validaiton of a "proxy_pass" directive with
       Thanks to Lanshun Zhou.

    *) Bugfix: SSL did not work on QNX.

    *) Bugfix: SSL modules could not be built by gcc 4.6 without
       --with-debug option.
Download HERE

Nginx el5 Download

August 26, 2011 by admin · Leave a Comment 

Nginx el5 Download:

nginx rpm build for : CentOS 5. For other distributions click here.

Name : nginx  
Version : 0.6.36 Vendor : http://www_karan_org/
Release : 1.el5.kb Date : 2009-06-11 01:30:33
Group : System Environment/Daemons Source RPM : nginx-0.6.36-1.el5.kb.src.rpm
Size : 0.70 MB  
Packager : Karanbir Singh < kbsingh_karan_org>  
Summary : Robust, small and high performance http and reverse proxy server
Description :
Nginx [engine x] is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3
proxy server written by Igor Sysoev.

One third party module, nginx-upstream-fair, has been added.

RPM found in directory: /mirror/centos.karan.org/el5/extras/testing/i386/RPMS

Content of RPM  Changelog  Provides Requires


ftp.pbone.net   nginx-0.6.36-1.el5.kb.i386.rpm
      Search for other platforms

Provides :

Requires :

rpmlib(PayloadFilesHavePrefix) <= 4.0-1  
rpmlib(CompressedFileNames) <= 3.0.4-1  
config(nginx) = 0.6.36-1.el5.kb  
rpmlib(VersionedDependencies) <= 3.0.3-1  
perl => 0:5.006001  

Content of RPM :
There is 7 files more in these RPM.

Nginx Elgg Example

August 26, 2011 by admin · Leave a Comment 

Nginx Elgg Example:

server {
  server_name domain.com;
  rewrite ^/(.*) http://www.domain.com/$1 permanent;
server {
  server_name  www.domain.com;
  client_max_body_size 8M;
  client_body_buffer_size 256k;
  location / {
    if ($request_method = POST) {
      proxy_pass http://localhost:8000;
    default_type  “text/html; charset=utf-8″;
    set $memcached_key “/budokin-$uri”;
    error_page 404 502 = /fallback;
  location = /fallback {
  access_log off;
  #access_log /home/kam/www/budokin.com/log/access.log;
  error_log /home/kam/www/budokin.com/log/error.log;
server {
  listen  8000; 
  server_name  www.domain.com;
  root  /home/user/domain.com;
  index  index.php;
  client_max_body_size 8M;
  client_body_buffer_size 256k;
  location / {           
    if (!-e $request_filename) {                           
      rewrite ^/action/([A-Za-z\_\-\/] +) /engine/handlers/action_handler.php?action=$1 last;
      rewrite ^/actions/([A-Za-z\_\-\/] +) /engine/handlers/action_handler.php?action=$1 last;
      rewrite ^/export/([A-Za-z] +)/([0-9] +) /services/export/handler.php?view=$1&guid=$2 last;
      rewrite ^/export/([A-Za-z] +)/([0-9] +)/([A-Za-z] +)/([A-Za-z0-9\_] +) /services/export/handler.php?view=$1&guid=$2&type=$3&idname=$4 last;
      rewrite ^/_css/css.css /_css/css.php last;     
      rewrite ^/pg/([A-Za-z\_\-] +)/(.*) /engine/handlers/pagehandler.php?handler=$1&page=$2 last;
      rewrite ^/pg/([A-Za-z\_\-] +) /engine/handlers/pagehandler.php?handler=$1 last;
      rewrite ^/xml-rpc.php /engine/handlers/xml-rpc_handler.php last;       
      rewrite ^/mt/mt-xmlrpc.cgi /engine/handlers/xml-rpc_handler.php last;         
  location ~ \.php$ {
    fastcgi_connect_timeout 60;
    fastcgi_send_timeout 180;
    fastcgi_read_timeout 180;
    fastcgi_buffer_size 128k;
    fastcgi_buffers 4 256k;
    fastcgi_busy_buffers_size 256k;
    fastcgi_temp_file_write_size 256k;
    fastcgi_intercept_errors on;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    fastcgi_param  QUERY_STRING     $query_string;
    fastcgi_param  REQUEST_METHOD   $request_method;
    fastcgi_param  CONTENT_TYPE     $content_type;
    fastcgi_param  CONTENT_LENGTH   $content_length;
    expires  max;
  access_log off;
  #access_log /home/kam/www/budokin.com/log/access.log;
  error_log /home/kam/www/budokin.com/log/error.log;
  #error_page  500 502 503 504  /50x.html;
  #location =  /500.html { root  /home/kam/www/nginx-default; }

Elgg and nginx

August 26, 2011 by admin · Leave a Comment 

Elgg and nginx:

Custom rewrite rules

# required for icon direct
rewrite ^\/(.*)\.php\/(.*)[\/]?$ $1.php?$2;

rewrite ^\/action\/([A-Za-z\_\-\/]+)$ engine/handlers/action_handler.php?action=$1 last;
rewrite ^\/actions\/([A-Za-z\_\-\/]+)$ engine/handlers/action_handler.php?action=$1 last;

rewrite ^\/export\/([A-Za-z]+)\/([0-9]+)$ services/export/handler.php?view=$1&guid=$2 last;
rewrite ^\/export\/([A-Za-z]+)\/([0-9]+)\/$ services/export/handler.php?view=$1&guid=$2 last;
rewrite ^\/export\/([A-Za-z]+)\/([0-9]+)\/([A-Za-z]+)\/([A-Za-z0-9\_]+)\/$ services/export/handler.php?view=$1&guid=$2&type=$3&idname=$4 last;

rewrite ^\/\_css\/css\.css$ _css/css.php last;

rewrite ^\/pg\/([A-Za-z0-9\_\-]+)\/(.*)$ engine/handlers/pagehandler.php?handler=$1&page=$2 last;
rewrite ^\/pg\/([A-Za-z0-9\_\-]+)$ engine/handlers/pagehandler.php?handler=$1 last;

rewrite xml-rpc.php engine/handlers/xml-rpc_handler.php last;
rewrite mt/mt-xmlrpc.cgi engine/handlers/xml-rpc_handler.php last;

Setup Nginx in front of Apache2 on Ubuntu

August 26, 2011 by admin · Leave a Comment 

Here is a excellent tutorial show you how to Setup Nginx in front of Apache2 on Ubuntu:

I love my little Linode (shameless referral link), running several sites on the smallest instance available which gives just 512Mb of memory. With the popularity of HL Twitter and Plex Export, I pretty often max out the available memory and Apache starts dropping requests. So I recently set about looking at the best way to reduce my memory footprint and settled on dropping Nginx in front of Apache. This guide explains how and why.

Jackin up .js with jabber, nginx, jsjac and ejabberd

August 26, 2011 by admin · Leave a Comment 

Here is a excellent tutorial show you how to Jackin up .js with jabber, nginx, jsjac and ejabberd:

Lucky for us, bobo already has a copy of Ejabberd running. Ejabberd is an excellent XMPP server written in erlang. Erlang is also excellent. All of this is excellent. But we need one more thing to glue this all together.

Ejabberd implements an extension to XMPP called “BOSH”. Bosh stands for “Bidirectional-streams Over Synchronous HTTP”, and if you want all the gory details, you can read yourself silly right here. Traditional ‘Ajax’ requests are asynchronous by definition, but in our case, we’re going to use jsjac to open an request that doesn’t close right away, or even send data right away.

Strophe Setup with ejabberd and nginx

August 26, 2011 by admin · Leave a Comment 

Here is a excellent tutorial show you about Strophe Setup with ejabberd and nginx:

There are three chapters with similar content in Professional XMPP Programming. Chapter 3 deals with getting an initial environment set up without proxies, using Flash to get around cross-domain restrictions. Appendix B deals specifically with setting up nginx, ejabberd, Punjab, tape, and dealing with Flash crossdomain.xml files. Chapter 13 goes into details on configuring things for load balancing or clustering with ejabberd, nginx, and Punjab.

fastnmp – The Fast Nginx+php+mysql+python+memcached+eaccelerator for Centos

August 26, 2011 by admin · Leave a Comment 

fastnmp – The Fast Nginx+php+mysql+python+memcached+eaccelerator for Centos:

PHP 5.3.6 MYSQL 5.5.10 PYTHON 2.7 memcached 1.45 eaccelerator 0.96 CENTOS 5.5 within 32bit

software list:

mkdir -p /www/software 
wget http://www.rarsoft.com/rar/rarlinux-4.0.0.tar.gz 
wget http://monkey.org/~provos/libevent-2.0.10-stable.tar.gz 
wget http://nginx.org/download/nginx-0.8.54..tar.gz 
wget http://www.php.net/get/php-5.2.17.tar.gz/from/this/mirror 
wget http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz 
wget http://ftp.gnu.org/gnu/bison/bison-2.4.3.tar.gz 
wget http://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.10.tar.gz/from/http://mysql.he.net/ 
wget http://www.cmake.org/files/v2.8/cmake-2.8.4.tar.gz 
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz 
wget "http://downloads.sourceforge.net/mcrypt/libmcrypt-2.5.8.tar.gz?modtime=1171868460&big_mirror=0" 
wget "http://downloads.sourceforge.net/mcrypt/mcrypt-2.6.8.tar.gz?modtime=1194463373&big_mirror=0" 
wget http://pecl.php.net/get/memcache-2.2.6.tgz 
wget "http://downloads.sourceforge.net/mhash/mhash-" 
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.12.tar.gz 
wget http://bart.eaccelerator.net/source/ 
wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz 
wget ftp://mirror.aarnet.edu.au/pub/imagemagick/ImageMagick-6.6.9-3.tar.gz 
wget http://pecl.php.net/get/imagick-3.0.1.tgz 
wget http://labs.frickle.com/files/ngx_cache_purge-1.2.tar.gz 
wget http://labs.frickle.com/files/ngx_slowfs_cache-1.5.tar.gz 
wget http://www.php.net/get/php-5.3.6.tar.gz/from/this/mirror 
wget http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz 
wget http://acelnmp.googlecode.com/files/webbench-1.5.tar.gz 
wget http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz 
wget http://google-perftools.googlecode.com/files/google-perftools-1.7.tar.gz 
wget ftp://vsftpd.beasts.org/users/cevans/vsftpd-2.3.4.tar.gz
yum -y update 
sudo -s 
yum -y install gcc gcc-c++ gcc-g77 autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers unzip samba yum-fastestmirror flex bison libtool libtool-libs kernel-devel libpng10 libpng10-devel gd gd-devel fonts-chinese gettext gettext-devel pspell-devel
yum remove Deployment_Guide-en-US finger cups-libs cups 
bluez-libs desktop-file-utils ppp rp-pppoe wireless-tools irda-utils 
nfs-utils nfs-utils-lib rdate fetchmail eject ksh mkbootdisk mtools 
syslinux tcsh startup-notification talk apmd rmt dump setserial portmap yp-tools ypbind gnome* -y
   The webserver for nginx 502 Bad Gateway and 504 Gateway Time-out Perfect solution 
        must copy php-fpm.conf three and the /etc/init.d/php-fpm copy three  
        nginx configure file (nginx.conf) Add the following 
    upstream fastcgi_php { 
    server weight=1 ; 
    server weight=2 ; 
    server weight=3  ; 
        server Inside Add the following 
        location ~ .*\.(php|php5)?$ {  
    fastcgi_next_upstream error timeout invalid_header http_500 http_503 http_404; 
    fastcgi_pass  fastcgi_php; 
    fastcgi_index  index.php; 
    include fastcgi_params; 
        lsof -i tcp:9100 
        form nginx website fastcgi_next_upstream Notes 
        This directive defines in which cases request will be passed to the next serve 
        So After I used this method There have not been 502 and 504 
        http://www.tlfcd.com you can call me help  qq:858099909 
        The demo website http://www.qinday.com http://www.hichou.com was this method 
        Finally, I wish you success Thank you for reading my article 
        All relative paths in this config are relative to php's install prefix

Install nginx + php + eaccelerator + mysql + ftp + file and memory caching on Ubuntu

August 26, 2011 by admin · Leave a Comment 

Here is a excellent tutorial show you how to Install nginx + php + eaccelerator + mysql + ftp + file and memory caching on Ubuntu:

I am designing at the moment a new website. I don’t want to reveal much, but i except this to have much traffic, and there will be a lot of php running in the background, and the site will use a very large database, and a remote API.

So it is very important that i have a light system and use disk cache and even RAM cache for this system.

In one of my servers, i use WHM and Cpanel. WHM by default uses apache. Some of the sites on that server grew very much very quickly. The default apache setup was getting very slow and it was using to much RAM.

Fortunatelly I knew that nginx can be installed as a reverse proxy. I found some guy that could do that to my server. That is how i got introduced to the worlderful nginx. Using nginx and utilizing it’s cache system, you can get a x10 boost in performance. Less RAM less cpu, faster load times. Nginx is wonderful.

Next Page »