Ubuntu Servers :: Home Web Server - Cant Set Up Apache As Named Server Using Bind DSN
Dec 7, 2010
I and setting up a home web server using Ubuntu 10.04 server (local only). I am currently using Webmin 1.53 to access it remotely all is going great very easy to use. Webmin - Check, ftps-fileZilla - Check, Apache -It Works BUT I cant seam to set up Apache as a named server using Bind DSN. Tried most of the help in the fourms and ..... I think my problems is in the master server selection, do i have to use [URL]... or can i just use myservername. I have tryed both with no luck. First time with the server addition.
don't find box of BIND so i was posting into this boxI have some problem when i config bind DNS for my domain and then i can't start named,this's error message
[root@server1 named]# service named restart Stopping named: [ OK ] Starting named:
I've set this up as a primary dns server, Bind is the only thing running on it, no gui, etc. I followed the default settings so I have a named.conf, named.conf.options, and named.conf.local file.
I have a log file I labeled as named.log in this path /var/log/bind. I'm using logrotate to rotate out the file.
My problem is that after syslogd restarts in the morning. My named.log file don't start logging info until I restart Bind. The new named.log file gets created and the old files rotate out and compress. All of the other log files in /var/log, syslog, messages, mail, etc, rotate out and compress like they should, after syslogd restarts.
I know that I could restart Bind using Cron but I shouldn't have to.
Below are snips of the files I'm using.
I named this one 'bind' and it's in the directory /etc/logrotate.d
I updated bind to version bind-9.3.4-6.0.3.P1.el5_2 today, and then I started getting "Starting named: named: user 'named' unknown" messages. Selinux is enabled. ID named shows: uid=25(named) gid=25(named) groups=25(named) context=root:system_r:unconfined_t:SystemLow-SystemHigh
I want to run a soft that is daemonized, and listens on port 6789. This soft is launched through a php page, so, by the apache user. The probl�me is that the apache user does not has rights to open / listen on a port. I tried to add apache user to the root group, but it won't help. In the application log, I have this every second :
[code]...
I tried to add apache user in the sudoers with a nopasswd but it's still a no go.
Code: # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, instead of the default. See also the <VirtualHost> # directive. Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses. #Listen 12.34.56.78:80 Listen 80
And when I try to start the server, I get the following
Code: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80. I did have an Apache web server up and running about 6 or 7 years ago - but seem to have lost everything
It it possible to setup a bind server for my internal network at home? Currently, all clients DNS requests go to my Verizon FIOS router, which also acts as a DHCP server. I would like to setup a another DNS server using BIND for studing.
Current setup:
Client --> Router (DNS Server) --> Internet
New BIND server setup:
Client --> BIND Server (2nd DNS) --> Router (Primary DNS) --> Internet
How would I go ab this? Would I have to configure a cache naming DNS server?
I would like to setup a qmail server for learning purposes (if you strongly feel Postfix is better, feel free to let me know). When I started setting up qmail (using Life with qmail), it suggested that having a DNS is the best approach. In the spirit of learning, I decided then to create another server for DNS only, and use that for qmail.
My problem is that, as this is a home installation, the internet is behind a Netgear DG834Gv5 router, on a DSL line that has a dynamic IP address. I am using DynDNS, but also don't mind having to update any DNS entries to keep up with the change, this is not exactly a production-grade setup.
In addition, I also have access to another DNS server where I can create authoritive entries for any domain I register. I have done that for a domain, and would like to point part of that to my home DNS so that I can learn.
So essentially, I would like to have a new zone for home.mydomain.org on my home DNS so that I can create new entries for *.home.mydomain.org such as qmail.home.mydomain.org etc. there.
I assume that this would include port forwarding on the router which is not a problem, but I truly have no clue where to start. I have a very basic install of Cent-OS 5.3 (no X and just Base a few admin and dev tools) and just installed the latest RPM of bind (9.3.x).
Does anyone have some material about statistics using ubuntu / linux server, or a text which generally describes the ubuntu server?I need urgent, i'm writing specialization work about administration apache and ftp server on ubuntu 10:10 server, so I need something for the conclusion.
I want to install a DLNA server on my ubuntu home server. It will primarily be used for photo browsing on my PS3, but general media support would be nice. (I use Squeezebox server for music.) What are my options, and what are the main difference between them.
I am using Cent OS 5.5 and i want configure DNS, but while configuring bind i am getting below error.
#/etc/init.d/named restart Stopping named: [ OK ] Starting named: Error in named configuration: /etc/named.conf:57: open: /etc/named.root.hints: file not found[FAILED]
I need a bind-server (I mean DNS server) with a SQL backend. As far as I have seen, the only viable option I have is to recompile bind9 with support for either MySQL or PostGre.
Link to this: [URL]with an additional
Code: apt-get install libpqxx3-dev
From some tutorials I have read, I see I need to recompile it to enable its SQL support.
But when I do it that way, I won't get any security updates, won't I?
So... Is there any bind server with SQL support in the repositories ? For that I don't have to worry about security updates...
I am using RackMonkey to map out my lab. Unfortunately, due to RM limitations, every user who accesses the site has write access UNLESS they are logged in as a user named "guest". I currently have Apache allowing only the users (sysadmins) in an LDAP group access to RM, but I would like to allow read-only access for other users as well.I found mod_authn_anon, but I am having trouble combining the two authentication methods. I am using Apache 2.2.18 (compiled myself) on SLES 11.1.
This is the common part:
Code:
AuthType Basic AuthBasicProvider ldap anon Order allow,deny Allow from all
This part by itself works for the LDAP authentication:
Anonymous guest Anonymous_VerifyEmail Off Anonymous_MustGiveEmail Off Anonymous_LogEmail on Require valid-user
But if I have both of the previous blocks enabled at once, then guest access does not work. If I throw in a "Satisfy any", then I am not prompted for a username at all. How can I allow access to this LDAP group and to a user named "guest", but not allow all valid LDAP users to log in?
I was wondering if anyone knows how to make a zone file for bind dns server that points "example.com" and all (by all i mean any) sub-domains to this 127.0.0.1 address. and i wanted to set up a virtual host in apache to use /var/www/eample/index.php for 'example.com' and all of its sub-domains.
I am working on fedora 10 and configured dns on my college lan which already has it's dns at 192.168.5.20 .So i configured my private dns server at 192.168.101.91 which is my ip too.And the domain name is the host name of my system for example server.onkie.com.MY dns port 53 is shown when i do nmap localhost but but doesnt show when i do nmap 192.168.101.91 .Also when tested my server on other computers on my lan with there primary dns as 192.168.5.20 and secondary as 192.168.101.91 they cant access my site at my system with the name [URL].. . nmap localhost
Starting Nmap 5.00 ( http://nmap.org ) at 2009-09-22 21:24 IST Interesting ports on onkar (127.0.0.1): Not shown: 993 closed ports PORT STATE SERVICE 22/tcp open ssh 53/tcp open domain ----the dns is running
[Code]...
I already disabled my selinux and iptables ..but then also it's not accessible in Lan .
I have 2 servers operating on my home network. One server hosts Bind9 and a few web sites. The other is an Ubuntu repo mirror that I recently configured (10.1.10.26). Inside my network, requests to the olyubuntu.nwlinux domain function as it should. However, external requests do not get forwarded. Instead, they end up at my DNS box at 10.1.10.25. Again, internal requests are forwarded correctly.Any red flags pop-up as to why this is occurring? Firewalls are not an issue.
I'm thinking about installing a DNS server on Fedora 13 running bind. I looked around for available bind packages and found only these:
Now the first one contains bind utils the second one is for running DNS in a chroot env and the last one is a bind with some DB backend.
Does this mean that fedora 13 doesn't support/.provide "standard" bind server (I mean the one to run without chroot/without db backend) ? Or am I missing anything in my repolist which is :
Currently I use FreeNAS, which is a FreeBSD-based NAS distribution for my home server. However, I would like to move to a Linux-based home server with the ability for new software packages to be installed, which is a problem with FreeNAS. I use Lucid beta on my Dell Mini 10v, and have two Windows 7 and one Windows XP desktop(s), with all of them connected via Gigabit ethernet and Wifi N.
The home server would act as a file server (SMB and whatever the best one is for my Ubuntu netbook), a media server (UPnP, MT-DAAPD/iTunes and DLNA for my PS3), as a webserver and as a VirtualBox server just to experiment with. The server itself has a 160GB PATA drive which will be for the OS, and a 1TB SATA drive to be for the data; Gigabit ethernet; an AMD Athlon 64 2.2GHz (with AMD-V) and 1GB RAM.Are there any things you would recommend for me to install? I think that having a window manager would be nice, even if just for initial setup since I am not very experienced with command-line Linux. I'm planning on installing Webmin and a VNC/SSH server so I can configure it remotely. I don't need any firewall or VPN services as these will be provided by a pfSense box separate from this.
I am trying to setup Fedira 12 Linux Apache in my home network. I am able to access the hosted website from inside my home network without any problem. I am facing the problem to access it from outside. At the moment i have connected the Apache directly to DSL modem for testing purpose. I was reading "The ISP may have blocked the HTTP port 80. So check it by connecting the Apache directly to DSL modem." The temporary network connections for testing purpose are as follows..
DSL modem (SIEMENS Speed Stream 4200)-->Fedora 12/Linux Apache Server
I am even unable to PING the real ip (IP for DSL modem).(Firefox gave me error message "Connection Timed out) I have tried to ping it from the internet.I can PING the DSL from Apache without any problem.
1. Why i am even unable to PING the real IP of DSL modem at my home.?
2. Is it possible to run/setup Apache by using this type of DSL modem?
3. DSL modem has real IP. DSL MODEM assigns private IP (192.168.x.x) to Apache. So when a http request form the internet came to DSL modem on port 80, will it forward to Apache automatically.? or i have to made any changes.(I can not see anything in DSL modem to change/modify), OR do I have to use another DSL MODEM/Equipment (router)? This setup is just temporary. The actual design is as follows
DSL MODEM(Speed Stream 4200)-->Fedora 12 Linux ROUTER--->Internal network with DNS/Apache Server
I'm trying to get Apache to run in a user's home directory. I changed the conf file so that Apache runs under the user and group "kiosk" and changed the DocumentRoot and Directory from the default to "/home/kiosk". Then I set Apache to start at boot (chkconfig --level 235 httpd on) and rebooted. When I checked, httpd is running as kiosk like it should (ps aux | grep httpd). However, when I try wget localhost, I get a 403 response back. If as root I call "httpd -k stop" and then "httpd -k start", then everything works exactly as it should (curiously, if I try using "-k restart", it still doesn't work). After this, httpd still shows as running as kiosk and if I check before calling start, it shows no httpd processes running as expected.
This only happens when I use httpd to stop and then start the web server. If I try to restart using apachectl I still get a 403 error. As an interesting aside, after I've used httpd, if I try using "apachectl restart" I get a "(13)Permission denied: Error retrieving pid file run/httpd.pid" error. This is all on a freshly installed CentOS 5.5 server. Why I'm seeing this very different behaviour from what I thought were just equivalent ways of starting Apache? And then what I could do to get it to start up and run properly on boot? One last item to mention is this isn't a permissions problem. I set the permissions to 777 to both the home and kiosk directories (and 666 to the web files) just to be sure that's not the problem.
Been a very long time since I have played with Linux.Now in a new position and have setup a Nagios server running on Centos 5,5 for a NMS.How do I set apache that when I visit: whatever.org it starts Nagios.. Currently I have to go to whatever.org/nagios.
I am setting up Apache (Fedora 12) inside my home network. From inside my home network I access it without any problem. I need to set it up to access it from internet. I have the following questions. Here is temporary setup for testing purpose. Internet-->ADSL modem (SEIMENS Speed Stream 4200)---> Apache (Fedora 12)
1. Do I have to do any kind of ports forwarding on ADSL modem. (There is no option to do port forwarding on Modem) May be I need different Model of Modem?? 2. I tired to Ping my real IP for modem form another computer from internet. I am even unable to PING the ADSL 's real IP. Why it is that?
I am now using CentOS5 as the server providing Apache services. I have managed to setup the web page under /home/user1/public_html, now I wish to change the default web page of our server to /home/user1/public_html. i tried to modify httpd.conf, in which i changed the "/var/www/" to the above user directory, but didnot work. Please kindly suggest.
I need to set up a named server for a class room with 10 imaginary hosts the sub domain managed by this name server is s123456.eca.edu.au where 123456 is to be replaced by your student id. The named server will forward unresolved queries to the dns server.
I am trying to solve a problem where Apache stats aren't displaying correctly in Munin. I've ran through quite a bit of checks and tests regarding Munin setup, but I think my issue is related to Apache, but my skill set there is lacking.
first, system info: monitored server: CentOS 5.3 2.6.18-128.1.1.el5
I would like to add ROR to my web server, but I would still like to keep php. I tried doing this a few days ago, but it made my PHP unusable so that it would ask me to download a file rather than displaying the php page. how to install ruby on rails without trashing my system again.
I've setup a Ubuntu 9.10 LAMP server to host a word press blog on an intranet. I've got everything working except the url for the site.The IP address of the server will take me to the site URL.../But I'd rather use the server's name instead of the IP address URL...When i try to go to URL... in Firefox or IE it give me a server not found page and changes the URL to URL...I also have Webmin installed on the server and I've been playing around with the Apache module and can't figure out how to set it so i can use the server name instead of the IP address to get to the site.