FATAL ERROR: register_globals is disabled in php.ini, please enable it!

goldclub

Member
Nov 20, 2005
7
0
151
oscart login gives me this error FATAL ERROR: register_globals is disabled in php.ini, please enable it! What in the root cpanel do I go to to enable register_globals. Please be detailed!
Thanks Tony
 

aby

Well-Known Member
May 31, 2005
638
0
166
India
goldclub said:
oscart login gives me this error FATAL ERROR: register_globals is disabled in php.ini, please enable it! What in the root cpanel do I go to to enable register_globals. Please be detailed!
Thanks Tony
ssh to the server ...
edit the php.ini and change it to On...

Very simple
 

DigitalSurgeon

Well-Known Member
Aug 13, 2005
134
1
166
If you donot have access to the php.ini, then you can do it for your account by adding the following line in the .htaccess file:

php_flag register_globals on

If you want it for some specific application in some folder then do not put this in the .htaccess placed in public_html folder rather create a .htaccess file in that specific folder and add above line in it.
 

WCrooks

Active Member
Aug 29, 2003
32
0
156
Canada
It's worth noting that the register_globals flag, when set in .htaccess, will not affect it. Setting it will do nothing.
 

openmixs

Member
Jan 22, 2006
15
0
151
help

i have this same problem as well
i need to change it to on
i am ok with ssh but not that good
will some 1 walk me through it step by step
i would be in your debt
thanks if you can help me ;)
 

Murtaza_t

Well-Known Member
Jan 24, 2005
474
0
166
Earth
cPanel Access Level
Website Owner
openmixs said:
i have this same problem as well
i need to change it to on
i am ok with ssh but not that good
will some 1 walk me through it step by step
i would be in your debt
thanks if you can help me ;)
Login as root :

]# pico /usr/lib/php.ini OR nano /usr/lib/php.ini
Press clt + w and type register_globals
change it to On to look like
register_globals = On
Press Clt + o to save
Press Clt + x to exit
]# /etc/init.d/httpd restart