The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Server update/changed causing issues in oscommerce

Discussion in 'cPanel Developers' started by t9clkclnr, Apr 6, 2006.

  1. t9clkclnr

    t9clkclnr Well-Known Member

    Joined:
    Jun 11, 2004
    Messages:
    254
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Southern California
    I hate to post this thread here, but the oscommerce forums are not user friendly.

    Some type of change on my server recently is causing problems with oscommerce installations new and old.

    products cannot be added to the shopping carts for all oscommerce installations on my server.
    I have some instllations 2 years old, and new ones as recent as an hour prior to this post.

    not sure what could be causing this. I compared my php.ini & httpd.conf files with another working server. Can't find anything remotely similiar.

    anyone experience anything close or know where to look?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Check /usr/lib/php.ini and make sure that:

    register_globals = On

    If it's off, change it to On and then restart httpd:

    /scripts/restartsrv_httpd
     
  3. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    It is not good idea to switch register_globals on. According to The Php Group, chapter 29,
    Unless the Php code is very well written/coded, there are security risks. On our servers, we switched register_globals OFF, by default.

    For more information about register_globals:

    - Chapter 29. Using Register Globals
    http://us2.php.net/register_globals

    - Chapter 62. Miscellaneous Questions
    http://us2.php.net/manual/en/faq.misc.php#faq.misc.registerglobals
     
  4. celliott

    celliott Well-Known Member

    Joined:
    Jan 2, 2006
    Messages:
    460
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    United Kingdom
    Is it not a security risk to have register_globals on server-wide?
     
  5. t9clkclnr

    t9clkclnr Well-Known Member

    Joined:
    Jun 11, 2004
    Messages:
    254
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Southern California
    yes it is a security risk, however

    I believe oscommerce requires it.
    Chirpy, I did check my instances of php.ini and it is set to on.. hush hush, mums the word :).

    However it did not help with my issue. The cart is still not accepting product. Bizarre. Any other ideas that may help me in this matter?

    I seriously doubt it has to do with the oscommerce package. (not certain though).

    Are there any apache configs that could cause this?
     
  6. t9clkclnr

    t9clkclnr Well-Known Member

    Joined:
    Jun 11, 2004
    Messages:
    254
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Southern California
    resolved.

    Ok, figured out the problem. For some reason the existing and new installations of osCommerce don't work well with the configure.php file. something globally had changed during an update.

    I have to tweak the configure.php file a bit and removed the calls to the global variables and made them static and it worked.

    I had to make these changes to 6 e-commerce sites on my server. They all work now.
     
Loading...

Share This Page