The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    14,450
    Likes Received:
    195
    Trophy Points:
    63
    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.
     
Loading...

Share This Page