#1 (permalink)  
Old 04-22-2003, 10:23 PM
Registered User
 
Join Date: Nov 2002
Posts: 90
hugo24
How to make an auto index.html page?

Hello all,

Instead of after creating a new account, it shows the index page with directory, how could I make a default page showing something like, "this account has been setup"?

I know I could upload an index.html file to replace it but is there any way that I could make it auto instead of uploading it whenever i create a new account?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-22-2003, 10:27 PM
rpmws's Avatar
Registered User
 
Join Date: Aug 2001
Location: back woods of NC, USA
Posts: 1,843
rpmws is on a distinguished road
in your root folder you will see a folder called:

cpanel3-skel

Put anything you want in there and it should make it to a freshly installed account. Your can even include support docs and a full website that will get cloned when a account is created. Resellers also have this cpanel3-skel folder for when they create accounts.

Have fun!
__________________
Just keeping my "eye" on things....
R. Paul Mathews
RPMWS - diehard cPanel Nutcase
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-22-2003, 10:45 PM
Registered User
 
Join Date: Nov 2002
Posts: 90
hugo24
Thanks Bloke...

But how do I exactly do it? I have to access in from root?
Lookup for that folder and use the editor to do it?

Will appreciate if you could guide me further.

Thanks again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-22-2003, 10:53 PM
rpmws's Avatar
Registered User
 
Join Date: Aug 2001
Location: back woods of NC, USA
Posts: 1,843
rpmws is on a distinguished road
sure.. shh as root.
------------------------
root@yourbox #
cd cpanel3-skel/public_html <enter>

root@yourbox [~/cpanel3-skel/public_html]#

vi index.html

hit shift I and then paste in html code you copy from the computer you developed it on. When done hit esc :wq enter. save it.

You can also FTP ot to a user account and then do this.

mv /home/theuser/public_html/index.html cpanel3-skel/public_html/
__________________
Just keeping my "eye" on things....
R. Paul Mathews
RPMWS - diehard cPanel Nutcase
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-22-2003, 11:22 PM
Registered User
 
Join Date: Nov 2002
Posts: 90
hugo24
Great! Thank you for the kind assistance!

Well, i supposed it will works across all new account for
the first method? I will try both anyway.

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-25-2003, 09:07 PM
Registered User
 
Join Date: Jan 2003
Posts: 152
imagic
Is it possible to have this index.html file show the domain name associated with the account?

For example:

Welcome to InsertTheDomainNameAutomaticallyHere
This website is still under construction, blah, blah, blah

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-25-2003, 09:15 PM
Registered User
 
Join Date: Feb 2002
Location: UK
Posts: 461
SoftmegUK
If you have root access you can modify the wwwacct script to make an file that contains the domain information etc that is in this post:

cpanel3-skel directory issue

Myself I prefer to use either SSI includes or use PHP.

For example

SSI: index.shtml:

"Welcome to future home of <!--#echo var="SERVER_NAME" -->"

PHP: index.php

"Welcome to the future home of <?php print $HTTP_HOST; ?>"

Hope this helps!
__________________
Apache to die or not to die, that is the question...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-26-2003, 12:39 AM
Registered User
 
Join Date: Jan 2003
Posts: 152
imagic
Thank you SoftmegUK for turning me onto that other thread I used the script in there that Juanra wrote and it does exactly what I want it to!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-17-2003, 04:16 PM
Registered User
 
Join Date: Mar 2003
Posts: 89
c4host
Ok I ftp'd the files to the root cpanel13-skel and they are there but nothing on a new site a create?

I restarted apache but no luck

Any Idea
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-17-2003, 05:09 PM
PWSowner's Avatar
Registered User
 
Join Date: Nov 2001
Location: ON, Canada
Posts: 2,994
PWSowner is on a distinguished road
Are you using root WHM or a reseller WHM. Resellers get their own cpanel3-skel directory. Are you putting the index file in the public_html directory under the cpanel3-skel directory? That's where it needs to be. You don't need to restart apache.
__________________
Mike
WHM and cPanel Scripts (join our "Scripts Club")
D/A Photography
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 05-17-2003, 05:11 PM
PWSowner's Avatar
Registered User
 
Join Date: Nov 2001
Location: ON, Canada
Posts: 2,994
PWSowner is on a distinguished road
Quote:
Originally posted by c4host
cpanel13-skel
Is this a spelling error in your post, or did you possibly create a directory by that name?

Just another possibility.
__________________
Mike
WHM and cPanel Scripts (join our "Scripts Club")
D/A Photography
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 05-17-2003, 06:56 PM
Registered User
 
Join Date: Mar 2003
Posts: 89
c4host
just spelling
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 05-17-2003, 08:50 PM
jackal's Avatar
cPanel Partner NOC
cPanel Partner NOC Badge
 
Join Date: Feb 2002
Posts: 708
jackal
Server Name Location?????


Look for Juanra's post. We use it works great!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 05-25-2003, 12:41 AM
Registered User
 
Join Date: Apr 2003
Posts: 1
tadpole
Quote:
Originally posted by SoftmegUK
If you have root access you can modify the wwwacct script to make an file that contains the domain information etc that is in this post:

For example

SSI: index.shtml:

"Welcome to future home of <!--#echo var="SERVER_NAME" -->"

PHP: index.php

"Welcome to the future home of <?php print $HTTP_HOST; ?>"

Hope this helps!
Are there parameters that a reseller can use to customize an "index.html" file such as including the domain name.

cPanel.net Support Ticket Number:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 05-26-2003, 09:30 AM
Registered User
 
Join Date: Mar 2003
Posts: 89
c4host
Hello,

DO I need to change something? Only sites that I create are getting the default index page I created. If the resellers create one then nothing!!

I use the root access and put it in cpanel3 skel directory in the public_html

cPanel.net Support Ticket Number:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

« IP Block | Edge »
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:46 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc