How to run DirectAdmin in debug mode


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » DirectAdmin
Top Level » DirectAdmin » DirectAdmin API and Plugins

How to run DirectAdmin in debug modeLast Modified: Mar 10, 2010, 4:39 pm
If, for whatever reason, you need more information regarding what DirectAdmin is doing, you can run DirectAdmin in debug mode in order to get more output.  There are many levels of debug, the higher level, the more info you'll get.  Usually, running level 2000 is enough to give you most info.   Anything higher is more for specific code debugging, so isn't usually needed.

To run DA in debug mode, type the following in bold:

[root@server]# cd /usr/local/directadmin
[root@server]# killall -9 directadmin
[root@server]# ./directadmin b2000
Debug set to level 2000
DirectAdmin 1.34.4
Accepting Connections on port 2222

You should get something similar to the above code.

Now, when you make connections to DA, the actions you run, requests you make will be displayed here.

If you're trying to debug an API script, a handy way to filter the output to just what you want (the get/post data) is to start up DA with the following:

[root@server]# ./directadmin b2000 | grep string

which would then only show you the posted data, and not the other debug information.

To quit this mode, press ctrl-c, then type:

./directadmin d

which will load up DirectAdmin back in it's default "daemon" mode.

2003 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST