Have you ever encountered the below issue with directadmin. If we tried to restart directadmin it will not lsit any error but if you check the status you will see the below error.

/etc/init.d/directadmin status
directadmin dead but pid file exists
You can view the detailed error log by using the below command
tail /var/log/directadmin/error.log
Check the value of your ethernet_dev=eth0 setting in your /usr/local/directadmin/conf/directadmin.conf file and the output of /sbin/ifconfig<br>

2010:07:10-12:44:01: ioctl can’t find the server’s ip address for eth0 : No such device
2010:07:10-12:44:02: The ip of this machine () does not match the ip in the license file.<br>
Check the value of your ethernet_dev=eth0 setting in your /usr/local/directadmin/conf/directadmin.conf file and the output of /sbin/ifconfig<br>

2010:07:10-12:44:11: ioctl can’t find the server’s ip address for eth0 : No such device
2010:07:10-12:44:12: The ip of this machine () does not match the ip in the license file.<br>
Check the value of your ethernet_dev=eth0 setting in your /usr/local/directadmin/conf/directadmin.conf file and the output of /sbin/ifconfig<br>
Then find out where the main IP is located, using the command ifconfig. If the main ip venet0:0 then edit
vi /usr/local/directadmin/conf/directadmin.conf
and replace the ethernet_dev=eth0 by ethernet_dev=venet0:0.
If the entries are not already there just add ethernet_dev=venet0:0 and then restart direct admin. Thats it!!!

 

Leave a Reply