1. Download “ftpasswd” perl script and chmod it to 755:

wget http://www.castaglia.org/proftpd/contrib/ftpasswd
chmod 755 ftpasswd

2. Create file with your virtual user and ftp group

mkdir /etc/proftpd
ftpasswd --passwd --name=ftp_login --home=/home/ftp/ftp_login --shell=/bin/false --uid=1003
ftpasswd --group --name=ftp_group --gid=50 --member=ftp_login

(it is not important what UID and GID you will use as long as it does not have root privileges  ,
 just use any system uid and group and proftpd will write files with it’s privileges)

3. Add this to your proftpd.conf file:

RequireValidShell  off
AuthUserFile  /etc/proftpd/ftpd.passwd
AuthGroupFile /etc/proftpd/ftpd.group

4. Restart PROFTPD

add this lines in /usr/local/directadmin/custombuild/configure/ap2/configure.php5

Quote:
–enable-pdo=shared \
–with-pdo-mysql=shared \
–with-sqlite=shared \
–with-pdo-sqlite=shared \

then do a

Quote:
cd /usr/local/directadmin/custombuild
./build update
./build php n

Done!