Redirect domain to subdomain

domain.com will need to exist in the Apache configuration somewhere, effectively; in cPanel, they can created domain.com as a parked domain on edavan.presentica.com Then set the A record to point to the domain

Mysql database replication

Moodle MySQL Replication using PHPMyAdmin The phpMyAdmin that is bundled with cPanel doesn’t include user management so the following commands needed to be run to give the replication user the correct permissions: Setting up the Master , add the slave replication user. The IP below is the slave IP. mysql -e “GRANT REPLICATION CLIENT ON … Read more

Install pear and pear mail on CentOS

PEAR – PHP Extension and Application Repository, PEAR is a framework and distribution system for reusable PHP components. The mail() function is using for sending emails from a php script. This is the most simplest way to send emails from a server and also its not secure process. The mail sending scripts will shows some … Read more

configure: error: no, libmemcached sasl support is not enabled. (pecl/memcached, CentOS, cpanel)

# yum install libmemcached libmemcached-devel # pecl install memcached libmemcached directory [no]: checking whether libmemcached supports sasl… no configure: error: no, libmemcached sasl support is not enabled. Run configure with –disable-memcached-sasl to disable this check ERROR: `/tmp/pear/temp/memcached/configure –with-libmemcached-dir=no’ failed yum install cyrus-sasl-devel # cd /usr/local/src # wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz # tar -zxvf libmemcached-1.0.18.tar.gz # cd libmemcached-1.0.18 … Read more

Install Memcache on WHM/cPanel or CentOS

Memcached (Memcache Daemon) is a caching daemon designed especially for dynamic web applications to decrease database load by storing objects in memory. It is commonly used to speed up dynamic database-driven websites by caching data and objects in server memory to reduce the number of times the data source must be read. Memcached is free … Read more

opcache in php 5.5

Installation OpCache is compiled by default on PHP5.5+. However it is disabled by default. In order to start using OpCache in PHP5.5+ you will first have to enable it. To do this you would have to do the following. Add the following line to your php.ini: Note that when the path contains spaces you should … Read more

Joomla protection

How to start protecting your Joomla Site Always keep Joomla core up-to date Always make sure you run the latest patched versions of extensions Make sure you choose strong passwords for all logins Check your own website for vulnerabilities Always check the webserver’s log files for potential hack attempts Secure your server if you host your Joomla website on … Read more