Redirect to

If you want to force clients to use, you can redirect them from to the www version with an .htaccess file. In your public_html folder, create a file called .htaccess and add the code: RewriteEngine On RewriteCond %{HTTP_HOST} ^domain\.com RewriteRule ^(.*)$$1 [R=permanent] where you’d need to replace domain\.com and with your actual domain name.  Note the \ character must… Continue reading Redirect to

Adding custom modules to apache for custombuild – DirectAdmin

If you want to add any extra modules to apache in custombuild, they’ll need to be compiled in. Any module that needs to be compiled in will have a –with-module type flag which will need to be used. To add this flag, run the following:   cd /usr/local/directadmin/custombuild mkdir -p custom/ap2 cp configure/ap2/configure.apache custom/ap2/configure.apache vi… Continue reading Adding custom modules to apache for custombuild – DirectAdmin

MySQL Socket errors

This is an error that many people who run PHP and MySQL are familiar with: ERROR 2002: Can’t connect to local MySQL sever through socket ‘/var/lib/mysql/mysql.sock’ (2) Luckily, this is relatively easy to solve in most cases. Here’s what to do. ·First of all, we need to decide where the MySQL socket file should be. For… Continue reading MySQL Socket errors