PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature

If you are trying to upgrade, and suddenly start getting errors like: Incompatible Archive. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature Here are some things to check. This basically means that WordPress is not able to unzip the downloaded packages to install the upgrades. Check to see available space on …

Add source url to content copied from your site

Ever wonder how the url gets added when you copy something on some websites? There are plugins and websites that do it (for money or registration), but they also appear to track clicks, so I was a bit paranoid. It isn’t so difficult and is very useful. Basically, what happens is that whenever content from …

Redirect www to non-www on Nginx

How to redirect the www.domain.com version of your website to domain.com version on Nginx? Here is how. You basically have to make two server blocks. The block with your normal configuration should be the version you want, the version you want to redirect should have a simple rewrite rule alone. For example, to redirect www.vidyut.net …

How to install ioncube loader on Ubuntu in one line of code

To install ioncube loader on Ubuntu, AS ROOT paste this line: cd /usr/local && wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz && tar xzf ioncube_loaders_lin_x86-64.tar.gz && echo “zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.3.so” | sudo tee /etc/php5/conf.d/ioncube.ini If you are using nginx, that would be: cd /usr/local && wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz && tar xzf ioncube_loaders_lin_x86-64.tar.gz && echo “zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.3.so” | sudo tee /etc/php5/fpm/conf.d/ioncube.ini Please note that if …