How To: Install memcached on CentOS 6

Memcached is a distributed, high-performance, in-memory caching system that is primarily used to speed up sites that make heavy use of databases. It can however be used to store objects of any kind. Nearly every popular CMS has a plugin or module to take advantage of memcached, and many programming languages have a memcached library,… Continue reading How To: Install memcached on CentOS 6

Hotlink protection: How-To prevent people from stealing your files

  Create an .htaccess file in your public_html directory with the following code: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)?domain.com.*$ [NC] RewriteRule .(gif|jpg)$ – [F] Where domain.com is your domain.  

Setting up DA with an SSL certificate

You can switch DirectAdmin to use SSL instead of plain text. -> https instead of http on port 2222. Note that this is for the DirectAdmin connection on port 2222, *not* for apache. If you’re tryting to setup a certificate for your domain through apache, use this guide. If you do not have your own certificates,… Continue reading Setting up DA with an SSL certificate

How to upgrade mysql with custombuild

To upgrade mysql using the custombuild script, do the following: cd /usr/local/directadmin/custombuild ./build set mysql 5.1 ./build set mysql_inst yes ./build set mysql_backup yes ./build update ./build mysql Where mysql can be 5.0, 5.1 or 5.5. A full raw sql backup will be run prior to the upgrade if you have mysql_backup=yes set.  It goes without… Continue reading How to upgrade mysql with custombuild

Why do I need an owned IP for my own SSL certificate?

The reason you must have your own dedicated IP address when you want to use your own SSL certificate (when you don’t want the server wide shared certificate) is because of the way SSL and Apache (httpd) works. For name based web-hosting (when many domains are on one IP) the web browser will pass the… Continue reading Why do I need an owned IP for my own SSL certificate?

How To Clear Your DNS Cache

Windows® 8   Press Win+X to open the WinX Menu. Right-click on Command Prompt and select Run as Administrator. Type the following command and press Enter: ipconfig /flushdns If the command was successful, you will see the following message: Windows IP configuration successfully flushed the DNS Resolver Cache.   Windows 7   Click the Start button. Enter cmd in the Start menu search field. Right-click on Command Prompt and select Run as… Continue reading How To Clear Your DNS Cache

How to adjust the time zone of your webmail client (Roundcube, SquirrelMail, Horde)

SquirrelMail To change time zones in SquirrelMail: Access SquirrelMail. Click Options link at the top of the page. Click the Personal Information link. Under Timezone Options, from the Your Current Timezone drop-down, select your preferred time zone. Click Submit. Horde To change time zones in Horde: Access Horde. Click the Options icon at the top of… Continue reading How to adjust the time zone of your webmail client (Roundcube, SquirrelMail, Horde)

How to change the max file upload size for phpMyAdmin in Plesk

You need to edit the correct php.ini file and increase the value of the following variables to the desired size: memory_limit, upload_max_filesize and post_max_size The  php.ini file is located at: On Linux server: /usr/local/psa/admin/conf/php.ini On Windows server: C:\Program Files (x86)\Parallels\Plesk\admin\php.ini   Then you will need to restart your webserver & PSA.    

Change email password without logging in on DirectAdmin

If you would like your pop users to be able to change their own email passwords without having to login to the control panel, simply give them this link: http://www.domain.com:2222/CMD_CHANGE_EMAIL_PASSWORD Where www.domain.com is either your domain, hostname, or IP address. More information on this function and how you can use it via API can be… Continue reading Change email password without logging in on DirectAdmin

How to forward a website to another url

There are several ways to accomplish this task, but the simplest to understand is to use php. To do this, you need to create the page that will do the forwarding.  This can be any page, as long as it ends in “.php”.  If you are trying to redirect a domain, you’d create “index.php” inside… Continue reading How to forward a website to another url