Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 20
  1. #1
    Member
    Join Date
    Sep 2005
    Posts
    16

    Default WHM Skeleton Placeholder

    I'm trying to setup a simple placeholder page to go in WHM skeleton.

    I would like it to display the domain name that is being visited, e.g. > Welcome to the future home of "domainname"

    Is anyone doing this, and if so, what do I need to put in the page to get it to dynamically display the domain name? Thanks.

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    1,931

    Default

    make your welcome page in php and put the code in below add any other html you choose





    <HTML>
    <HEAD>
    <title>Welcome <? echo $SERVER_NAME; ?></title>

    <? echo $SERVER_NAME; ?>

    </body>
    </html>
    Last edited by dalem; 11-15-2005 at 10:36 PM.
    Lowest Host/Empire Technology LLC
    Affordable hosting solutions http://empire-hosting.net
    List Your hosting site FREE in http://hostgeneration.com

  3. #3
    Member
    Join Date
    Sep 2005
    Posts
    16

    Default

    Did it exactly as you outlined, and it doesn't work for me ???

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    1,931

    Default

    woops extra head tag corrected
    Lowest Host/Empire Technology LLC
    Affordable hosting solutions http://empire-hosting.net
    List Your hosting site FREE in http://hostgeneration.com

  5. #5
    Registered User
    Join Date
    Nov 2005
    Posts
    3

    Default

    I tried this on my server,
    but the variable $SERVER_NAME; didn't show anything/blank.

    I need info what module I must turn on/install so that apache
    variable can be shown/retrieve.

    Thanks

  6. #6
    Member
    Join Date
    Sep 2005
    Posts
    16

    Default

    Blank for me as well.

  7. #7
    Zaf
    Zaf is offline
    Member
    Join Date
    Aug 2005
    Posts
    119

    Default

    Quote Originally Posted by dalem
    <HTML>
    <HEAD>
    <title>Welcome <? echo $SERVER_NAME; ?></title>

    <? echo $SERVER_NAME; ?>

    </body>
    </html>
    Oh and now the <body> tag is missing and so does the closing tag for <HEAD>

  8. #8
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    1,931

    Default

    here not sure where the confusion lies for you all of the code simplits on this post works for me are you saving as as .php



    <HTML>
    <HEAD>
    <title>Welcome <? echo $SERVER_NAME; ?></title>

    </HEAD>
    <BODY BGCOLOR="#FFFFFF" link="#3333ff" alink="#3333ff" vlink="#3333ff">
    <center>

    <hr width="75%" color="#0000FF">
    <div align="center">
    <p align="center"><b>Welcome This is a place holder For <br>
    </b>
    </div>
    <p align="center"> <b> <font face="Arial" size="5">
    <? echo $SERVER_NAME; ?>
    <br>
    </font> </b> </p>
    <hr width="75%" color="#0000FF">
    <br>



    </body>
    </html>
    Last edited by dalem; 11-16-2005 at 01:31 PM.
    Lowest Host/Empire Technology LLC
    Affordable hosting solutions http://empire-hosting.net
    List Your hosting site FREE in http://hostgeneration.com

  9. #9
    Member
    Join Date
    Sep 2005
    Posts
    16

    Default

    I copied your working example exactly, made an index.php file containing your code, and it still won't work. What am I doing wrong?

  10. #10
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    1,931

    Default

    not sure I just copied & pasted it directly from the forums from my last post and place it in a working domain works fine


    http://ydaelite.com/tmp.php
    Lowest Host/Empire Technology LLC
    Affordable hosting solutions http://empire-hosting.net
    List Your hosting site FREE in http://hostgeneration.com

  11. #11
    Member ntwaddel's Avatar
    Join Date
    Nov 2003
    Location
    Templeton, CA
    Posts
    173

    Default

    you should be using $_SERVER['SERVER_NAME'] instead of $SERVER_NAME

  12. #12
    Registered User
    Join Date
    Nov 2005
    Posts
    3

    Default

    Dear All,

    I want to make clear my question.

    I have many different hosting account and tested the two variable on those domain.

    Some hosting can display both these apache and php variable all together, some can't.

    Here is the two variable that I use:

    Apache ==> $SERVER_NAME
    PHP ==> $_SERVER['SERVER_NAME']

    My question is like this:
    On the hosting that can't display the apache variable $SERVER_NAME,
    how to configure (what module I must install / turn on) so that It can display apache
    variable since my script need to use apache variable insteads of PHP variable.

    I asked my vps hosting support and the didn't have any idea how to fix it.

    I have a few hosting that can display both variable, and a few others hosting can't.

    So, it must be some configuration or module issues that need to be fix to display
    the apache variable.

    I need guidance from some of you who may experienced with server config/module.

    To put it simple, what module or config I must install / turn on so that my hosting
    server can display apache variable $SERVER_NAME.

    It's possible that someday you may need to run script that need this apache variable
    for your customer, so I prefer to fix it now before many clients use this server.

    Thanks

  13. #13
    Registered User
    Join Date
    Nov 2005
    Posts
    3

    Default

    Hi Izzee,

    Thanks for the answer. Unfortunately I only have control on one server only,
    others that can are reseller account that I dont have any access up to that level.

    I post on this topic because I also want to do the same with what MrMagoo does,
    and then I found out that I can't use the apache variable like suggested on my
    server and then I tested on my others hosting I have and found this interesting
    fact that some could and some couldn't display the variable.

    Then I post this just hoping that someone will enlighten me since my vps porvider
    support, don't have any ideas to solve this issue.

    Anyway thanks for the tips and the links.

  14. #14
    Member
    Join Date
    Sep 2005
    Posts
    16

    Default

    Hey, thanks one and all. I used $_SERVER['SERVER_NAME'] and it worked first go, much appreciated.

    Slightly different issue, but kinda the same… I give my clients a preview URL when they first sign up e.g. http://servername/~username/index.php - unfortunately the above place holder won't display the clients domain name on the preview URL, it will only show the servers name instead.

    Has anyone found a work around for this?

  15. #15
    Member tuxdesk's Avatar
    Join Date
    Oct 2005
    Posts
    86

    Default

    Hi,

    If you give the url http://servername/~username/index.php the Apache will serve the web page using the user name instead of the domain name. (The server bandwidth is consumed)
    Tux
    Aim : tuxdesk
    Msn : tuxdesk@hotmail.com
    Yahoo: tuxdesk@yahoo.com

    __________________________________________________
    "You don't slow down because you get old; you get old because you slow down."

Similar Threads & Tags
Similar threads

  1. vfilter skeleton
    By cdick@ocis.net in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-11-2009, 02:15 PM
  2. Help: Placeholder page
    By skiff in forum New User Questions
    Replies: 3
    Last Post: 04-23-2008, 06:21 PM
  3. Placeholder page just wont leave!
    By calib3r in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-20-2007, 11:13 AM
  4. Adding Web content/ apache "placeholder"
    By Fostroh in forum New User Questions
    Replies: 1
    Last Post: 11-08-2006, 06:02 AM
  5. No skeleton directory...?
    By t c in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-18-2004, 03:11 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube