View Full Version : Modifying the Cobalt templates
afriq 05-24-2001, 09:04 AM Ok - now for the next step in our quest to tame the RaQ beast ...
We want to modify the template that is used when a new virtual site is added:
>>>
Welcome to the Web Site of www.host24.co.za
This page is a place holder for the home page of your own web site.
>>>
Where does one find these templates?
And whilst we're on the subject, the GUI should also add "php3" as one of the default php extensions (it is no fun editing the httpd.conf file for each new virtual site).
Thanks once again,
Johan
swissmonk 05-24-2001, 11:27 AM for the template, you should find it in:
/etc/skel/group/en_US/web/index.html
and
/etc/skel/user/en_US/web/index.html
(on a raq3... maybe that on a raq4 it is somewhere else)
you don't need to add the .php3 or .php for each virtual site, just edit the srm.conf and add
AddType application/x-httpd-php .php .php3 .php4 ... after it is ok for all sites...
you can also modify the directory index and add:
index.php index.php3 index.php4
Originally posted by swissmonk
[B]for the template, you should find it in:
/etc/skel/group/en_US/web/index.html
and
/etc/skel/user/en_US/web/index.html
(on a raq3... maybe that on a raq4 it is somewhere else)
Hi...
(sorry for my english)
I was connect with ftp as admis user of raq
and i have access to this folders...
It is safe to change the templates using ftp?
Thanks
HostRat 08-10-2001, 06:56 AM Hello!
You will not be able to upload via FTP,
You need to use the wget command via telnet :):):)
Some basic info:
Download files to desktop and edit, then upload to a location which can be seen via a web browser for example : /home/sites/web/controlpanel/group/ (www.domain.com/controlpanel/group/)
Then in telnet:
CD to the /dir/
[root]> CD /etc/skel/group/en_US/web/
Then type:
[root]> wget http://www.domain.com/controlpanel/group/index.html
This is some basic knowledge :) Hope it helps/
Marty 08-10-2001, 10:19 AM Originally posted by swissmonk
you don't need to add the .php3 or .php for each virtual site, just edit the srm.conf and add
AddType application/x-httpd-php .php .php3 .php4 ... after it is ok for all sites...
you can also modify the directory index and add:
index.php index.php3 index.php4
After doing this, is it necessary to restart httpd? Sorry for the dumb question, but I a new to raqs and ded servers in general.
Oh, and where would I find the srm.conf file.
HostRat 08-10-2001, 11:26 AM Yes it is :):)
Haisoft 08-10-2001, 01:33 PM Originally posted by swissmonk
you don't need to add the .php3 or .php for each virtual site, just edit the srm.conf
Which srm.conf, I've got 2 :
etc/admserv/conf/srm.conf
and
etc/httpd/conf/srm.conf
I've also got 2 srm.conf.master,
Richard
Haisoft 08-10-2001, 01:36 PM Originally posted by Marty
After doing this, is it necessary to restart httpd? Sorry for the dumb question, but I a new to raqs and ded servers in general.
Oh, and where would I find the srm.conf file.
I'm new to, how do you restart httpd?
Richard
P.S to find a file, in telnet just type : locate filename
Marty 08-10-2001, 01:58 PM Haisoft,
Thanks. Here is your answer: Tell net in and type
/etc/rc.d/init.d/httpd restart
sbrad 08-10-2001, 02:05 PM Which srm.conf, I've got 2 :
etc/admserv/conf/srm.conf
and
etc/httpd/conf/srm.conf
I've also got 2 srm.conf.master,
Richard
That would be etc/httpd/conf/srm.conf
Originally posted by HostRat
Then in telnet:
CD to the /dir/
[root]> CD /etc/skel/group/en_US/web/
Then type:
[root]> wget http://www.domain.com/controlpanel/group/index.html
This is some basic knowledge :) Hope it helps/
(sorry for my english)
Thanks!!!
Can you help me for one more thing?
I would like to create and some directory on the
/etc/skel/group/en_US/web/
like that /cgi-bin/ with chmod 755
how i copy that directory
the "chmod 755" will be keep in the new accounts or only the dir
Thank you!!!
Chicken 08-11-2001, 11:35 AM In theory, it should retain the permissions set by you and copy all the files/directories over when you create a new account. This will not update current sites *already created* on the server however.
(sorry about my englsih)
1) I must create the directory when i telnet as a root ? or simple admin ?
2) or copy the dir
with unix command from http://www.domain.com/..../......
which is the right command mv or cp or wget ?
thanks
Chicken 08-11-2001, 02:13 PM Well, first I'll tell you that I don't do this (disclamier :D )
I'd assume you'd have to be logged in as root to create the directory, not admin.
mv - moves files from one place to another
cp - copies the original file to the specified directory
wget - used more (at least how I've done it) to get files from another server
Originally posted by Chicken
Well, first I'll tell you that I don't do this (disclamier :D )
(sorry for my english)
Why?
I just want to make a cgi-bin directory
to all my new account?
What is wrong?
I'd assume you'd have to be logged in as root to create the directory, not admin.
If i create as root the dir... the new webmaster can write in that dir ?
mv - moves files from one place to another
cp - copies the original file to the specified directory
wget - used more (at least how I've done it) to get files from another server
Sorry i don't know the unix commands...
Can you tell me a command to copy the dir ?
Thank you !!!
Sorry but I just rent my first Raq and i have many questions
and all of you in this forum you are very helpfull
Thank all of you....
Chicken 08-11-2001, 04:35 PM No, I'm not telling you that you shouldn't do this, I'm just mentioning that I've never done this (I don't do it on my server), so the info was general, not based on my experience (and may not work, but should work).
if you want to copy a file:
cp /full/path/to/file.name /where/you/want/the/file/to/be.name
You can copy a file if you are in a directory where the file resides:
cp ./file.name /where/you/want/the/file/to/be.name
(sorry for my English)
Bad news.... :-(
I try to create the directory....
When the new account create I have the /cgi-bin/ but I cant write in the directory....(permission denied)
also come with create by a nobody... same with the files to the root
The files I was able to deleted but the directory I can’t
example of dir:
drwxr-xr-x 3 nobody site4 1024 Aug 16 14:33 cgi-bin
drwxr-xr-x 2 test site4 1024 Aug 16 16:58 hhh
-rw-rw-r-- 1 nobody site4 572 Aug 16 14:33 index.html
-rw-r--r-- 1 nobody site4 1533 Aug 16 14:33 logo.gif
-rw-r--r-- 1 nobody site4 3556 Aug 16 14:33 under.gif
(test is the admin of the new account... i create the dir hhh)
Any idea or solution ?
Chicken 08-16-2001, 10:48 PM Ok well first, the only reason I'd do this is if you wanted to have a directory created (I'd actually use another dir name than cgi-bin, maybe cgi-sys?), that contained preloaded scripts for your clients to use.
I don't see a point in just creating an empty cgi-bin directory for two reasons. One, they can do it themselves if they want it. Two, you don't need to place scripts in a 'cgi-bin' directory.
Originally posted by Chicken
[ (I'd actually use another dir name than cgi-bin, maybe cgi-sys?), that contained preloaded scripts for your clients to use. [/B]
(sorry about my English)
I have all ready do that....(cgi-sys)
I want the new account with cgi-bin....
the new customer always ask where is the cgi-bin...
also I want to save the counter data at /cgi-bin/store/counter/...
like that the customer can edit the data file of the counter...
... I will login every time like admin of the site and I will create the new directories
...I cant find any other solution
|