Results 1 to 7 of 7

Thread: OSCommerce Installation

  1. #1

    Default OSCommerce Installation

    I just installed OSCommerce through Fantastico. When I clicked on the access link they gave me, I got this message:

    Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.
    But I found a php.ini file, and the register_globals says it's "ON" -- I couldn't find the .htaccess file. And, the php.ini file I found is in my public directory, I couldn't find one in the shopping cart folder. I'm I looking at the wrong one?

    Thanks,
    Caat

  2. #2
    Join Date
    Feb 2007
    Location
    http://www.bluehostreview.org
    Posts
    1,131

    Default

    if you not doing redirection before.. then .htaccess will not necessary be there.

    and for the installation.. it will be at the public_html
    make sure the php.ini is in here.
    make sure this line is here...
    "register_globals = On"

    and redo the installtion.
    Charles Gan
    www.bluehostreview.org : Bluehost reviews hosted at bluehost

  3. #3
    Join Date
    May 2007
    Posts
    1

    Default Same problem

    I'm, having the same problem as BigCaat.

    I installed OSCommerce, went to my site and get the same error message:

    "Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory."

    I have checked my php.ini file as well as my .htaccess files (again both levels) and the register_globals is set to "ON".

    Any help would be greatly appreciated.

  4. #4
    Join Date
    Feb 2006
    Location
    UK
    Posts
    160

    Default

    To run with register_globals on, copy php.ini into your catalog and admin folders. However, it is better practice to have register_globals off... you need to apply this modification... http://www.oscommerce.com/community/contributions,2097

  5. #5
    Join Date
    Feb 2007
    Location
    http://www.bluehostreview.org
    Posts
    1,131

    Default

    ok... i need to point you guys to a good installation guide that i used before.
    http://www.siteground.com/tutorials/...stallation.htm
    Charles Gan
    www.bluehostreview.org : Bluehost reviews hosted at bluehost

  6. #6
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    4,951

    Default

    You would do better to apply the patch that allows it to work with register globals off rather than turn register globals on. Turning on register globals makes it much easier for someone to break into your system. That it has been so many years and no one has applied the half dozen line patch as a permanent fix into OS Commerce is a clear demonstration that the writers don't care about security.

  7. #7
    Join Date
    Jun 2006
    Posts
    4

    Default

    Thanks for the advice.. I applied the patch and all working well and now more secure.

    Cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •