1
anemic
HELP How to fix register_globals/globals variables at dedicated GoDaddy box!
  • 2007/1/12 5:47

  • anemic

  • Just popping in

  • Posts: 36

  • Since: 2006/12/6


Howdy,

I've a working XOOPS site that I am migrating to a dedicated server at GoDaddy. Once I got the files over I see they turn off global variables in their default installation. A number of modules like xcgallery no longer function correctly. I am looking for a server wide solution to this problem where I don't have to hand edit a few hundred files. GoDaddy uses plesk 8.0 to manage the site. It's runing 5.0.4 on Fedora Core 4.

I've tried a number of things to turn this globals on . In /etc/php.ini I added this
register_globals = on

In the vhost.conf file I added these to $xoopsroot and the modules/xcgal directories.

php_admin_value global_variables On
php_value register_globals 1

I have some code I found by googling around that sometime fixes the issue
if (!empty($_GET))
{
extract($_GET);
}
else if (!empty($HTTP_GET_VARS))
{
extract($HTTP_GET_VARS);
}

if (!empty($_POST))
{
extract($_POST);
}
else if (!empty($HTTP_POST_VARS))
{
extract($HTTP_POST_VARS);
}

I have bounced the server a couple of times, stopped and started apache and run the GoDaddy warm apache start fix
/usr/local/psa/admin/bin/websrvmng -a -v.

Phpinfo loaded called from a XOOPS module directory show register_globals on for the local and master value. So the server thinks it's installed..why does references to HTTP_POST_VARS/HTTP_GET_VARS still fail?

Login

Who's Online

214 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 214


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits