[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Shell Program for Creating New Sites.. RAQ 4
- Subject: [cobalt-users] Shell Program for Creating New Sites.. RAQ 4
- From: "Fragga" <fragga@xxxxxxxxxxxx>
- Date: Wed Jun 19 04:32:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
greets.
Just wondering... i`m fed up with using the admin control panel to create
new sites. its so slow having to load all those images each time and if u
have alot of sites on there it can be very frustrating.
Most of my work, i do in a shell so i figured i`d hack together a little
perl or c program to allow me to create sites quickly and easily within a
shell.
I think ive tracked down which files are modified and ammended in creating a
site. Note these sites wont have need for usernames or passwords when
crezated as i`ve already wrote a program to create holding pages etc from
shell so i dont have to worry about ftp or anything.
the files i believe i need to ammend / create are
named.conf ## to specify path of the file in dir below.
/etc/named dir ## then create a pri.domain.file
htppd.conf ## to specify doc root, application types, all that
jazz..
/etc/group ## group for that site
& then
create a site directory in /home/sites with symbolic links and sub
directories etc, etc for that domain.
and thats it as far as i can tell... i got a couple of questions though
regarding the numbering system.. i know apache has all web dirs as site5,
site6 etc etc. is this figure stored anywhere ? or just counted from how
many currently exist ? Also what about things like log rotation would i need
to modify any configuration files to include newly created sites ? If anyone
can advise on any files i`ve missed aswell i`d be grateful.
has anyone done anything like this before ?
and before anyone starts banging on about how i`m destroying the point of
what the RAQ stands for, I`m just investigating this to make my life easier
. . .
any advice woudl be appreciated.
thanks
fragga