Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

getenv() issue

Discussion in 'General Discussion' started by KarlP818, Sep 21, 2005.

  1. KarlP818

    KarlP818 Member

    Jun 21, 2005
    Likes Received:
    Trophy Points:
    Recently one of our server had another strange problem, of sorts. We use osC as our main shopping cart, but today all of a sudden the images wouldn't show up at all. The text was all there, but not the images. For those of you who know about osC, we further investigated the problem and found that the HTTPS_* variables were not set, but that was ok because these sites didn't have an SSL certificate installed. When we put into the HTTPS url constant, the site started working again.

    I went to try and find out why this was happening, and eventually found the spot where osC decides to use either the HTTPS or HTTP url. It looks something like

    if (getenv('HTTPS') == "on")
    When i accessed the site through (note http, not https), the HTTPS environ variable was set to on. Why could this be happening?
  2. simplybe

    simplybe Well-Known Member

    Nov 29, 2002
    Likes Received:
    Trophy Points:
    same problem here , not found a solution yet. Been through the config and everything seems fine.
    It only happens when cpanel restarts apache, if you manually restart apache through ssh or whm it's fine.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice