Restarting network in direct admin disabled all dedicated IPS

ARUN Posted in DIRECT ADMIN, IP ADDRESS
0

After network is restarted in direct admin servers no dedicated IPs are visible.

Solution :  /etc/init.d/startips

Something similar to /etc/init.d/ipaliases restart

Reset email count in Direct Admin

ARUN Posted in DIRECT ADMIN, MAIL
0

How to reset email count in Direct admin :

echo “” > /etc/virtuage/usage/username

rndc: neither /etc/rndc.conf nor /etc/rndc.key was found

ARUN Posted in DIRECT ADMIN, DNS
0

Getting below message on direct admin server while named status is checked :.

[[email protected] ]# service named status
rndc: neither /etc/rndc.conf nor /etc/rndc.key was found

Solution :

rndc-confgen >> /etc/rndc.conf

Open  /etc/rndc.conf

cat /etc/rndc.conf

Add the content of key file as mentioned below to the end of named.conf

cp -ar /etc/named.conf /etc/named.conf.bak

A sample of the file part to be added is mentioned below :

=================================================================

# End of rndc.conf

# Use with the following in named.conf, adjusting the allow list as needed:
 key "rndc-key" {
       algorithm hmac-md5;
       secret "9Agjel9AAghshhs85k0g==";
 };

 controls {
       inet 127.0.0.1 port 953
               allow { 127.0.0.1; } keys { "rndc-key"; };
 };
# End of named.conf
=================================================================================

 Restart named   /etc/init.d/named restart

How to Install ioncube loader on directadmin servers

ARUN Posted in DIRECT ADMIN, PHP
0

cd /root/
wget downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar -zxvf ioncube_loaders_lin_x86-64.tar.gz
cd ioncube
mkdir /usr/local/ioncube/
cp ioncube_loader_lin_5.2.so /usr/local/ioncube/

For php 5.3.X make sure the 5.3.so file is copied in the above step.

How to update apache in direct admin 2.x

ARUN Posted in DIRECT ADMIN, HTTPD
0

Take backup of /etc/httpd and php.ini to be on safer side.

cd /usr/local/directadmin/custombuild
./build update
./build apache

If everything works fine dont rebuild php as that can give some errors
./build php n 

checking for icu-config... no
checking for location of ICU headers and libraries... not found
configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.

*** There was an error while trying to configure php. Check the custom/suphp/configure.php6 file

Upgrade/Downgrade php in directadmin server

ARUN Posted in DIRECT ADMIN
0

cd /usr/local/directadmin/custombuild
./build update
./build set php5_ver 5.2
./build php n

NOTE :  IF U USE THE BELOW COMMANDS IT WILL LEAD TO INSTALLATION OF ALL LATEST VERSIONS AVAILABLE.

cd /usr/local/directadmin/custombuild
./build update
./build clean
./build php d
./build suphp d

Direct admin login details and more

ARUN Posted in DIRECT ADMIN
0

cat /usr/local/directadmin/scripts/setup.txt

=================

hostname=

email=
mysql=da_user
mysqluser=da_admin
adminname=admin
adminpass=
ns1=
ns2=
ip=
netmask=
uid=
lid=
services=

hostname=

Maskuid=

======================

Httpd wont start in direct admin and gives the error :

ARUN Posted in DIRECT ADMIN, HTTPD
0

While trying to start httpd : in direct admin :

# /etc/init.d/httpd start
Starting httpd: Syntax error on line 30 of /usr/local/directadmin/data/users/clickalist/httpd.conf:
Invalid command ‘php_admin_flag’, perhaps misspelled or defined by a module not included in the server configuration

Solution :

./build all d
Back up any file named  /usr/local/directadmin/custombuild/.custombuild.
./build rewrite_confs

Install zend optimiser on direct admin server

ARUN Posted in DIRECT ADMIN
0

cd /usr/local/directadmin/custombuild

./build update

vi /usr/local/directadmin/custombuild/options.conf

Change no to yes in options.conf

./build zend

Squirrel mail gives ERROR: Connection dropped by IMAP server. Query: CAPABILITY

ARUN Posted in DIRECT ADMIN, MAIL ERROR
0

Squirrel mail gives following error in direct admin

ERROR: Connection dropped by IMAP server. Query: CAPABILITY + directadmin

Also error :

ERROR: Could not complete request.
Query: SELECT “INBOX”
Reason Given: Internal error occurred. Refer to server log for more information. [2010-09-01 05:12:43]

Solution that worked for me :

Was a problem with DISK SPACE. Increase quota and it worked.

Mysql root password for direct admin

ARUN Posted in DIRECT ADMIN
0

cat /usr/local/directadmin/conf/my.cnf

Named wont start in direct admin

ARUN Posted in DIRECT ADMIN, ERROR
0

[[email protected] ~]# service named start
Starting named:
Error in named configuration:
zone localhost/IN: loaded serial 42

Solution :

cd /etc/init.d
mv named named.backup
wget http://www.directadmin.com/named
chmod 755 named
/sbin/chkconfig named reset

URL :  http://help.directadmin.com/item.php?id=40

Mysql password for direct admin

ARUN Posted in DIRECT ADMIN
0

To find the mysql root password for direct admin client

cat /usr/local/directadmin/conf/mysql.conf

Direct admin mail folder path

ARUN Posted in DIRECT ADMIN, FILE PATH ( conf, logs etc)
0

Path where the mails are stored in direct admin clients

/home/UN/imap/domain.com/email UN/Maildir/

Find username in Direct Admin control panel

ARUN Posted in DIRECT ADMIN
0

If we have a domain name and we need to find the username for that domain

grep domain.com /etc/virtual/domainowners