The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Command not found BigTool4u2 UNIX for Dummies Questions & Answers 2 03-07-2008 11:40 PM
Command not found manna UNIX for Dummies Questions & Answers 20 01-10-2008 08:29 AM
cc command not found mishra_sk_in UNIX for Dummies Questions & Answers 4 08-14-2007 02:00 AM
how can i check in csh if command found or not found ? umen Shell Programming and Scripting 2 03-03-2007 04:38 PM
xlf: command not found!!!! mzzt AIX 2 01-05-2006 02:19 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 03-10-2008
click007's Avatar
Registered User
 

Join Date: Jun 2007
Posts: 12
htpasswd command not found

dear unix,

need ur help, i have installed apache n apache is working... but i cant use htpasswd , the error said command not found. for web authentucation...

thanks for any help
Reply With Quote
Forum Sponsor
  #2  
Old 03-11-2008
Registered User
 

Join Date: Mar 2008
Location: /bin/sh
Posts: 352
Smile

Few things that you need to check.

1)Check if Apache is really running.
"ps -ef | grep 'apache'"

2)Check if the executable for htpasswd exists on the system
"whereis htpasswd"
htpasswd is generally found in /usr/bin/htpasswd.

3)If you are not a root user, check if you have proper permissions.Generally the permissions are 755.

Hope this helps!
nua7
Reply With Quote
  #3  
Old 03-11-2008
click007's Avatar
Registered User
 

Join Date: Jun 2007
Posts: 12
Quote:
Originally Posted by nua7 View Post
Few things that you need to check.

1)Check if Apache is really running.
"ps -ef | grep 'apache'"

2)Check if the executable for htpasswd exists on the system
"whereis htpasswd"
htpasswd is generally found in /usr/bin/htpasswd.

3)If you are not a root user, check if you have proper permissions.Generally the permissions are 755.

Hope this helps!
nua7
thanks for ur help
1. ps -ef|grep apache
root 3420 1 0 Mar11 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
daemon 3421 3420 0 Mar11 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
daemon 3422 3420 0 Mar11 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
daemon 3423 3420 0 Mar11 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
daemon 3424 3420 0 Mar11 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
daemon 3425 3420 0 Mar11 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
root 3526 3370 0 00:01 pts/1 00:00:00 grep apache

2.whereis htpasswd
htpasswd:
i dont see file at usr/bin/

3. i m a root user

plz help
Reply With Quote
  #4  
Old 03-11-2008
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
# ls -l /usr/local/apache2/bin/htpasswd*
# PATH=${PATH}:/usr/local/apache2/bin export PATH
# which htpasswd

As it's apache2, you may find that you want "htpasswd2" instead of "htpasswd".

Cheers,
ZB
Reply With Quote
  #5  
Old 03-11-2008
click007's Avatar
Registered User
 

Join Date: Jun 2007
Posts: 12
thanks all,
now i got it
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:25 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0