LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-30-2006, 07:41 PM   #16
drl
LQ Newbie
 
Registered: Mar 2006
Posts: 5

Rep: Reputation: 0
smbind import tool


Hi Bentz,

Is there a way to import existing named.conf zones into smbind ?

-- Darryl
 
Old 03-30-2006, 08:16 PM   #17
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
Quote:
Originally Posted by bentz
Webmin's great, unless the suits log in and realize that they can do everything- from managing firewall rules to bringing down SSH.
*snickers* They can also run a command shell and run good 'ol rm -rf /, delete virtual hosts, and wipe out LDAP in just a few clicks. Webmin is the single most dangerous tool to give to a PHB!
 
Old 04-28-2006, 01:09 AM   #18
gmstkp
LQ Newbie
 
Registered: Apr 2006
Posts: 2

Rep: Reputation: 0
Hi,
i also trying to use smbind. It says add an include statement into your named.conf that includes smbind.conf into named.conf
example : include "etc/bind/smbind.conf
 
Old 04-28-2006, 02:21 AM   #19
gmstkp
LQ Newbie
 
Registered: Apr 2006
Posts: 2

Rep: Reputation: 0
i have a question also...should i create a file named "smbind.conf" manually ? If yes, what will be the configuration in that file ? Will it be empty ??

Below is the output of my configtest.

smbind configtest

This script will try to check some aspects of your smbind configuration and point you to errors where ever it can find them. You need to edit config.php and read the INSTALL file first before you run this script.
Testing config.php...OK
Testing PEAR DB...OK
Testing Smarty...OK
Testing templates_c...OK
Testing path...
Warning: fopen(/var/named/test) [function.fopen]: failed to open stream: Permission denied in /usr/local/apache2/htdocs/configtest.php on line 44
Could not write to the path. Check that the user can write in /var/named/.
 
Old 04-29-2006, 07:16 AM   #20
drl
LQ Newbie
 
Registered: Mar 2006
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by gmstkp
i have a question also...should i create a file named "smbind.conf" manually ? If yes, what will be the configuration in that file ? Will it be empty ??

Below is the output of my configtest.

smbind configtest

This script will try to check some aspects of your smbind configuration and point you to errors where ever it can find them. You need to edit config.php and read the INSTALL file first before you run this script.
Testing config.php...OK
Testing PEAR DB...OK
Testing Smarty...OK
Testing templates_c...OK
Testing path...
Warning: fopen(/var/named/test) [function.fopen]: failed to open stream: Permission denied in /usr/local/apache2/htdocs/configtest.php on line 44
Could not write to the path. Check that the user can write in /var/named/.
Hi,

Yes create smbind.conf manually and make sure it is writable by the user that runs your Apache webserver, normally nobody or www. The smbind.conf file is usually empty and will get populated when you start creating domains in the smbind web interface.
 
Old 05-24-2006, 12:12 PM   #21
mlewis
Member
 
Registered: Mar 2006
Posts: 172

Rep: Reputation: 16
Stuck on permissions...

>http://smbind.sourceforge.net/

Hi and thanks for this software. I'm sure it'll be very useful for my non tech people once it's working.

Questions;

1: I cannot find an answer to the following issue;

When running smbind configtest

Testing config.php...OK
Testing PEAR DB...OK
Testing Smarty...OK
Testing templates_c...OK
Testing path...Could not write to the path. Check that the user can write in /var/named/.

The owner is root.named, chmod is 770. User apache is in the named group. I'm running FC5 on this server. How can I get past this error?


2: When I try to start named, I get the following error;

Error in named configuration:
/etc/named.conf:68: open: /etc/smbind/smbind.conf: file not found [FAILED]

The docs say to create a directory called /etc/bind but I suspect that's a typo so created /etc/smbind, added the path to named.conf as suggested. I've also created the smbind.conf file empty. Note that smbind is not however completed in install.

Thanks for any help.

Mike
 
Old 06-25-2006, 06:50 PM   #22
mlewis
Member
 
Registered: Mar 2006
Posts: 172

Rep: Reputation: 16
Strange...

I guess the project is no longer being worked on then?.
Oh well...

Last edited by mlewis; 07-09-2006 at 04:57 PM.
 
Old 07-17-2006, 04:47 PM   #23
rbreault
LQ Newbie
 
Registered: Jul 2006
Posts: 1

Rep: Reputation: 0
Can anyone help with this

Running on SLES 9

I get this error message when running the configtest.php

smbind configtest

This script will try to check some aspects of your smbind configuration and point you to errors where ever it can find them. You need to edit config.php and read the INSTALL file first before you run this script.
Testing config.php...OK
Testing PEAR DB...OK
Testing Smarty...OK
Testing templates_c...OK
Testing path...OK
Testing conf directory...OK
Testing conf file...OK
Testing named-checkconf...OK
Testing named-checkzone...OK
Testing rndc...OK
Testing rndc execution...OK
server is up and running
Testing database connection...
Warning: main(DB.php) [function.main]: failed to open stream: No such file or directory in /srv/www/htdocs/configtest.php on line 84

Warning: main() [function.include]: Failed opening 'DB.php' for inclusion (include_path='.:') in /srv/www/htdocs/configtest.php on line 84

Fatal error: Undefined class name 'db' in /srv/www/htdocs/configtest.php on line 87

And when I run the index.php I get this error

Fatal error: Call to undefined function: session_start() in /srv/www/htdocs/include.php on line 21


Any help would be great
 
Old 09-06-2006, 03:41 PM   #24
flayzernax
Member
 
Registered: Jul 2004
Location: FL
Distribution: Slackware
Posts: 37

Rep: Reputation: 16
rbuilt i think your problem is related to the "include_path" in your php.ini

should be something like...

Code:
include_path = ".:/usr/lib/php"
also make sure you have PEAR :: DB installed do a...

#pear install DB

I had gotten a similar error and that was also because i had a php5 php.ini file for my php4.ini file.

......


Now I have another question also... when I click "commit changes" after updating a zone, i get a page that says...

Code:
/usr/sbin/rndc exit status 1
I look in /var/named/jim (jim is the name of the zone) and it has the changed in it.... (host bob 1.2.3.4)... so im guessing rndc is actualy working...

So what does rndc exit status 1 mean? I thought any exit status other then 0 was bad in *nix

P.S. on the main page it always is saying my bind services are not running, but i do a ps aux | grep named and it shows... named running as user nobody (i chown -R and chmod'd all the dirs to nobody)

Above question answered in reguards to the rnd exit status 1 -

problem was that /etc/rndcy.key was not writable only readable by named/nobody, now it works great after a #chmod 770 /etc/rndcy.key

Nice software bentz!

Last edited by flayzernax; 09-06-2006 at 04:56 PM.
 
Old 09-06-2006, 08:16 PM   #25
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
FYI... anyone having problems with smbind or have discovered bugs (typos) are more than welcome to request support or open a bug report on sourceforge. Linuxquestions *sucks* at letting me know when these threads get updated, and I don't know why... but I do routinely check the sourceforge page.

mlewis- this is what happens if you modify apache's group, adding it to the named group, and forget to restart Apache. service httpd restart. Or, you have SELinux enabled, in which case you're totally on your own. I'm not smart enough to write a SELinux policy to get smbind to work ;-)

rbreault- as flayzernax said, you need to check your PHP path and/or ensure that Pear DB is installed on your system. If you can't find DB.php anywhere on your system (find / -name DB.php; ls -lR / | grep 'DB.php'; locate DB.php) you need to install it.

flayzernax- you're right, anything other than 0 is bad... but it looks like you've figured it out. Default permissions on rndc.key don't allow any group reads (writes aren't needed for smbind), so you only need to go from 600 to 640 or something like that. BTW the output from rndc is supposed to be surpressed (I'm expecting people will test with configtest.php) so maybe you should grab the latest version from sourceforge... because that bug has been fixed.
 
Old 11-01-2006, 10:30 AM   #26
liusamuel
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Rep: Reputation: 0
hi Bentz,
After I intalled smbind guided by the INSTALL file,
I got this when I view configtest.php by browser:

Parse error: parse error, unexpected $ in /var/www/qonc/php/src/configtest.php on line 131

And I got this when I view index.php by browser:

Warning: main(../config.php): failed to open stream: Permission denied in /var/www/qonc/php/src/include.php on line 4

Warning: main(../config.php): failed to open stream: Permission denied in /var/www/qonc/php/src/include.php on line 4

Warning: main(): Failed opening '../config.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/qonc/php/src/include.php on line 4

Warning: main(DB.php): failed to open stream: No such file or directory in /var/www/qonc/php/src/include.php on line 7

Warning: main(DB.php): failed to open stream: No such file or directory in /var/www/qonc/php/src/include.php on line 7

Warning: main(): Failed opening 'DB.php' for inclusion (include_path='.:/usr/local/lib/php::') in /var/www/qonc/php/src/include.php on line 7

Fatal error: Undefined class name 'db' in /var/www/qonc/php/src/include.php on line 10

I don't konw where I make mistakes. could you help me please?
 
Old 11-01-2006, 10:57 AM   #27
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
Make sure that config.php is readable by your web server user.

You can run (as root):

# netstat -pl | grep http
tcp 0 0 *:http *:* LISTEN 25443/httpd

to find out the process name of apache, then, check who's running it:

# ps aux | grep httpd
root 25443 0.0 0.6 19224 6212 ? S 2007 0:04 /usr/sbin/httpd
apache 4381 0.0 0.8 22540 8472 ? S Oct29 0:00 /usr/sbin/httpd
apache 4382 0.0 0.8 23032 8952 ? S Oct29 0:01 /usr/sbin/httpd
apache 4383 0.0 0.8 22724 8708 ? S Oct29 0:00 /usr/sbin/httpd
apache 4387 0.0 0.8 23028 8956 ? S Oct29 0:00 /usr/sbin/httpd
apache 4388 0.0 0.8 22576 8536 ? S Oct29 0:00 /usr/sbin/httpd
apache 4389 0.0 0.8 23020 8948 ? S Oct29 0:00 /usr/sbin/httpd
apache 4390 0.0 0.8 22536 8464 ? S Oct29 0:00 /usr/sbin/httpd
apache 4391 0.0 0.8 22688 8600 ? S Oct29 0:01 /usr/sbin/httpd
root 14568 0.0 0.0 4860 588 pts/2 S 11:55 0:00 grep httpd

In this case, "apache" is the user running httpd.

See what the current permissions are on config.php:

# ls -l config.php
-rw-r----- 1 root apache 1725 Jul 13 17:34 config.php

If they don't look like this, try:

chmod 640 config.php
chown root.apache config.php

using your own apache user, of course.

If this doesn't help, please send more details about your system:
- Linux/Unix distribution
- Apache Version
- PHP Version
- Full output from src/configtest.php
 
Old 11-01-2006, 10:59 AM   #28
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
Additionally, the error you mention with configtest.php:

Parse error: parse error, unexpected $ in /var/www/qonc/php/src/configtest.php on line 131

Is very perplexing... have you tried re-downloading the software from sourceforge and checking for corrupted files? Line 131 is a check for PEAR, and has nothing to do with config.php, so these two sets of error messages conflict with each other.

More information about your configuration would be helpful.
 
Old 11-01-2006, 09:53 PM   #29
liusamuel
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Rep: Reputation: 0
Hi bentz
my computer is : linux+php4.3.11+

when I ps aux |grep httpd , I got this:
root 32419 0.0 0.3 9604 3804 ? S Oct31 0:04 /usr/local/apache2/bin/httpd
nobody 32420 0.0 0.4 9776 4136 ? S Oct31 0:00 [httpd]
nobody 32421 0.0 0.3 9700 4028 ? S Oct31 0:00 [httpd]
nobody 32422 0.0 0.4 9892 4212 ? S Oct31 0:00 [httpd]
nobody 32423 0.0 0.4 9820 4172 ? S Oct31 0:00 [httpd]
nobody 32424 0.0 0.4 9804 4164 ? S Oct31 0:00 [httpd]
nobody 32439 0.0 0.3 9700 4048 ? S Oct31 0:00 [httpd]
nobody 32502 0.0 0.4 9776 4160 ? S Oct31 0:00 [httpd]
nobody 455 0.0 0.4 10052 4460 ? S Oct31 0:00 [httpd]
nobody 464 0.0 0.3 9768 4076 ? S Oct31 0:00 [httpd]
nobody 7080 0.0 0.4 9768 4160 ? S Oct31 0:00 [httpd]
root 16557 0.0 0.0 4256 644 pts/1 S 11:18 0:00 grep httpd

no apache user, how should i do here? other things you said are correct

I really need this urgently ,can you help me to intall smbind well . I can even give you root access if you need
 
Old 11-01-2006, 09:58 PM   #30
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
No apache user, but instead you have 'nobody'.

Try:

chown root.nobody config.php
chmod 640 config.php
 
  


Reply

Tags
gnu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh forwarding : bind to a specific interface flupke Linux - Networking 9 12-09-2011 05:24 PM
GUI/Web Interface for BIND 9 Kholnuu Linux - Software 4 02-21-2005 02:24 PM
rsyncd bind to a interface Greenpie Linux - Networking 1 10-22-2004 07:34 AM
Is Management interface detected by Solaris ? markraem Solaris / OpenSolaris 1 07-06-2004 07:40 PM
DNS BIND and Apache web server divineutm Linux - Newbie 1 03-25-2004 02:29 AM


All times are GMT -5. The time now is 02:21 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration