Menu

Apache Server Error

Anonymous
2001-11-21
2012-10-11
  • Anonymous

    Anonymous - 2001-11-21

    Hi!
    I've got Problems with the Apache Server. I can see all the pages but login and file upload is impossible. I always get an internal server error. Does anybody know this problem? What functions are called causing this (security??) problem?
    Hope somebody can help me!
    Holger

     
    • Simon de Kraa

      Simon de Kraa - 2001-12-30
       
    • Simon de Kraa

      Simon de Kraa - 2001-12-31

      I think I have found the problem. The internal server error is generated on the following line in lib/wikiuser.php:

      $request->setStatus("HTTP/1.0 401 Unauthorized");

      If the server API is CGI this won't work.

      Alternatives anyone?

      From the docs:

      One additional note about PHP: if PHP is installed as an Apache module on the Linux/UNIX platforms, there are additional global variables available to your PHP script:

      $PHP_AUTH_USER -- Authenticated User name
      $PHP_AUTH_PW -- Authenticated Password
      $PHP_AUTH_TYPE -- Authentication Type

      Additionally, your PHP program can force Apache to prompt the user for a username and password with the following PHP commands:

      header('WWW-Authenticate: Basic realm="My Private Stuff"');
      header('HTTP/1.0 401 Unauthorized');
      echo 'Authorization Required.';

      From then on, your application logic can decide how to respond to the user. Note that on the Windows platform, PHP is installed as a CGI, and these features are therefore not available.

       
    • Simon de Kraa

      Simon de Kraa - 2001-12-31

      Just to let you know.

      I installed 1.3.2 on Linux where PHP is configured as an Apache module: no problems at all.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.