Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


johnnyriss

Recommended Posts

Posted

Greetings,

 

I've uploaded the Catalog file to my web server. I've changed the permission on the file catalog/includes/configure.php. But when I try to install at "mywebsite".com/catalog/install/ I get the following error:

 

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

 

I've reviewed the other posts that deal with this issue but I don't know if they apply to my case or not. I didn't understand how to apply the patch, even if the contribution DID apply to my case.

 

I don't know how to enable register_globals in php.ini. In fact, I don't know where the file is. I have a phpinfo.php page that states that the php.ini path is etc/php.ini but I still don't know where to find "etc."

 

Don't know if this is making sense or not. Probably not.

 

Any suggestions?

 

Much thanks.

Posted

This may be a tough project for you if you don't understand file structures under Linux. Could you tell us what Linux distro you are using?

 

Tim

Posted
Greetings,

 

I've uploaded the Catalog file to my web server. I've changed the permission on the file catalog/includes/configure.php. But when I try to install at "mywebsite".com/catalog/install/ I get the following error:

 

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

 

I've reviewed the other posts that deal with this issue but I don't know if they apply to my case or not. I didn't understand how to apply the patch, even if the contribution DID apply to my case.

 

I don't know how to enable register_globals in php.ini. In fact, I don't know where the file is. I have a phpinfo.php page that states that the php.ini path is etc/php.ini but I still don't know where to find "etc."

 

Don't know if this is making sense or not. Probably not.

 

Any suggestions?

 

Much thanks.

 

I just found this on page two of these poasts

 

Install this contibution

http://www.oscommerce.com/community/contri...register_global

 

Might help??

Posted

etc/php.ini is a local php.ini file which you should have access to via FTP.

 

Your web root is located at /var/www/html/ and you should be able to locate the 'etc' folder at the 'var' level.

 

Vger

Posted
etc/php.ini is a local php.ini file which you should have access to via FTP.

 

Your web root is located at /var/www/html/ and you should be able to locate the 'etc' folder at the 'var' level.

 

Vger

 

Thanks Vger. Unfortunately, I don't know how to get to the /var level. I'm working with Fetch (On a mac os10.3.9). The lowest(?) level that I can get to is the one that includes: cgi-bin, data, html, logs, pub, and report. (I copied that "catalog" file into "html").

 

Any suggestions how to get to the /var level? Once I do get to the file, I'm to enable, yes?

 

Thanks for your time, effort and patience.

Posted

If this was on a PC it'd be easy, as you'd just click to keep going 'up' one level (which is actually going down into the folder structure).

 

I have a Mac OSX here, but I've never used it for FTP'ing, so don't have a clue about Fetch. There is a forum for Mac OSX which I've found useful at http://macosx.com/forums

 

If Fetch is a terminal with a command line interface then you'd type something like cd[space]/var into the command line.

 

Of course, you can always install the Register Globals Patch Files (link below my name), which will allow osCommerce to run with Register Globals set to 'off' in php.ini.

 

Vger

Posted
If this was on a PC it'd be easy, as you'd just click to keep going 'up' one level (which is actually going down into the folder structure).

 

I have a Mac OSX here, but I've never used it for FTP'ing, so don't have a clue about Fetch. There is a forum for Mac OSX which I've found useful at http://macosx.com/forums

 

If Fetch is a terminal with a command line interface then you'd type something like cd[space]/var into the command line.

 

Of course, you can always install the Register Globals Patch Files (link below my name), which will allow osCommerce to run with Register Globals set to 'off' in php.ini.

 

Vger

 

Thanks Vger,

 

I also have a PC with Core FTP. Unfortunately, when I click the "up one level" button, it doesn't allow me to go "lower" into the folder structure beyond the folder with the html, data, logs, and cgi-bin.

 

Any suggestions on how to dig deeper?

 

Thx so much.

Posted

No suggestions on how to dig deeper. If FTP won't allow you to do that then using an SSH connection with something like Putty won't let you either.

 

You can install the Register Globals Patch Files (link below my name), but if the server is Apache (not Windows) then you can also do it by putting the code below in a .htaccess file in the root of your web.

 

php_flag register_globals on

 

But, honestly, I wouldn't bother. I took another look at your php info file, and the version of php being used (4.3.2) is a joke. If a hacker stumbles across that server - it's toast!

 

Vger

Posted
No suggestions on how to dig deeper. If FTP won't allow you to do that then using an SSH connection with something like Putty won't let you either.

 

You can install the Register Globals Patch Files (link below my name), but if the server is Apache (not Windows) then you can also do it by putting the code below in a .htaccess file in the root of your web.

 

php_flag register_globals on

 

But, honestly, I wouldn't bother. I took another look at your php info file, and the version of php being used (4.3.2) is a joke. If a hacker stumbles across that server - it's toast!

 

Vger

 

Whoa! Hold the phone. Please expand on that issue, if you would. What's toast? My whole osCommerce store would be toast? I have no security? What is compromised? Do I need to request that my host upgrade? What version SHOULD I look for in a host? Help?

 

Any additional knowledge is tremendously appreciated (as is the knowledge you've already shared)!

 

Thanks so much.

 

johnnyriss

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...