Home » Hosting Controller » DirectAdmin

I’ve deleted /home, how do I recreate the directories?

Generally, this isn’t the best thing to have happen because all of the data is stored there.  You’ll need to recreate all of the directory structures, as well as a few files required for DA to run: 1) Create the DA tmp directory so you can log into DA again: mkdir -p /home/tmp chmod 1777 [...]

Disk Usage is showing 0.00

*** Note: If you’re running a VPS with a “simfs” file system, quotas usually cannot be enabled with normal means.  Contact yoru VPS provider to enable quotas for you. DirectAdmin relies on the system quotas to return a value for how much space is being used.  DirectAdmin will run /usr/sbin/repquota /home Where /homeis the quota_partition [...]

Setup a per-user php.ini to allow open_basedir with suPhp

new way: If you wish to use per-user php.ini files in: /usr/local/directadmin/data/users/username/php/php.ini then you can use this guideto add the code: SetEnv PHP_INI_SCAN_DIR /usr/local/directadmin/data/users/|USER|/php/ to the VirtualHost entires for that domain and it’s subdomains.   This will tell suPhp to look in that path for a php.ini. It’s loaded after the main php.ini, so if [...]

How to setup jailed ssh and jailed cgi (beta)

If you run custombuild, the jailed script portion of this guide is in the options.conf. #Jailed shell (beta) jail=yes Then type ./build all_jail The “./jail/jail_user.sh user” (from the custombuild dir) would be used for each user you want to jail.   The remaining httpd.conf and other options from this guide still apply. 1) First, install [...]

Basic system security

Note that it’s ultimately the responsibility of the server admin to ensure his system is secure.  These are some basic security tips that can be done to help protect your system.  This is not an end-all guide for server security, admins must be diligent, but rather some suggestions for a start to securing your server. [...]

How to limit the number of emails sent by each user (prevent spammer)

The current exim.pl files have the ability to track who is sending email.  There is an option to turn on a limit for how many emails are sent by a particular user.  To enable this limit, simply add the number of emails you’d likely to allow per day to the /etc/virtual/limit file. For most cases [...]

Allow php scripts to work under ~username when using suPhp (custombuild)

By default, suPhp is compiled in “paranoid” mode.  This means that the settings in the user httpd.conf files: suPHP_UserGroup username username will require all php files to be owned by username or suPhp will throw a “500 Internal Server Error”. This does not apply to domains, when used normally, because each domain has it’s own [...]

Server Securing

Securing Your Server Below given are some of the steps that can be used to secure your server. Disable identification output for Apache To disable the version output for proftp, SSH into server and login as root. At command prompt type: pico /etc/httpd/conf/httpd.conf Scroll (way) down and change the following line to ServerSignature Off Restart [...]

DirectAdmin 1.391 : pcfg_openfile: unable to check htaccess file, ensure it is readable

Today, I got a problem with one of my website. Suddenly, I could access my website using Nginx but all themes were gone. I, then, switched back to Apache. It became worse. I can’t access my website at all. The error when access my website using Apache is below : Forbidden You don’t have permission [...]

[HOW-TO] Use “mod_fastcgi_handler + PHP-FPM” instead of “mod_fastcgi + PHP-FPM” (Less code to work on)

I have read about mod_fastcgi_handler which I think it will help me to write less code to work on PHP-FPM. Checked their website, even they say it’s beta quality and there are a couple bugs. I still think I should try it. So, below is what I did to replace mod_fastcgi with mod_fastcgi_handler. 1. Put [...]