Category «Uncategorized»

WordPress with MariaDB instead of MySQL

So I heard good things about MariaDB and decided to switch from MySQL to MariaDB. MariaDB is a fork of MySQL developed by the original developers of MySQL and it is intended to be a drop in replacement – meaning all your commands and databases from MySQL should continue to work seamlessly after the switch. …

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 …

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 …

How to create an admin area on fake domain

Often, you need to have areas of your site that you access through a browser, that you don’t want anyone else to access. These can be control panels or scripts with phpinfo or your apc cache monitoring script. what I do is create a fake domain for these and give them their own site. For …

Install APC and fix “potential cache slam” problem

APC is an Alternative PHP Cache or Opcode cache that speeds up performance dramatically by caching queries. How to install APC? apt-get install php5-apc You will have to enble it in the php configuration. Add the following to your php.ini file extension=apc.so Alternatively, you could create a separate apc.ini file and put it in the …