Hello All I created a symbolic link for my named dire as shown in below: /var/named -> /repdata/var/named When I put "/var/named/chroot/var/named" as a "Zonefiles Dir" in settings it changed to "/repdata/var/named/chroot/var/named" after saving in ISPConfig. In this case named can not run and I got the following error: ----------- /etc/named.conf:3: change directory to '/repdata/var/named/chroot/var/named' failed: file not found /etc/named.conf:3: parsing failed ----------- Does anybody have any idea that why ISPConfig chang my ZoneFiles Path?!!! TNX
[root@server~]# ls -la /repdata/var/named total 20 drwxr-xr-x 5 root named 4096 Feb 9 15:35 . drwxr-xr-x 8 root root 4096 Feb 24 21:19 .. drwxrwxr-x 6 root named 4096 Feb 9 15:35 chroot drwxrwx--- 2 root named 4096 Nov 10 15:22 data drwxrwx--- 2 root named 4096 Nov 10 15:22 slaves I also have pid file in this path: pid-file "/var/run/named/named.pid";
What are the outputs of Code: ls -la /repdata/var/named/chroot and Code: ls -la /repdata/var/named/chroot/var ?
[root@server ~]# ls -la /repdata/var/named/chroot total 20 drwxrwxr-x 6 root named 4096 Feb 9 15:35 . drwxr-xr-x 5 root named 4096 Feb 9 15:35 .. drwxr-x--- 2 root named 4096 Feb 9 15:35 dev drwxr-x--- 2 root named 4096 Feb 28 11:49 etc dr-xr-xr-x 106 root root 0 Feb 25 06:17 proc drwxrwxr-x 5 root named 4096 Feb 9 15:35 var [root@server ~]# ls -la /repdata/var/named/chroot/var total 20 drwxrwxr-x 5 root named 4096 Feb 9 15:35 . drwxrwxr-x 6 root named 4096 Feb 9 15:35 .. drwxrwxr-x 4 root named 4096 Feb 27 08:39 named drwxrwxr-x 4 root named 4096 Feb 28 11:25 run drwxrwx--- 2 root named 4096 Mar 13 2003 tmp
Hi, sorry for my long delay ... I have the same link before ... [root@server ~]# cd /repdata/var/named/chroot/var/named/ [root@server named]# ll total 76 lrwxrwxrwx 1 root named 6 Feb 24 14:54 chroot -> ../../ drwxrwx--- 2 root named 4096 Aug 25 2004 data -rw-r--r-- 1 root named 426 Jan 21 19:49 named.local -rw-r--r-- 1 root named 2518 Jan 21 19:49 named.root ...
before moving my /var/named to /repdata/var I don't have any problem .... but after moving to repdata dir and "updating " to real path it did not work ... I don't know why ispcongfig can no set "Zonefiles Dir" path when it use symbolic link !!! BTW, I undo my changes and set "zonefiles Dir" to old path ... and then I recreate sym link and move my named to /repdata ... now it works ...
Because ISPConfig tries to "read" the real path with PHP's realpath() function: http://de3.php.net/manual/en/function.realpath.php