View Full Version : Backuppc cgi files and BIND
lathrodectus
27th June 2006, 15:35
i have installed ISP config as "The perfect setup - suse 10.0" guide. everything seems to be working well. i made DNS entries as " how to run your own nameservers with ISPconfig and GoDaddy" (my appreciation to falko :)).
when i finished master and slave entries BIND server seems offline.
is it because my domain-registrar did not updated my domain to my nameservers? (ns1.ariferdogan.com.tr yet seems on my ex-host's nameserver DNS server which is ns1.mavipiksel.com.tr)
Second i want to install backuppc, it comes with a cgi- web interface.
but i dont know where to put the cgi files.
should i create a new virtual host for backuppc? or where to install cgi-script?
thanks for the help.
falko
28th June 2006, 11:14
when i finished master and slave entries BIND server seems offline.
is it because my domain-registrar did not updated my domain to my nameservers? (ns1.ariferdogan.com.tr yet seems on my ex-host's nameserver DNS server which is ns1.mavipiksel.com.tr)Which BIND? On your primary or secondary name server? What's the output of netstat -tap? Any errors in the log files?
Second i want to install backuppc, it comes with a cgi- web interface.
but i dont know where to put the cgi files.
should i create a new virtual host for backuppc? or where to install cgi-script?
Create a web site with ISPConfig (if you haven't done so already) and enable CGI for it. then place the script into the cgi-bin directory of that web site and make them executable.
lathrodectus
28th June 2006, 12:42
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:smpnameres *:* LISTEN 4978/xinetd
tcp 0 0 *:smux *:* LISTEN 29167/snmpd
tcp 0 0 *:rsync *:* LISTEN 4978/xinetd
tcp 0 0 *:5801 *:* LISTEN 4978/xinetd
tcp 0 0 *:mysql *:* LISTEN 29462/mysqld
tcp 0 0 *:netbios-ssn *:* LISTEN 14479/smbd
tcp 0 0 *:5901 *:* LISTEN 4978/xinetd
tcp 0 0 *:sunrpc *:* LISTEN 4674/portmap
tcp 0 0 *:hosts2-ns *:* LISTEN 20914/ispconfig_htt
tcp 0 0 *:smtp *:* LISTEN 7926/master
tcp 0 0 *:microsoft-ds *:* LISTEN 14479/smbd
tcp 0 0 localhost:958 *:* LISTEN 5022/fam
tcp 0 0 *:imaps *:* LISTEN 29247/couriertcpd
tcp 0 0 *:filenet-rpc *:* LISTEN 5028/xdm
tcp 0 0 *:pop3s *:* LISTEN 29298/couriertcpd
tcp 0 0 *:pop3 *:* LISTEN 29267/couriertcpd
tcp 0 0 *:imap *:* LISTEN 29218/couriertcpd
tcp 0 0 *:www-http *:* LISTEN 32553/httpd2-prefor
tcp 0 0 *:ssh *:* LISTEN 4913/sshd
tcp 0 0 *:smtp *:* LISTEN 7926/master
tcp 0 0 *:https *:* LISTEN 32553/httpd2-prefor
tcp 0 0 192.168.2.200%1075:pop3 192.168.2:cadkey-licman TIME_WAIT -
tcp 0 740 192.168.2.200%10750:ssh 192.168.2.2%10:florence ESTABLISHED 18922/0
i am hosting only one site at server (ariferdogan.com.tr)
if i add another website and place the script files into cgi-bin dir.
how can i access them from another pc on my network?
if i enter the IP directly i c "shared IP" page. and i just want that cgi-script to be avaible only from local network.
falko
29th June 2006, 13:49
Which BIND? On your primary or secondary name server?
Any errors in the log files?
i am hosting only one site at server (ariferdogan.com.tr)
if i add another website and place the script files into cgi-bin dir.
how can i access them from another pc on my network?
http://www.example.com/cgi-bin/your_script.cgi
if i enter the IP directly i c "shared IP" page. and i just want that cgi-script to be avaible only from local network.
You cannot use IP addresses because ISPConfig configures name-based vhosts.
You can use a fake domain for that web site and configure it on a local DNS server that your client PCs use in your LAN, or you edit the hosts file of each client PC: http://www.howtoforge.com/forums/showthread.php?t=432&highlight=hosts+file+windows
CJMostert
14th August 2006, 22:23
[QUOTE=falko]Which BIND? On your primary or secondary name server? What's the output of netstat -tap? Any errors in the log files?
Hallo...
I did the Fedora 5 install you provided Falko (THANX) very good. I then tried the ISPConfig but this was not so easy to understand than the Fedora 5 howto... btw my last Linux incounter was 7 years ago.
I also see now my Bind is OFFline... I tried "/etc/init.d/named restart" but get:
Stopping named: [FAILED]
Starting named:
But nothing happens... the terminal just "hangs" with the cursor blinking at the Starting named:
I have ONLY 1 server and the "netstat -tap" command provieds:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:mysql *:* LISTEN 1701/mysqld
tcp 0 0 *:sunrpc *:* LISTEN 1311/portmap
tcp 0 0 webserv1.ukpowerhost.:50000 *:* LISTEN 1546/hpiod
tcp 0 0 *:hosts2-ns *:* LISTEN 2139/ispconfig_http
tcp 0 0 webserv1.ukpowerhost.:50002 *:* LISTEN 1551/python
tcp 0 0 webserv1.ukpowerhost.co:ipp *:* LISTEN 1563/cupsd
tcp 0 0 *:smtp *:* LISTEN 2368/master
tcp 0 0 *:41757 *:* LISTEN 1330/rpc.statd
tcp 0 0 webserv1.ukpowerhost.:48611 webserv1.ukpowerhost.:mysql ESTABLISHED 4585/php
tcp 0 0 webserv1.ukpowerhost.:mysql webserv1.ukpowerhost.:48611 ESTABLISHED 1701/mysqld
tcp 0 0 webserv1.ukpowerhost.:42877 webserv1.ukpowerhost.:50000 ESTABLISHED 1551/python
tcp 0 0 192.168.1.2:42812 213.155.151.105:http TIME_WAIT -
tcp 0 0 webserv1.ukpowerhost.:50000 webserv1.ukpowerhost.:42877 ESTABLISHED 1546/hpiod
tcp 0 0 *:imaps *:* LISTEN 1729/dovecot
tcp 0 0 *:pop3s *:* LISTEN 1729/dovecot
tcp 0 0 *:pop3 *:* LISTEN 1729/dovecot
tcp 0 0 *:imap *:* LISTEN 1729/dovecot
tcp 0 0 *:http *:* LISTEN 2296/httpd
tcp 0 0 *:ssh *:* LISTEN 1592/sshd
tcp 0 0 *:https *:* LISTEN 2296/httpd
It seems also I can not change my DNS Title as i get this:
The following error occurred:
Your changes cannot be saved because this item is currently being updated. Please try again later.
Next >>
any guidelines from here?
Thanx
till
15th August 2006, 09:48
Please check your syslog for bind errors
CJMostert
15th August 2006, 15:24
Hallo.
This morning my server does not even wana start...:mad:
the details are as follows:
Bringing up Loopback interface: OK
Bringing up interface eth0: OK
Starting system logger: OK
Starting Kernal logger: OK
Starting irqbalance: OK
Starting named:
And it just "hangs" (cursor just flassing) after that.
Further more Please check your syslog for bind errors
as i said in my previous post... I thouched on Linux 7 years ago so I am a bit rusted... how do i do this IF I can get my server up and running again.
Thanx
falko
15th August 2006, 17:30
as i said in my previous post... I thouched on Linux 7 years ago so I am a bit rusted... how do i do this IF I can get my server up and running again.
Thanx
Like this:
tail -n100 /var/log/syslog
or
tail -n100 /var/log/messages
where 100 is the number of lines you'd like to see from the end of the file.
CJMostert
17th August 2006, 21:28
Thanx guys but :
This morning my server does not even wana start...:mad:
the details are as follows: ...
My server does not even wana start! it just hangs. :confused:
Is there a way to tell the server to TOTALY skip this step on loading/starting the Fedora system...
Thanx
PS.
I entered the system with the install DVD and went into Resque mode but when i did "tail" it seemed to show me the last few lined of the just started system so I do not know how to see the FAILED log lines. I also am not sure where the named.config file is and if I find it can i just delete it or how will i know what is wrong in it to fix it... I much rather prefer to fix it and not delete the file and start from scratch.
Thanx again
PPS.
Good news... Ok almost good news...
BOOT 1. I went into Interactive mode for the start and found out if i do NOT start the "named" service the system can go on BUT if i then start the "FirstBoot" the system just gives me a blue screen...
BOOT 2. I then tried a second time... No start on "named" AND No start on "FirstBoot" but when i started the ISPConfig service it does:
-----------------------------------------------------------
/root/ispconfig/httpd/bin/apachectl startssc: httpd started
-----------------------------------------------------------
And then it hands...
BOOT 3. I then tried a third time... No start on "named", No start on "FirstBoot" AND No start on "ISPConfig" and YEA!!!! i can log on now.
So what do I do now??? AGAIN I would prefer not to start over so if I can just fix it I would prefer that.
THANX
falko
18th August 2006, 15:57
http://www.howtoforge.com/forums/showthread.php?t=1162&page=2
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.