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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
|
03-30-2006, 07:41 PM
|
#16
|
|
LQ Newbie
Registered: Mar 2006
Posts: 5
Rep:
|
smbind import tool
Hi Bentz,
Is there a way to import existing named.conf zones into smbind ?
-- Darryl
|
|
|
|
03-30-2006, 08:16 PM
|
#17
|
|
Senior Member
Registered: Dec 2004
Location: Bawstun area
Distribution: Suse (10.2, 10.3), CentOS, and Ubuntu
Posts: 1,794
Rep:
|
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! 
|
|
|
|
04-28-2006, 01:09 AM
|
#18
|
|
LQ Newbie
Registered: Apr 2006
Posts: 2
Rep:
|
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
|
|
|
|
04-28-2006, 02:21 AM
|
#19
|
|
LQ Newbie
Registered: Apr 2006
Posts: 2
Rep:
|
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/.
|
|
|
|
04-29-2006, 07:16 AM
|
#20
|
|
LQ Newbie
Registered: Mar 2006
Posts: 5
Rep:
|
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.
|
|
|
|
05-24-2006, 12:12 PM
|
#21
|
|
Member
Registered: Mar 2006
Posts: 135
Rep:
|
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
|
|
|
|
06-25-2006, 06:50 PM
|
#22
|
|
Member
Registered: Mar 2006
Posts: 135
Rep:
|
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.
|
|
|
|
07-17-2006, 04:47 PM
|
#23
|
|
LQ Newbie
Registered: Jul 2006
Posts: 1
Rep:
|
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
|
|
|
|
09-06-2006, 03:41 PM
|
#24
|
|
Member
Registered: Jul 2004
Location: FL
Distribution: Slackware
Posts: 37
Rep:
|
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.
|
|
|
|
09-06-2006, 08:16 PM
|
#25
|
|
Member
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362
Rep:
|
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.
|
|
|
|
11-01-2006, 10:30 AM
|
#26
|
|
LQ Newbie
Registered: Nov 2006
Posts: 8
Rep:
|
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?
|
|
|
|
11-01-2006, 10:57 AM
|
#27
|
|
Member
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362
Rep:
|
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
|
|
|
|
11-01-2006, 10:59 AM
|
#28
|
|
Member
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362
Rep:
|
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.
|
|
|
|
11-01-2006, 09:53 PM
|
#29
|
|
LQ Newbie
Registered: Nov 2006
Posts: 8
Rep:
|
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
|
|
|
|
11-01-2006, 09:58 PM
|
#30
|
|
Member
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362
Rep:
|
No apache user, but instead you have 'nobody'.
Try:
chown root.nobody config.php
chmod 640 config.php
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:26 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|