$_SERVER['PHP_AUTH_USER'] is empty

前端 未结 2 1554
轮回少年
轮回少年 2020-12-19 06:30

I tried to update the php version of my VPS but it didn\'t work and my provider didn\'t help me well, so i downgrade it to the previous version.

I am now working wi

2条回答
  •  青春惊慌失措
    2020-12-19 07:03

    I finally found the answer thanks to 'mbinette'.

    In my PHP configuration, the handler of PHP 5 was CGI, and this type of authentication doesn't work with PHP CGI. So i changed it to suPHP (which is supposed to be the default one on APACHE).

    Find here a post explaining a way to use CGI and PHP_AUTH, but i tried and it wasn't working.

    Find here some explanations about php handlers

提交回复
热议问题