Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a server (and a static IP), but not have a domain yet. But i still want to use it with IP address and upload my web page.

When I write the IP address, I am redirected to a cgi-sys/defaultwebpage.cgi default website page.

How can I change it, so it will read /var/www/html/index.php as default.

Server is Centos 6.0 and I fave Cpanel

Any help would be appreciated

share|improve this question

closed as off-topic by Falcon Momot, mdpc, Ward, dawud, TheCleaner Aug 14 '13 at 17:30

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is a site dedicated to professionals; novice questions are off-topic. Please see the Help Center for more information on topicality. The best advice we can give you is to hire a professional to help you out." – Falcon Momot, mdpc, Ward, dawud, TheCleaner
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 0 down vote accepted

Here is what you can do.

  • Backup your current defaultwebpage.cgi

  • Overwrite the above file, with the following 2 lines.

     print "Location: http://IP_ADDR/index.php\n\n";
share|improve this answer

To change the "Default Website Page" on a WHM/cPanel CENTOS 6 Server I need to:

  • Go to: /usr/local/apache/htdocs/
  • Backup everything there to a safespot
  • Replace index.html with the new version
  • Upload any supporting files

Your new index.html should show when you access the machine via IP Address or exact Server Domain Name.

I learned this from here:

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.