Category Archives: Directadmin

Home to Disable PHP Safe Mode and open_basedir in Directadmin

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 yours, it… Read More »

How To Repair And Optimize All Mysql Databases

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 check, repair and… Read More »

How to Disable Web Access to Account With IP and Username in Directadmin

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… Read More »

Adding Wildcard DNS Using Directadmin

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 Admin Tools.… Read More »

How To Lower Directadmin Server Load

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… Read More »

How To Install Freetype Support for Your PHP Installation

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 PHP. Let’s… Read More »

How to Update Webalizer Stats on Directadmin

As you know, Webalizer stats are usually updated once a day, when using a Directadmin server. What to do, if you need more current stats? Here are some solutions (work good for me on CentOS 4). If you need to update all server accounts, just type in the following command as root: echo “action=tally&value=all” >> /usr/local/directadmin/data/task.queue In order… Read More »