LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-21-2005, 08:20 PM   #1
CiF
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
[Req]: How to config WebSvr & DNS Svr from console by Bash shell script


Hi everyone,

I'm using Mandrake 10 and I want to ask some expert about Bash shell script which control Apache & Bind BNS .

My goal is write a shell scipt (or PHP script) that will add/edi/remove/control records & properties of Apache & DNS config file.

This scripts allow root do something :

- add/edit/remove/control a new domain / virtual host / virtual server on Apache web server

- add/edit/remove/control some records ( A, MX, NS, etc.. records of DNS)

- etc.. (e.g: web uage statistic/counter; event log, )

So, can you help me or give some useful advises. I'm newbies on Linux.

Pls reply my thread or send me a mes at: viet.buiquoc@gmail.com ; as soon as possible.

Thanks a lot !!!

Viet. Bui Quoc
 
Old 03-21-2005, 08:43 PM   #2
JohnBoy
Member
 
Registered: Oct 2003
Distribution: Debian, RH, Knoppix, Ubuntu, CentOS
Posts: 62

Rep: Reputation: 15
Have you done manually, these things you are trying to do with scripts?

The first piece of advice I have is that you ought to do this, if you haven't.

The second thing is to separate your work into two areas: one for Apache and the other for DNS.

The third suggestion is that you restate your question. Are you really looking for advice or are you looking for somneone to do it for you? If you are looking for advice, explain the problem you are having, post the source that is relate to the problem and ask questions that pertain to these things.
 
Old 03-22-2005, 12:31 AM   #3
CiF
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Firstly, thank you, Mr JohnBoy

I'm sorry about my English. It's very bad (I'm Vietnamese and newbies on Linux). I'm looking for both (someone to do and advisers).

I want to build a multi-choices menu by Bash shell script on MandrakeLinux. User types "1" or "2" to choose "Apache Manager" or "DNS Manager".

Ex: when user types "1", this sub-menu will be show:

==============
* Apache Manager *
==============

1. Add/Edit/Remove virtual host
2. Add/Edit/Remove virtual server
3. Add/Edit/Remove virtual directory
3. Edit default settings
4. Start/Stop/Restart Apache

Pls enter a number :

========================

and as show above (and same to DNS Manager).depends on user's number, sub-menu or actions will appear

Because i'm newbies, so I think that, this script will help me & newbies more useful & fun with Linux.That's my goal!

Any body can write it for me?
 
  


Reply


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
shell script + change shell && continue darkRoom Programming 6 02-25-2005 02:50 AM
change console title in bash script? TLV Linux - Software 18 10-08-2004 11:25 AM
Req. Shell script: Network performance test altu Solaris / OpenSolaris 6 08-08-2004 11:45 PM
Whats the difference Linux Console and BASH Shell glenn69 Linux - Newbie 2 08-31-2003 03:19 PM
bash shell script MaryM Linux - Newbie 0 02-15-2002 11:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:02 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration