Tag: directadmin

Updating DirectAdmin Manually

If you need to update your copy of DirectAdmin manually, you can do so by running the following commands:cd /usr/local/directadmin wget -O update.tar.gz https://www.directadmin.com/cgi-bin/daupdate?uid=123\&lid=1234 tar xvzf update.tar.gz ./directadmin p cd scripts ./update.sh service directadmin restart Where 123 and 1234 are your Client ID and License ID, respectively. Note that if […]

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 […]

IMAP Directadmin

IMAP-2004c1 support i386 yum install krb5-devel libc-client libc-client-devel -y wget http://dave.t0xic.nl/tars/imapback-2004c1-x86.tar.gz tar xzf imapback-2004c1-x86.tar.gz cd imap-2004c1 ./buildit cd c-client mkdir /usr/local/imap-2004c1/ mkdir /usr/local/imap-2004c1/lib mkdir /usr/local/imap-2004c1/include cp *.h /usr/local/imap-2004c1/include cp *.c /usr/local/imap-2004c1/lib cp c-client.a /usr/local/imap-2004c1/lib ln -s /usr/local/imap-2004c1/c-client.a /usr/local/imap-2004c1/libc-client.a IMAP-2004c1 support x86_64 yum install krb5-devel libc-client libc-client-devel -y wget http://dave.t0xic.nl/tars/imapback-2004c1-x86_64.tar.gz tar […]

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 […]

Exim Remove All messages From the Mail Queue

Question: I’m using Exim mail server under CentOS Linux. How do I remove all messages from the Exim mail queue using a shell prompt? Answer: Exim is a mail transfer agent (MTA) used on Unix-like operating systems. It aims to be a general and flexible mailer with extensive facilities for […]

DirectAdmin PHP Intl Extension

Q: I want to install the php intl extension. I’m used to install things by yum but directadmin has hes own install by default A: cd /usr/local/directadmin/custombuild ./build used_configs Edit your PHP 5 config file, related to configuration you can have ap2 or suphp: vi /usr/local/directadmin/custombuild/configure/ap2/configure.php5 or mkdir -pv custom/ap2 cp […]

DirectAdmin with mod_fcgid

All steps below should be done with a new clean install of DirectAdmin. It is possible to make it work on the server that already have users on it. I did that and it works perfectly fine. However, the steps will be a bit different and it won’t work if […]