Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

2 Answers 2

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.

     #!/usr/bin/perl
     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:
http://www.limecanvas.com/changing-the-cpanel-default-website-page/

share|improve this answer

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