Archives
WordPress Super Cache rewrite rules for Nginx
WP Super Cache on Nginx Rewrite rules method-1 (Recommended) set $supercache_file ”; set $supercache_uri $request_uri; if ($request_method = POST) { set $supercache_uri ”; } if ($query_string) { set $supercache_uri ”; } if ($http_cookie ~* “comment_author_|wordpress|wp-postpass_” ) { set $supercache_uri ”; } if ($http_user_agent ~* “(Android|nokia|samsung|CUPCAKE|bada|nokia|samsung|blackberry 9800|blackberry9500|blackberry9520|blackberry9530|blackberry9550|dream|iPhone|iPod|incognito|s8000|webOS|webmate)”) { set $supercache_uri ”; } if ($supercache_uri ~ ^(.+)$) [...]
May 9th, 2011 | Filed under ServersLinux commands for getting server specifications
Linux Version (32 or 64) uname -nrmo Total Memory: grep "MemTotal" /proc/meminfo CPU Model Name, MHz and Cache Size grep -m 4 -e "model name" -e "MHz" -e "cache size" -e "bogomips" /proc/cpuinfo CPU Processor grep "processor" /proc/cpuinfo | wc -l
May 8th, 2011 | Filed under ServersNginx + PHP-FPM + APC + MySql + WordPress on Debian 6
Nginx + PHP-FPM + MySql + APC + WordPress Add the following lines in /etc/apt/sources.list deb http://packages.dotdeb.org stable all deb-src http://packages.dotdeb.org stable all Apply GnuPG key wget http://www.dotdeb.org/dotdeb.gpg cat dotdeb.gpg | apt-key add – Update Sources apt-get update Install PHP and Nginx apt-get install php-apc php-auth php-net-smtp php-net-socket php-pear php5 php5-curl php5-gd php5-mcrypt php5-mysql php5-fpm [...]
May 6th, 2011 | Filed under ServersHow to Install eAccelerator on Server
eAccelerator Installation Unpack the eAccelerator archive and go to the folder, then type: phpize ./configure make make install eAccelerrator Installed. Create temporary folder for cache storage: mkdir /var/cache/eaccelerator chmod 0777 /var/cache/eaccelerator Add the following lines to the end of php.ini file (/etc/php.ini or/usr/lib/php.ini): extension=”eaccelerator.so” eaccelerator.shm_size=”16″ eaccelerator.cache_dir=”/var/cache/eaccelerator” eaccelerator.enable=”1″ eaccelerator.optimizer=”1″ eaccelerator.check_mtime=”1″ eaccelerator.debug=”0″ eaccelerator.filter=”” eaccelerator.shm_max=”0″ eaccelerator.shm_ttl=”0″ eaccelerator.shm_prune_period=”0″ eaccelerator.shm_only=”0″ [...]
Apr 16th, 2011 | Filed under Servers