Re: Why is this not working
| From: | Shawn Reed | Date: | Thu, 17 May 2001 21:48:32 +0000 |
| Subject: | Re: Why is this not working | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-53328@lists.php.net to get a copy of this message | ||
the user that the webserver runs as (usually "apache" or "nobody") must have
write permissions to the file which htpasswd is attempting to write to, or else it won't be
able to make the changes you are attempting to make.
~shawn
YoBro <nospam@brochures.co.nz> wrote in message news:<9e1h4j$8k5$1@toye.p.sourceforge.net>...
> That didn't seem to work.
> I am beginning to pull my hair out now.
>
> ""Tolga "thorr" Orhon"" <thorr@asenacorp.com> wrote in
> message
> news:9e1gjb$u1q$1@toye.p.sourceforge.net...
> > I mean the absolute path for executable.
> >
> > <?php
> > passthru ("/usr/bin/htpasswd -b /users/domain/.htpasswd abc pass");
> > ?>
> >
> > thorr
> >
> > ""YoBro"" <nospam@brochures.co.nz> wrote in message
> > news:9e1gb1$jnn$1@toye.p.sourceforge.net...
> > > My message described the absolute path with the provider I use.
> > >
> > > I am able to download the .htpasswd file from
> > > /users/domain/
> > >
> > > Still not working though.
> > >
> > > ""Tolga "thorr" Orhon"" <thorr@asenacorp.com>
> > > wrote in message
> > > news:9e1fth$vi3$1@toye.p.sourceforge.net...
> > > > May be you need to use absolute path for htpasswd. eg.
> /usr/bin/htpasswd
> > > > Did u check for any error msgs?
> > > >
> > > > thorr
> > > >
> > > > ""YoBro"" <nospam@brochures.co.nz> wrote in message
> > > > news:9e1fcd$pir$1@toye.p.sourceforge.net...
> > > > > After much investigation through many newsgroups and websites, I
> found
> > > out
> > > > > that this is the way you can execute a unix apache command to add a
> > user
> > > > to
> > > > > the htpasswd list with PHP.
> > > > >
> > > > > Problem is, it doesn't add any information to the htpasswd file.
> > > > > Note: The example below is...
> > > > > domain = my user name
> > > > > abc = user name to add to htpasswd list
> > > > > pass = password to add to htpasswd list
> > > > >
> > > > > <?php
> > > > > passthru ("htpasswd -b /users/domain/.htpasswd abc pass");
> > > > > ?>
> > > > >
> > > > > Please Help if you can.
> > > > >
> > > > > Cheers,
> > > > > YoBro
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > PHP General Mailing List (http://www.php.net/)
> > > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > > > > For additional commands, e-mail: php-general-help@lists.php.net
> > > > > To contact the list administrators, e-mail:
> > php-list-admin@lists.php.net
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > > > For additional commands, e-mail: php-general-help@lists.php.net
> > > > To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
> > > >
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > > For additional commands, e-mail: php-general-help@lists.php.net
> > > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>