Linux has a supposedly good memory management feature that will use up any “extra” RAM you have to cache stuff. This section of the memory being used is SUPPOSED to be freely available to be taken over by any other process that actually needs it, but unfortunately my Linux (three distros now, Mandriva 32 bit, [...]
Archive for October, 2010
WORKER Is Better than PREFORK Prefork is supposed to generally be better for single or dual cpu systems, and worker is supposed to be generally better for multi-CPU systems IfModule mpm_prefork_module ————————– StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0 IfModule mpm_worker_module ————————— StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 [...]
CPANEL TO CPANEL ACCOUNT MIGRATION !
Posted: October 11, 2010 in UncategorizedData migration( cpanel) TRANSFER ————— #!/bin/bash for i in `cat /etc/trueuserdomains | awk -F: ‘{print $2}’` do /bin/echo “$i” /scripts/pkgacct $i file=$(ls /home/cpmove*$i*) /bin/echo “$file” scp -P -B $file root@:/root wait ls -lh $file rm -rf $file done RESTORE ————– ls cpmove-*.tar.gz | awk -F- ‘{print $2}’ | awk -F. ‘{print $1}’ > file for [...]
Nginx Servive static pages from Varnish Cache bypass the dynamic pages as Reverse Proxy To Apache
Posted: October 11, 2010 in UncategorizedFirst Install nginx,varnish and apache. Install nginx ********************* Type the following commands to download nginx, enter: # cd /opt # wget http://sysoev.ru/nginx/nginx-0.8.33.tar.gz Untar nginx, enter: # tar -zxvf nginx-0.8.33.tar.gz # cd nginx-0.8.33 Configure nginx for 64 bit RHEL / CentOS Linux: # ./configure –without-http_autoindex_module –without-http_ssi_module –without-http_userid_module –without-http_auth_basic_module –without-http_geo_module –without-http_fastcgi_module –without-http_empty_gif_module –with-openssl=/lib64 # make # make [...]
Nginx as Reverse proxy for Apache in Cpanel Server
Posted: October 9, 2010 in UncategorizedThe steps are given below: cd /usr/src wget http://sysoev.ru/nginx/nginx-0.7.63.tar.gz wget http://stderr.net/apache/rpaf/download/mod_rpaf-0.6.tar.gz wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.9.tar.gz tar xvzf mod_rpaf-0.6.tar.gz cd mod_rpaf-0.6 /usr/local/apache/bin/apxs -i -c -n mod_rpaf-2.0.so mod_rpaf-2.0.c cd /usr/src tar xvzf pcre-7.9.tar.gz cd pcre-7.9 ./configure make make install cd /usr/src tar xvzf nginx-0.7.63.tar.gz cd nginx-0.7.63 ./configure –with-http_ssl_module –with-http_realip_module –with-http_dav_module –with-http_flv_module –with-http_gzip_static_module make make install -Login to WHM and [...]