![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: problems with basic authentication .htpasswd called from php exec()
From: Gordon Burditt <gordonb.z3f9y@burditt.org>
Date: Wed Jul 13 2005 - 04:22:01 CEST
>I invoked htpasswd by using the exec() function in PHP like this:
Some warnings here:
1) If safe mode is on, you only get to run stuff out of a specific
2) This command gets passed to the shell, and as such, wildcards
Try:
3) What is the current working directory when htpasswd is executed?
4) Are you sure you have permissions on htpasswd (the command) and all
>when the same thing is entered at the command line:
Are you running as the same user that Apache runs as? If not, try
>Do you think my problem here is the 777 mod on the .htpasswd file? I
No, the 777 is a reason why Apache might refuse to use it, not why
>figured I'd open it all the way for testing purposes, and lock it down
Gordon L. Burditt
|