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!

HTTP athentication problem with PHP

Discussion in 'Workarounds and Optimization' started by morteza3245, Mar 10, 2017.

  1. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    137
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello

    I want to use HTTP athentication in php but $_SERVER['PHP_AUTH_USER'] is always empty.
    I found this is because of the apache and fast cgi and found a solution for apache with htaccess in this link PHP: HTTP authentication with PHP - Manual

    But still not working, I put sample code from php.net and still not working here is the sample code link
    - Removed -
    cheers.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 morteza3245, Mar 10, 2017
    Last edited by a moderator: Mar 10, 2017
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I've moved this thread over to our "Workarounds and Customizations" forum. However. you're likely to receive more feedback about PHP coding questions on websites such as StackOverflow.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    137
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    i did, but they have not any reply also
    if anybody can help , ill Thanks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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