From: James E. F. <jf...@ac...> - 2002-03-21 18:41:46
|
Try setting: 'auth_design' => FALSE, in your phpESP.ini. While you are at it you will probably have to set: 'auth_response' => FALSE, too. Please let me know if you encoounter anything broken with these off -- I haven't tested everything recently with them off. -James [ By the way, what mail agent do you use? It seems to do strange things to newlines. ] On Thu, 21 Mar 2002, Brian Hulse wrote: > WOW! Thanks for the quick response. The errorlog entry looks like this: > > [Thu Mar 21 09:04:26 2002] [error] [client 63.253.208.58] malformed > header from script. Bad header=HTTP/1.0 401 Unauthorized: > /www/x/xuser/htdocs/phpESP.php > > (I renamed the /phpESP/admin/index.php to phpESP.php.) > > Then I found this quote in the PHP Manual, Chapter 17 > "The HTTP Authentication hooks in PHP are only available when it is > running as an Apache module and is hence not available in the CGI > version." > > Unfortunately, this applies to me. Is it possible to use phpESP without > these hooks? I realize this limits my control, but could I use .htaccess > to restrict access to the admin files? > > You may also want to put this into the README as part of the > PREREQUISITES: section. > > --- On Thu 03/21, James E. Flemer wrote: > > > Could you please post the text message you get with the 500 > > error? Also set DEBUG => TRUE in your phpESP.ini, and see > > if it gives any more information. And if you have access to > > the httpd "error-log" please take a look at it and see if > > there is any more information there. > > > > If the 500 error is from Apache directly, then it may be > > a few things (check matched quotes etc where you edited > > files). If it is a 500 generated by phpESP it is probably a > > database issue, and DEBUG might tell you more (oh -- that > > feature might not be in v1.3, you could try the CVS > > version). > > > > -James > > > > On Thu, 21 Mar 2002, Brian Hulse wrote: > > > > > This is a new install, and all appears to be OK (e.g. path edits, > > > file > > > locations, db table creation) except that I get a 500 error when > > > accessing the /admin/manage.php. If I comment out the following > > > lines, I > > > can see the page, but no login, of course. I am on a shared (Linux) > > > host > > > running PHP 4.1.2 Suggestions? What other information would help? > > > (Can't > > > get to the errorlog right now, but will grab it if that would help.) > > > > > > // if(!manage_auth( > > > // XADDSLASHES(@$HTTP_SERVER_VARS['PHP_AUTH_USER']), > > > // XADDSLASHES(@$HTTP_SERVER_VARS['PHP_AUTH_PW']))) > > > // exit; > > > > > > TIA, > > > Brian |