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!

All Domains pointing to the same directory

Discussion in 'General Discussion' started by dicataldi, Jul 4, 2014.

  1. dicataldi

    dicataldi Registered

    Joined:
    Jul 4, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Rio Claro (São Paulo), Brazil
    cPanel Access Level:
    Root Administrator
    Good day,

    I got a problem and I wonder if anyone can help me please.

    'm Riding my server, the emails are normal however I can not make the site work.

    All sites are falling at the same place and end up getting the 404 error:

    [Fri Jul 04 06:03:54 2014] [error] [client xxx.xxx.xxx.xx] File does not exist: / usr / local / apache / htdocs / index.php

    I noticed that all registered on my server domains point to the same folder on the server "/ usr / local / apache / htdocs /" which should point to your DocumentRoot

    Entering the edition of httpd.config check that
    <VirtualHost> that are all created correctly with their appropriate DocumentRoot

    **** but it does not work could someone help me?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,470
    Likes Received:
    421
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Sites should not be served from that location.

    When you create a Package, and then add an account, it's created in the /home/ directory.
    So for instance that index.php you mention, should be located here:
    /home/username/public_html/index.php

    ..for example.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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