View Full Version : Installed Joomla - Two security msgs
newcomer
10-6-06, 04:00 AM
Hi All,
I just installed Joomla content management for one of my friends and got two messages in red. The site is working ok but I'm just not sure about these messages. Please help me if I need to take any action in order to resolve these two messages.
security check
* PHP magic_quotes_gpc setting is `OFF` instead of `ON`
* Joomla! RG_EMULATION setting is `ON` instead of `OFF` in file globals.php
* PHP magic_quotes_gpc setting is `OFF` instead of `ON`
* Joomla! RG_EMULATION setting is `ON` instead of `OFF` in file globals.php
These are setting in your php.ini file.
To find your php.ini file login to ops and go to Main/Web Site Management/CGI Management Then click on PHP Scripting.
You should see a copy of your main php.ini file. You can copy and paste it to notepad and search for those 2 settings indicated in the warnings and change them as the warnings recommends.
CampbJJ
10-22-06, 07:08 PM
How does one edit the globals.php file? Isn't it there that I'm supposed to set define( 'RG_EMULATION', 0 );
EDIT:
Never mind...I found globals.php in the Joomla install directory and could change the setting in there.
snowmaker
10-22-06, 07:34 PM
How does one edit the globals.php file?
That file is probably in the main Joomla directory, or a subdirectory of the main Joomla directory. To edit the file, download it thru FTP to your computer, then upload it the same spot after editing it with Notepad or another text editor.
jftitan
10-26-06, 08:51 PM
I hate to ask this, but I don't get it!
I looked through the globals.php and this is what I see;
if (RG_EMULATION == 0 ) {
// force register_globals = off
unregisterGlobals();
} else if (ini_get('register_globals') == 0) {
// php.ini has register_globals = off and emulate = on
registerGlobals();
} else {
// php.ini has register_globals = on and emulate = on
To me (if (RG_EMULATION == 0 )) == 0 means off right? So why is this still allowing this to be on? Am I just configuring something wrong, or am I needing to look elsewhere in this globals.php file?
edit:
I just looked through my php.ini, and register_globals = Off
So the issue is not the php.ini, and just like the error, it says its in the globals.php
kutatishh
1-10-07, 06:24 PM
You just change the line which says:
define( 'RG_EMULATION', 0 );
to :
define( 'RG_EMULATION', 1);
I should have posted an update when I discovered that all I had to do was just change 0 to a 1. I long forgot about this post, because through research through other forums, I found the same answer.
Thanks for informing me.
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.