Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to get rid of the apache default page?

Discussion in 'EasyApache' started by firebox, Aug 26, 2009.

  1. firebox

    firebox Registered

    Aug 25, 2009
    Likes Received:
    Trophy Points:
    hello all, sorry i'm very new to this.

    I have a VPS running cpanel optimized, just got it like 2 days ago.
    every time i type in my ip, it loads the apache default page, and telling to to add files to it. but where should i add my files? and i want to change that, say i made a domain called and i want the server to load into /home/me/public_html. how can i do this?

    please give me an idea folks.
  2. logicsupport

    logicsupport Well-Known Member

    Jun 5, 2007
    Likes Received:
    Trophy Points:
    By default, Apache will show the cPanel "Great Success!" page when a domain is pointed to that server . You need to configure the domain . Each domain should have Virtual Host entry under /usr/local/apache/conf/httpd.conf .

    There you can specify
    DocumentRoot /home/me/public_html

    When you access the server IP , it is taking the page located under /usr/local/apache/htdocs/

    You can edit it as required .
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Spiral

    Spiral BANNED

    Jun 24, 2005
    Likes Received:
    Trophy Points:
    It sounds to me that you are a server newbie, so do forgive me if I over simplify but I'll try to make concepts as easy as possible to understand to most regular humans. ;)

    When you first setup your server, there are NO web hosting accounts setup on it!

    You see the Cpanel "Great Success" default page because you have not setup any web hosting accounts or are trying to directly connect to the server by IP address instead of using your domain name. You should have no need to alter or change the default page but should you have a desire to do so, it is located at /usr/local/apache/htdocs/ on your server.

    For your actual web content, you will first need to login to WHM (http://(your server's IP):2086/) and create a new web hosting account using whatever domain name you control and then you will have a new login to use to manage your web site with it's own special area setup to store those files.

    Once you create a new hosting account, you will only need to login using the username and password you setup for the new hosting account via FTP or Cpanel (http://(your server's IP):2082/) and you should be able to upload files to the new hosting account.

    Files are physically located on the server under /home/(login name)/public_html

    When you connect to your hosting account for the first time using FTP, you will be in the wrong directory to upload your files by default and you will need to change to the "/public_html" folder (or "www" -- same thing) before you can upload any of your web hosting files.

    Don't forget to update the domain at the domain registrar to use your server's DNS servers OR otherwise point the domain to your server's IP address else you won't be able to connect using the domain name because it won't point to your server. Incidentally it can take up to 72 hours for newly pointed domains to start working with a new server.

    Not to change subjects but if you just got a VPS server and you don't know how to manage or upload web sites, I would presume (probably correctly) that you have no idea how to setup proper security on your server or do any of the initial preparations that are normally required when launching new servers such as fixing all the library files and missing prerequisite applications and drivers, and updating the system core files and related and for your information.

    Of these, I would be most concerned with security as the last thing you want is to have someone hack the server and you not know how to deal with that.

    A properly configured server will generally take several hours to configure, update, lock down and address all the areas that need to be addressed.

    Now regarding all of the later above, I can certainly help you with that as well as a fair number of the "regulars" around here so you are definitely in the right place as far as that is concerned. What I would not expect is to see any help from your server provider though. Most server providers don't really do anything beyond the blanket insecure and outdated loaded default server image and the few that add service to these items for an extra charge generally still don't address all the areas that should be addressed with very few exceptions and ironically those few I would consider "exceptions" to the rule are also regulars here as well so like I said, you came to the right place!

    If you do need one on one help with what you asked above or any of the things I said, please do private message me and I'll do my best to guide you and give you a hand with all those things and incidentally if it isn't apparent from any of my posts on here, I am not new to web servers. In fact, I've been a professional unix system administrator, programmer, and server security consultant for more than 33 years and have been specializing with Cpanel servers for about 6 years.
    #3 Spiral, Aug 28, 2009
    Last edited: Aug 28, 2009

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice