Skip to main content

Getting PHP_AUTH_* on EA4

Comments

2 comments

  • cPanelMichael
    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.
    0
  • toyama
    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 RewriteEngine on RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]
    Changed php code to use REDIRECT_REMOTE_USER from PHP_AUTH_USER and PHP_AUTH_PW. Thank you.
    0

Please sign in to leave a comment.