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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Same here.
See http://sourceforge.net/forum/forum.php?thread_id=622264&forum_id=18929.
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.
Just to let you know.
I installed 1.3.2 on Linux where PHP is configured as an Apache module: no problems at all.