Important: where is cpanel's flat file config database stored

c9net

Member
Dec 23, 2002
11
0
151
I am looking for cpanel's little database, but can't find it. I have seen it before, it is a collection of folders which store information about who owns what domain, which resellers own which sites, package information etc. Two of these files are out of sync and I need to correct them.


Does anyone know the path to cpanel's flat file config database?



thanks!:)

cPanel.net Support Ticket Number:
 

ciphervendor

Well-Known Member
Aug 26, 2002
1,050
0
166
/var/cpanel/

cPanel.net Support Ticket Number:
 

Luciel

Active Member
Oct 13, 2005
42
0
231
I´m looking for the same thing however there is not a cpanel folder in /var
 

dafut

Well-Known Member
Dec 14, 2005
74
0
156
Unless you're root, you will not see /var/cpanel.

NON-root user sees:
ll /var
total 8
drwxr-xr-x 6 root username 1024 May 29 2006 ./
drwxr-xr-x 11 root username 1024 May 29 2006 ../
drwxr-xr-x 13 root root 1024 Oct 3 11:22 lib/
drwxr-xr-x 10 root root 3072 Jan 20 22:40 log/
drwxr-xr-x 11 root root 1024 Jan 20 10:02 run/
drwxr-xr-x 15 root root 1024 Dec 19 10:41 spool/

root user sees:
ll /var
total 24
drwxr-xr-x 21 root root 1024 Jan 3 00:48 ./
drwxr-xr-x 22 root root 1024 Dec 13 01:06 ../
drwxr-xr-x 6 root root 1024 May 11 2006 cache/
srwxrwxrwx 1 root root 0 Jan 3 00:48 clamd=
drwx--x--x 34 root root 2048 Jan 20 22:54 cpanel/
drwxr-xr-x 2 root root 1024 Jan 24 2003 db/
drwxr-xr-x 3 root root 1024 Aug 8 2003 empty/
drwxr-xr-x 13 root root 1024 Oct 3 11:22 lib/
drwxr-xr-x 2 root root 1024 Jan 24 2003 local/
drwxrwxr-x 3 root lock 1024 Jan 24 2003 lock/
drwxr-xr-x 10 root root 3072 Jan 20 22:40 log/
lrwxrwxrwx 1 root root 10 Aug 15 2005 mail -> spool/mail/
drwxrwsr-x 19 root mailman 1024 Feb 10 2005 mailman/
drwxr-xr-x 2 named named 1024 Dec 19 10:13 named/
drwxr-xr-x 5 root root 1024 Nov 11 16:09 netenberg/
drwxr-xr-x 2 root root 1024 Jan 24 2003 nis/
drwxr-xr-x 2 root root 1024 Jan 24 2003 opt/
drwx------ 2 root root 1024 Nov 8 00:49 portsentry/
drwxr-xr-x 2 root root 1024 Jan 24 2003 preserve/
drwxr-xr-x 11 root root 1024 Jan 20 10:02 run/
drwxr-xr-x 15 root root 1024 Dec 19 10:41 spool/
lrwxr-xr-x 1 root root 4 Jul 18 2006 tmp -> /tmp/
drwxr-xr-x 7 root root 1024 Jan 27 2006 www/
drwxr-xr-x 2 root root 1024 Jan 24 2003 yp/
Ah, the power of root!
 
Last edited: