The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > 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-08-2008 02:40 AM
Command not found manna UNIX for Dummies Questions & Answers 20 01-10-2008 11:29 AM
cc command not found mishra_sk_in UNIX for Dummies Questions & Answers 4 08-14-2007 06:00 AM
how can i check in csh if command found or not found ? umen Shell Programming and Scripting 2 03-03-2007 07:38 PM
xlf: command not found!!!! mzzt AIX 2 01-05-2006 05:19 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-11-2008
click007's Avatar
click007 click007 is offline
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
  #2 (permalink)  
Old 03-11-2008
nua7 nua7 is offline
Registered User
  
 

Join Date: Mar 2008
Location: /bin/sh
Posts: 353
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
  #3 (permalink)  
Old 03-11-2008
click007's Avatar
click007 click007 is offline
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
  #4 (permalink)  
Old 03-11-2008
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
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
  #5 (permalink)  
Old 03-12-2008
click007's Avatar
click007 click007 is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 12
thanks all,
now i got it
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0