Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th February 2008, 12:52
pine1455 pine1455 is offline
Member
 
Join Date: Jan 2008
Posts: 43
Thanks: 3
Thanked 0 Times in 0 Posts
Default changing "Zonefiles Dir" path in ISPconfig settings

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
Reply With Quote
Sponsored Links
  #2  
Old 29th February 2008, 13:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,724 Times in 2,564 Posts
Default

What's the output of
Code:
ls -la /repdata/var/named
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 29th February 2008, 14:43
pine1455 pine1455 is offline
Member
 
Join Date: Jan 2008
Posts: 43
Thanks: 3
Thanked 0 Times in 0 Posts
Default

[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";
Reply With Quote
  #4  
Old 1st March 2008, 17:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,724 Times in 2,564 Posts
Default

What are the outputs of
Code:
ls -la /repdata/var/named/chroot
and
Code:
ls -la /repdata/var/named/chroot/var
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 1st March 2008, 18:13
pine1455 pine1455 is offline
Member
 
Join Date: Jan 2008
Posts: 43
Thanks: 3
Thanked 0 Times in 0 Posts
Default

[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
Reply With Quote
  #6  
Old 2nd March 2008, 14:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,724 Times in 2,564 Posts
Default

Please do this:
Code:
cd /repdata/var/named/chroot/var/named/
ln -s ../../ chroot
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 6th March 2008, 08:47
pine1455 pine1455 is offline
Member
 
Join Date: Jan 2008
Posts: 43
Thanks: 3
Thanked 0 Times in 0 Posts
Default

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
...
Reply With Quote
  #8  
Old 7th March 2008, 15:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,724 Times in 2,564 Posts
Default

Do you get the same error messages as before?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 8th March 2008, 06:16
pine1455 pine1455 is offline
Member
 
Join Date: Jan 2008
Posts: 43
Thanks: 3
Thanked 0 Times in 0 Posts
Default

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 ...
Reply With Quote
  #10  
Old 9th March 2008, 14:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,724 Times in 2,564 Posts
 
Default

Quote:
Originally Posted by pine1455
I don't know why ispcongfig can no set "Zonefiles Dir" path when it use symbolic link !!!
Because ISPConfig tries to "read" the real path with PHP's realpath() function: http://de3.php.net/manual/en/function.realpath.php
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 2.2.13 released till General 35 23rd July 2007 16:28
ISPConfig 2.2.14 released till General 48 19th July 2007 23:46
ISPConfig 2.3.2-dev released till General 9 4th June 2007 10:46
chrooted ISPConfig with suPHP & Joomla phpmail settings. SamTzu Installation/Configuration 14 6th May 2007 11:54
Restoring IspConfig - small php path problem adrenalinic Installation/Configuration 1 31st August 2006 16:50


All times are GMT +2. The time now is 01:31.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.