Home » Hosting Controller » DirectAdmin

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

HOW-TO: SFTP support in ProFTPD

DA comes with support for ProFTPD mod_tls however there are several problems with mod_tls. 1) It only encrypts the control channel of FTP, leaving the actual data transferred still in clear text. 2) That also causes problems with FTP traversal of firewalls since the firewall can’t see which ports are going to be needed, although [...]

[ HOW-TO] Install XCache on CentOS 5.2 64-bit that has DirectAdmin installed

First of all, if you are using DirectAdmin in PHP-CGI (suPHP) mode, don’t waste your time follow this HOW-TO. Although these steps work with PHP-CGI but you will get nothing from doing it. For PHP-CLI, I found that it help to decrease my server load from about 10 or more down to about 1 but [...]

Use Nginx as a reverse proxy for DirectAdmin

I try to use Nginx as a reverse proxy to see if there is any improvement over Apache Worker MPM or not. I found an instruction from DirectAdmin webboard but it’s quite old. So, I just tried to follow their steps and do some modification to match what I have read. Below is what I [...]

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 you are running FreeBSD, you [...]

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

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 xzf imapback-2004c1-x86_64.tar.gz cd imap-2004c1 ./buildit [...]

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 the [...]

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 checking incoming e-mail.   To [...]

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

Enter your email address:

Liên Kết Website

web design | Shared linux windows problems | Dedicated server | website chất lượng cao | hosting chất lượng cao | Tutorial video collection | Troubleshooting Tips and Tutorial