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.

Problem with php script/form after transfer through WHM

Discussion in 'General Discussion' started by pingo, Aug 4, 2003.

  1. pingo

    pingo Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    430
    Likes Received:
    0
    Trophy Points:
    16
    Does anybody here know why my sign up script suddenly stopped working since the account were transferred with WHMs copy function from one cPanel server to another cPanel server? When clicking the 'Submit' button in the form the following is returned:

    Warning: file(): open_basedir restriction in effect. File(/etc/passwd) is not within the allowed path(s): (/home/noginet:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/username/public_html/signup/index.php on line 379

    Warning: file(/etc/passwd): failed to open stream: Operation not permitted in /home/username/public_html/signup/index.php on line 379

    Warning: Cannot modify header information - headers already sent by (output started at /home/username/public_html/signup/index.php:379) in /home/username/public_html/signup/index.php on line 447


    Thanks
    John

    cPanel.net Support Ticket Number:
     
  2. FWC

    FWC Well-Known Member

    Joined:
    May 13, 2002
    Messages:
    354
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Ontario, Canada
    You either need to turn off the open_basedir tweak or add /etc to the allowed directories in the tweak line in your virtual host entry in httpd.conf.

    cPanel.net Support Ticket Number:
     
  3. andyf

    andyf Well-Known Member

    Joined:
    Jan 7, 2002
    Messages:
    246
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    UK
    I'd say the question is more along the lines of:

    "Why are you trying to open /etc/passwd from your php script?"

    cPanel.net Support Ticket Number:
     
  4. pingo

    pingo Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    430
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for responding :), but it turned out that it were a propagation issue. When it had propagated fully to the new machine the problem stopped.

    John

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page