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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Getting PHP_AUTH_* on EA4

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

  1. toyama

    toyama Member

    Joined:
    Jun 17, 2011
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    51
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,455
    Likes Received:
    1,608
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  3. toyama

    toyama Member

    Joined:
    Jun 17, 2011
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    51
    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