From: Brian H. <bri...@ex...> - 2002-03-21 18:30:20
|
WOW! Thanks for the quick response. The errorlog entry looks like this:<br /> <br /> <br /> <br /> [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<br /> <br /> <br /> <br /> (I renamed the /phpESP/admin/index.php to phpESP.php.) <br /> <br /> <br /> <br /> <br /> Then I found this quote in the PHP Manual, Chapter 17 <br /> "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." <br /> <br /><br /> <br /> 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? <br /> <br /><br /> <br /> You may also want to put this into the README as part of the PREREQUISITES: section. <br /> <br /> <br /> <br /> <br /> --- On Thu 03/21, James E. Flemer <jf...@ac...> wrote:<br /> <br /> > Could you please post the text message you get with the 500<br /> <br /> > error? Also set DEBUG => TRUE in your phpESP.ini, and see<br /> <br /> > if it gives any more information. And if you have access to<br /> <br /> > the httpd "error-log" please take a look at it and see if<br /> <br /> > there is any more information there.<br /> <br /> > <br /> <br /> > If the 500 error is from Apache directly, then it may be<br /> <br /> > a few things (check matched quotes etc where you edited<br /> <br /> > files). If it is a 500 generated by phpESP it is probably a<br /> <br /> > database issue, and DEBUG might tell you more (oh -- that<br /> <br /> > feature might not be in v1.3, you could try the CVS<br /> <br /> > version).<br /> <br /> > <br /> <br /> > -James<br /> <br /> > <br /> <br /> > On Thu, 21 Mar 2002, Brian Hulse wrote:<br /> <br /> > <br /> <br /> > > This is a new install, and all appears to be OK (e.g. path edits,<br /> <br /> > file<br /> <br /> > > locations, db table creation) except that I get a 500 error when<br /> <br /> > > accessing the /admin/manage.php. If I comment out the following<br /> <br /> > lines, I<br /> <br /> > > can see the page, but no login, of course. I am on a shared (Linux)<br /> <br /> > host<br /> <br /> > > running PHP 4.1.2 Suggestions? What other information would help?<br /> <br /> > (Can't<br /> <br /> > > get to the errorlog right now, but will grab it if that would help.)<br /> <br /> > ><br /> <br /> > > // if(!manage_auth(<br /> <br /> > > // XADDSLASHES(@$HTTP_SERVER_VARS['PHP_AUTH_USER']),<br /> <br /> > > // XADDSLASHES(@$HTTP_SERVER_VARS['PHP_AUTH_PW'])))<br /> <br /> > > // exit;<br /> <br /> > ><br /> <br /> > > TIA,<br /> <br /> > > Brian<br /> <br /> > ><br /> <br /> > ><br /> <br /> > ________________________________________________________________________________<br /> <br /> > > _______________________________________________ phpESP-general<br /> <br /> > mailing<br /> <br /> > > list php...@li...<br /> <br /> > > https://lists.sourceforge.net/lists/listinfo/phpesp-general<br /> <br /> > ><br /> <br /> > <br /> <br /> > <br /> <p><p><hr> |
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 |