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!

Getting PHP_AUTH_* on EA4

Discussion in 'EasyApache' started by toyama, Nov 27, 2017.

  1. toyama

    toyama Member

    Joined:
    Jun 17, 2011
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    53
    Hello,

    I have the issue on getting PHP_AUTH_* from $ _ SERVER array object when migrated from EA3 to EA4.
    I attempted the following settings in .htaccess but could not solve the problem.

    or


    Thank you.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

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

    Can you let us know the full steps you are using so we can attempt to reproduce the issue? Also, what PHP handler are you using for the account you are testing this with (e.g. suPHP, DSO, PHP-FPM)?

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

    toyama Member

    Joined:
    Jun 17, 2011
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    53
    Hello,

    Thanks for the reply.

    I select suPHP for PHP Handler.
    I migrated from EA3(Apache2.2 + suPHP + PHP5.6) to EA4(Apache2.4 + suPHP + PHP5.6).

    Can not use PHP_AUTH_ * when using PHP Handler with suPHP on EA4?


    The problem was avoided by modifying the code that used PHP_AUTH_* and .htaccess.

    Add to .htaccess
    Changed php code to use REDIRECT_REMOTE_USER from PHP_AUTH_USER and PHP_AUTH_PW.


    Thank you.
     
    cPanelMichael likes this.
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