How to Install Zend Optimizer or Ioncube on DirectAdmin based servers

This guide applies to DirectAdmin based Linux servers only. SSH into your server and run the commands below: 1. To install Zend: cd /usr/local/DirectAdmin/custombuild ./build set zend yes ./build zend 2. To install Ioncube: cd /usr/local/DirectAdmin/custombuild . /build set ioncube yes ./build ioncube 3. Verify whether Zend or Ioncube have been installed: php -v If

How to Extend Cache Expiration in .htaccess

Browsers tend to cache static data like images, CSS and JavaScript files on a website to speed up page loading time during the next visit. The cache file will get bigger with each visit. We can set an “expiry” date on these files to prevent the browser from caching the site again and again. This is

How to Add xsl PHP Extension – DirectAdmin

SSH into the server and navigate to DirectAdmin’s custombuild folder and edit the file shown below: cd /usr/local/directadmin/custombuild vi configure/ap2/configure.php5   Add the following line into configure.php5 –with-xsl   Save the file and recompile PHP through custombuild: ./build clean ./build php n

Cron Job Example

If you have a script that needs to be executed on a scheduled basis, a cron job can be set up to execute your script using the following methods: Executing the script using PHP from Crontab The following script executes the PHP script every 10 minutes. */10 * * * * /usr/local/bin/php -q /home/username/domains/domain.com/public_html/pathtoscript/script.php >

Enable Caching for WordPress

WordPress is a famous CMS platform for its ease of deployment and use. However, WordPress can struggle when it comes to handling large amounts of traffic. For this, caching is a necessary component in optimising WordPress. 1. Navigate to wp-admin and install w3 total cache plugin 2. Activate the plugin and navigate to wp-admin ->

How to Move a Domain to a Different SmarterMail Server

Let’s say SmarterMail is installed at the default path on both source & destination servers: C:\Program Files\SmarterTools\SmarterMail\Service (smartermail service files) C:\SmarterMail\Domains\[yourdomain.com] (smartermail data files) 1. Copy C:\SmarterMail\Domains\yourdomain.com from the source server to the destination server. 2. On the destination server, edit C:\Program Files\SmarterTools\SmarterMail\Service\domainList.xml 3. Add below line into domainList.xml <Domain name=”yourdomain.com” directory=”c:\SmarterMail\Domains\yourdomain.com” /> 4. Open

CentOS Installation with Software RAID

Software RAID configuration on CentOS is performed during the installation of the operating system. Here we will perform RAID1 with 2 HDDs, named sda and sdb respectively. Step 1: Boot into CentOS installation disc. Step 2: Select “Install system with basic video driver”. Step 3: Skip media test if prompted. Step 4: Click “Next” to continue.