DirectAdmin can't find config file and 403 Error on all hosts

tincboy

Verified User
Joined
Aug 14, 2009
Messages
126
I had a running server with 200+ hosts on it,
suddenly all websites shows error 403 and directadmin fails to start with error below
Unable to read config file. Unable to open /usr/local/directadmin/conf/directadmin.conf for reading.<br>
<br>
Unable to read config file. Unable to open /usr/local/directadmin/conf/directadmin.conf for reading.<br>
<br>
I've tried fixing permissions and also use ./set_permissions all
But it has no effect,
Anyone experienced similar situation?

Regards
 
yes, permissions are right,
no service ( mysqld , directadmin , .... ) can't start and directadmin or mysql's permissions are fine,
 
If cant read the file probably the owner or the permission is not that right, or, you should have disk full?

Paste result for:

ls -l /usr/local/
ls -l /usr/local/directadmin/
ls -l /usr/local/directadmin/conf

Regards
 
Disk has 35% free space,
Code:
[root@s10 /]# ls -l /usr/local/
total 68
lrwxrwxrwx   1 root     root       24 Jun 17 12:36 awstats -> /usr/local/awstats-7.1.1
drwxr-xr-x   5 root     root     4096 Mar  8 20:17 awstats-7.1.1
drwxr-xr-x.  2 root     root     4096 Jun 17 12:36 bin
drwxr-xr-x   7 diradmin diradmin 4096 Jun 17 12:26 directadmin
drwxr-xr-x.  3 root     root     4096 Apr 23 16:46 etc
drwxr-xr-x.  2 root     root     4096 Sep 23  2011 games
drwxr-xr-x   7 root     root     4096 Apr 23 15:53 icu
drwxr-xr-x. 10 root     root     4096 Jun 17 12:34 include
drwxr-xr-x.  7 root     root     4096 Jun 17 12:34 lib
drwxr-xr-x.  2 root     root     4096 Sep 23  2011 lib64
drwxr-xr-x.  2 root     root     4096 Sep 23  2011 libexec
drwxr-xr-x   4 root     root     4096 Apr 23 15:59 man
drwxr-xr-x   7 root     root     4096 Apr 23 16:49 php5
drwxr-xr-x.  2 root     root     4096 Sep 23  2011 sbin
drwxr-xr-x.  9 root     root     4096 Apr 23 15:55 share
drwxr-xr-x.  2 root     root     4096 Sep 23  2011 src
drwxr-xr-x   4 root     root     4096 Apr 23 16:46 suphp
drwxr-xr-x   4 root     wheel    4096 Apr 16  2006 sysbk
[root@s10 /]# ls -l /usr/local/directadmin/
total 30168
-rw-r--r-- 1 diradmin diradmin       0 Jun 17 11:26 1
drwx------ 2 diradmin diradmin    4096 Jun 17 13:30 conf
drwxr-xr-x 9 root     root        4096 Jun 17 12:37 custombuild
-rw-r--r-- 1 diradmin diradmin  113229 Jun 11 05:32 custombuild.tar.gz
-rwx------ 1 diradmin diradmin  245969 May 15 19:41 da-popb4smtp
drwx--x--x 8 diradmin diradmin    4096 Jun 17 11:27 data
-rwx------ 1 diradmin diradmin 8776440 May 15 19:41 dataskq
-rwx------ 1 diradmin diradmin 8755974 May 15 19:41 directadmin
-rw-r--r-- 1 diradmin diradmin 6474158 May 15 19:41 new.tar.gz
drwxr-xr-x 4 diradmin diradmin    4096 Jun 17 12:42 plugins
drwx--x--x 4 diradmin diradmin    4096 Jun 17 12:11 scripts
-rw-r--r-- 1 diradmin diradmin 6427000 Apr 23 15:44 update.tar.gz
[root@s10 /]# ls -l /usr/local/directadmin/conf
total 20
-rw------- 1 diradmin diradmin 1866 Jun 17 13:26 directadmin.conf
-rw------- 1 diradmin diradmin 1559 Jun 17 11:59 license.key
-rw------- 1 diradmin diradmin 1559 May 16 04:01 license.old
-rw------- 1 diradmin diradmin   41 Jun 17 11:06 my.cnf
-rw------- 1 diradmin diradmin   30 Apr 23 15:45 mysql.conf
 
Once you did set_permission.sh all did you try to restart directadmin?

I can check your server but i do (as other does) offer this kind of service as a payed service.

Otherwise you should consider contact DA Support.

Regards
 
Yes I've even reboot the server but it has no effect
I've no problem with paying if you can fix this issue
 
The issue was with permission of /
I've run `chmod 755 /` and it got fixed.
I can't understand why the permission of / should be changed while I didn't run any command on that server
 
Back
Top