Today I have updated my Directadmin installation and found that version 1.322 has appeared a few days ago. One of most intersting features I found was awstats support. I’ve been using awstats plugin for a while and now it is integrated in DirectAdmin.
In order to add awstats support to your Directadmin installation you have [...]
Often after initial Directadmin setup, made by your server provider, you keep getting the following message: Subject: This is e-mail notification to warn you that your hostname is setup improperly on your system. You keep getting this e-mail daily until you do something with your hostname. It’s quite a strange thing that hostname isn’t set [...]
25 Jun
Posted by: admin in: Directadmin Tricks, htaccess Solutions
Sometimes it is useful to use custom error pages on all user domainsĀ (In case of maintenance, new software installation, etc). It’s a pity you are unable to do it for all user domains in Directadmin, just for a single one. But htaccess comes to help us this time.
Go to /home/admin/domains (certainly, replace admin with [...]
Today I’ll write about the rarely used Directadmin feature named Site Redirection. If you’re not familiar with htaccess and want to create some redirects, then this is especially for you.
The interface is easy to understand. You have to enter Local URL Path, Redirect Type (It will be visible in request headers. I’d suggest to [...]
17 May
Posted by: admin in: Directadmin Tricks, PHP Configuration
Sometimes you need to remove limits that are automatically added by DirectAdmin. For example, you are not allowed to include files from anywhere but your home directory, you cannot use CURLOPT_FOLLOWLOCATION in php and so on.
The first case is the result of open_basedir protection. If you’re not running a hosting service and all sites are [...]
15 May
Posted by: admin in: Directadmin Tricks, MySQL Tricks
When I tried to create admin backup for DirectAdmin, I got the message that one of my MySQL databases has errors and these errors were propagated to my backup. I’d suggest this to DirectAdmin developers, as using a simple command should avoid such errors. There is a linux shell tool called mysqlcheck, that allows to [...]
13 May
Posted by: admin in: Apache Performance, Directadmin Tricks
Sometimes it is necessary to disable http://ip/~username account access for any reason. Site can be unavailable or simply you don’t want users to access it in such a way. There is a simple directive in httpd.conf that will stop it. Just find the following lines and make them the same as below:
<IfModule mod_userdir.c>
#UserDir public_html
UserDir disabled
</IfModule> [...]
Now to add wildcard DNS using DirectAdmin
If you ‘re planning to use multiple subdomains within your account you will need to setup wildcard DNS resolving. There is an easy solution in DirectAdmin that allows you to do this without modification of certain configuration files. Just log in as admin and choose DNS administration tab under [...]
If you’re using Directadmin, you might have noticed that once a day it slows down the server. There is an easy solution to make this run without affecting too much on the server performance.
If you wanted to slow down the dataskq, edit:
/etc/cron.d/directadmin_cron
(or /etc/crontab, depending on your OS)
change:
Code:
* * * * * root /usr/local/directadmin/dataskq
to be
Code:
* * [...]
20 Apr
Posted by: admin in: Directadmin Tricks, PHP Configuration
Today we’ll add Freetype support for your PHP installation. You might need it if you work with GD library and if you want to add text on pictures. Let’s do it together. Starting PuTTY…
Let’s install Freetype devel first. You can do that by issuing the following command: yum install freetype-devel.
Now we need to configure [...]