[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Shell Program for Creating New Sites.. RAQ 4



I think that php scripts can be executed on the command line. The quickest
way might be to tweak the original php and make a CLI version of it.

b

> -----Original Message-----
> From: Fragga [mailto:fragga@xxxxxxxxxxxx]
> Sent: 19 June 2002 12:31
> To: cobalt-users@xxxxxxxxxxxxxxx
> Subject: [cobalt-users] Shell Program for Creating New Sites.. RAQ 4
> 
> 
> 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
> 
> 
> 
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
> 


Our network may monitor outgoing and incoming e-mail messages for security and customer service purposes,
but this e-mail is confidential. Please notify the sender immediately if you receive it in error, and then delete it. Thank you.