Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 30th September 2008, 13:08
mytux mytux is offline
Junior Member
 
Join Date: Sep 2008
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
Most likely ist a problem with bind.

1) Which Linux distribution do you use?
2) Which path to the named files is shown in ispaconfig under management > server > settings on the dns tab?
I am using Fedora 9, DNS config in the GUI is:

/var/named/chroot/etc/named.conf
/etc/bind

changed /etc/bind to /var/named/chroot/var/named, which is correct, but it dows not let me save this value. It always goes back to /etc/bind, which is not correct. How can I change this value?

Regards, mytux

Last edited by mytux; 30th September 2008 at 13:13. Reason: correction
Reply With Quote
Sponsored Links
  #12  
Old 30th September 2008, 13:19
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
Default

Ok, then the permissions of your named directory aare wrong. Please redo the configuration steps for bind from the perfect setup guide and then change the path again in the ispconfig interface.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #13  
Old 30th September 2008, 13:38
mytux mytux is offline
Junior Member
 
Join Date: Sep 2008
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Solved

Quote:
Originally Posted by till View Post
Ok, then the permissions of your named directory aare wrong. Please redo the configuration steps for bind from the perfect setup guide and then change the path again in the ispconfig interface.
Yeah, this was the problem? Thank you very much till! I also changed the value for the correct zonefiles dir in the db directly. I could not change it in the GUI.

Seems that bind rpm update changed the permissions back.

According to the perfect server guide I have to to this:

chmod 777 /var/named/chroot/var/run/named/

Is this really needed? It look like named is writing to this dir, why to we have to set this writeable for everybody?

Regards,

mytux
Reply With Quote
  #14  
Old 30th September 2008, 13:46
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
Default

Quote:
I also changed the value for the correct zonefiles dir in the db directly.
Do not do that! Never edit values in the database directly as every change of a value is connected to changes in other tables and config files and you break these dependencies when you change something manually. There is a good reson if ispconfig refuses to change a value trough the interface!

The directory must at least be world readable or ispconfig wont work. If you set the correct permissions as described in the perfect setup guide, ISPConfig will let you update the value in the interface.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #15  
Old 30th September 2008, 14:33
mytux mytux is offline
Junior Member
 
Join Date: Sep 2008
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
Do not do that! Never edit values in the database directly as every change of a value is connected to changes in other tables and config files and you break these dependencies when you change something manually. There is a good reson if ispconfig refuses to change a value trough the interface!

The directory must at least be world readable or ispconfig wont work. If you set the correct permissions as described in the perfect setup guide, ISPConfig will let you update the value in the interface.
I tried to change the zonefiles dir value through the interface again. It does not say something in the GUI, when I save it, but the value in the db is then empty afterwards.

Any hint on this one?
Reply With Quote
  #16  
Old 30th September 2008, 15:01
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
Default

Please set the modes of directory exactly as described in the perfect setup guide and try again. ISPConfig will not save any value in this field until the folders have the correct settings.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #17  
Old 30th September 2008, 15:15
mytux mytux is offline
Junior Member
 
Join Date: Sep 2008
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
Please set the modes of directory exactly as described in the perfect setup guide and try again. ISPConfig will not save any value in this field until the folders have the correct settings.

Yes, I did that. I rechecked with the Perfect Server Howto. I had different owner for the zone files. I changed all files to be owned by named. Some were owned by root. Which one is correct? Can you tell me how the permissions should be here:

[root@tux named]# pwd
/var/named/chroot/var/named
[root@tux named]# ls -la
insgesamt 128
drwxrwxr-x 5 root named 4096 30. Sep 12:18 .
drwxrwxr-x 6 root named 4096 20. Jul 2007 ..
lrwxrwxrwx 1 root named 6 4. Jul 11:36 chroot -> ../../
drwxrwx--- 2 named named 4096 25. Aug 2004 data
drwxrwx--- 2 named named 4096 4. Jun 2007 dynamic
-rw-r----- 1 named named 1892 18. Feb 2008 named.ca
-rw-r----- 1 named named 129 21. Jun 2007 named.empty
-rw-r----- 1 named named 256 7. Jul 12:04 named.local
-rw-r----- 1 named named 152 21. Jun 2007 named.localhost
-rw-r----- 1 named named 145 21. Jun 2007 named.loopback
-rw-r----- 1 named named 824 28. Aug 22:26 pri.abc.com
-rw-r----- 1 named named 824 28. Aug 22:26 pri.abc.com~
-rw-r----- 1 named named 832 29. Aug 16:02 pri.xyz.com
-rw-r----- 1 named named 832 29. Aug 16:02 pri.xyz.com~
drwxrwx--- 2 named named 4096 27. Jul 2004 slaves
Reply With Quote
  #18  
Old 1st October 2008, 13:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

Please do this:
Code:
chmod 755 /var/named/
chmod 775 /var/named/chroot/
chmod 775 /var/named/chroot/var/
chmod 775 /var/named/chroot/var/named/
chmod 775 /var/named/chroot/var/run/
chmod 777 /var/named/chroot/var/run/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
  #19  
Old 1st October 2008, 17:04
mytux mytux is offline
Junior Member
 
Join Date: Sep 2008
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
Please do this:
Code:
chmod 755 /var/named/
chmod 775 /var/named/chroot/
chmod 775 /var/named/chroot/var/
chmod 775 /var/named/chroot/var/named/
chmod 775 /var/named/chroot/var/run/
chmod 777 /var/named/chroot/var/run/named/
This was not my question. I already did that. I wanted to know to whom the files inside /var/named/chroot/var/run/named should belong to. I had some files from root and some from named. Which on e is correct? If they have the wrong owner, they cannot be updated by ispconfig.

Regards,

mytux
Reply With Quote
  #20  
Old 1st October 2008, 17:09
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
 
Default

The ISPConfig daemon part which is writing these files has root priveliges, so this does not matter. Just leave it as it is and run the commands falko posted above.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
Spamsnake - Problem with spamassassin, FuzzyOcr and MySQL debuguser HOWTO-Related Questions 6 16th September 2008 19:37
Postfix problem vaio1 General 4 17th October 2007 11:27
ISPConfig 2.2.14 released till General 48 20th July 2007 00:46
Anyone figured out to integrate FuzzyOCR into ISPConfig on Ubuntu? friday Installation/Configuration 16 10th May 2007 17:25
spamassasin/clamAV not working Daisy Installation/Configuration 32 15th February 2007 01:09


All times are GMT +2. The time now is 22:39.


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