If you want to force clients to use www.domain.com, you can redirect them from domain.com 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 ^(.*)$ http://www.domain.com/$1 [R=permanent] where you’d need to replace domain\.com and domain.com with your actual domain name. Note the \ character must… Continue reading Redirect domain.com to www.domain.com
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
How to use SSH
To use ssh, you’ll need an ssh client for your local computer. We recommend PuTTY Once you’ve installed your ssh client, load it up and you should be given a space to enter some information. You’ll want to select “SSH” on port 22. You can past in the name of your server “domain.com” or the… Continue reading How to use SSH
Welcome to our blog
This blog will cover the following topics: Attacker.NET offers & News Security Advisories Tutorials & How-To’s Genetal IT news, Issues and Best practices