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.

How to setup root web? "Executing in an invalid environment"

Discussion in 'General Discussion' started by raindog308, Apr 17, 2012.

  1. raindog308

    raindog308 Member

    Joined:
    Apr 16, 2012
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    My VPS provider installed WHM for me. DNS was autocreated for my domain (let's call it example.com).

    I looked at www.example.com yesterday and got the default cpanel page (cgi-sys/defaultwebpage.cgi)

    Today, when I go to www.example.com, I see "Executing in an invalid environment for the supplied user".

    So, apparently something changed overnight in the nightly scripts?

    I do see example.com in /etc/valiases (0-byte file, owned by root:root)

    Do I need to create an account for example.com? I was under the impression that /usr/local/apache/htdocs would be used...or does WHM not distinguish between the "root" user and any other account setup?

    I'm also curious what script might have done the cleanup and what it did...always like to learn.

    Thanks!
     
  2. storminternet

    storminternet Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    462
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    You need to create an account for your domain from WHM. Every domains has seperate path to upload it's data files. Conventionally it would be /home/username/public_html.

    You can then upload your data through ftp into public_html.
     
  3. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    You need to first remove existing DNS zone for this domain name and then try to create an account from WHM. You can remove DNS zone for this domain name using WHM -> DNS functions -> Remove DNS zone.
     
  4. raindog308

    raindog308 Member

    Joined:
    Apr 16, 2012
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    So I did as thewebhosting explained and all is well.

    But...something I don't understand - root has a public_html directory. Wouldn't that be what the root domain (i.e., my domain) would use? Otherwise, what's the point of root's public_html?
     
Loading...

Share This Page