Problem with php script/form after transfer through WHM

pingo

Well-Known Member
Nov 16, 2002
428
0
166
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:
 

FWC

Well-Known Member
May 13, 2002
349
0
316
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:
 

andyf

Well-Known Member
Jan 7, 2002
249
0
316
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:
 

pingo

Well-Known Member
Nov 16, 2002
428
0
166
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: