I am setting up webgui, and get the following error in my browser when
opening the site.

Can't locate object method "register_cleanup" via package
"Apache::RequestRec" at /usr/lib/perl5/5.8.5/CGI.pm line 347.

I found a forum that discussed the problem and added the following to
httpd.conf, per their suggestion.

PerlPostReadRequestHandler 'sub { Apache->request(shift) }'

Now, error_log produces the following error:

[Thu Dec 29 18:01:25 2005] [error] [client 192.168.0.24] Global $r object
is not available. Set:\n\tPerlOptions +GlobalRequest\nin httpd.conf at
(eval 187) line 1.\n


What would be the fix on this?