I recently installed Disqus plugin for WordPress; however, I have been receiving this message “unable to connect to the disqus api servers.” By looking into the source code, it looks like curl is the problem! more specifically the _dsq_curl_urlopen() function, but I did not investigate this error further. As fortunately, we can easily switch to the alternative function _dsq_fsockopen_urlopen().
– One of the dependencies of memcache is libevent, get latest version from libevent.org
mkdir libevent cd libevent wget https://github.com/downloads/libevent/libevent/libevent-2.0.17-stable.tar.gz tar xfz libevent-2.0.17-stable.tar.gz cd libevent-2.0.17-stable
– get latest version from memcached.org
– Remove old version
yum remove mysql mysql-devel mysql-server mysql-libs
– Download the needed packages from http://dev.mysql.com/downloads/mysql/#downloads
Download URL varies depending on download mirror
mkdir mysql cd mysql #MySQL-client-5.5.27-1.el6.x86_64.rpm wget http://cdn.mysql.com/Downloads/MySQL-5.5/MySQL-client-5.5.27-1.el6.x86_64.rpm #MySQL-shared-5.5.27-1.el6.x86_64.rpm wget http://cdn.mysql.com/Downloads/MySQL-5.5/MySQL-shared-5.5.27-1.el6.x86_64.rpm #MySQL-devel-5.5.27-1.el6.x86_64.rpm wget http://cdn.mysql.com/Downloads/MySQL-5.5/MySQL-devel-5.5.27-1.el6.x86_64.rpm #MySQL-server-5.5.27-1.el6.x86_64.rpm wget http://cdn.mysql.com/Downloads/MySQL-5.5/MySQL-server-5.5.27-1.el6.x86_64.rpm #MySQL-shared-compat-5.5.27-1.el6.x86_64.rpm wget http://cdn.mysql.com/Downloads/MySQL-5.5/MySQL-shared-compat-5.5.27-1.el6.x86_64.rpm #install rpm -Uvh * #create log dir mkdir /var/log/mysql chmod 777 /var/log/mysql #start MySQL /etc/init.d/mysql start #add root password /usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h centos6.vmware.local password 'new-password'
– configure mysql more info
*Updated 11 Jan 2007 to include luazlib, fix lighty config file and add zlib decoding to cache.lua for older browsers
Since I read the documentations for mod_cml, I was very excited to use this module since caching using PHP running as FastCGI is not helping much during server peak load. However, mod_cml was replaced by mod_magnet which is more flexible and gives more control over request handling in Lighttpd. This Article will focus on caching your PHP scripts using Lua and mod_magnet under Lighttpd,