LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 12-15-2005, 01:05 PM   #1
turalo
Member
 
Registered: Sep 2005
Location: NL
Distribution: linux, windows,
Posts: 115

Rep: Reputation: 19
this problem with command oooo, please help.


Hy guys, this problem making me realy sick now, I cant use any normal command, when I type in the command it says : command not found, firt it was only thing like ifconfig or ifconfig -a , and I was thinking that maybe is something with the ifconfig, but now I just installed Apache 2.2 everything wass ok ./configure, make, make install everything went good, now I want to start my apache /usr/sbin/apachectl -k start , nothing works or if I do stop , nothing, it just comes up with " command not found"
:
[root@Vigor31 sbin]# clear

[root@Vigor31 sbin]# locate apachectl
/usr/share/man/man8/apachectl.8.gz
/usr/sbin/apachectl
/var/www/manual/programs/apachectl.html.ko.euc-kr
/var/www/manual/programs/apachectl.html
/var/www/manual/programs/apachectl.html.en
[root@Vigor31 sbin]# apachectl -k start
bash: apachectl: command not found
[root@Vigor31 sbin]# ls
accept

Im logged on as root, please help me, this is very strange but some commands like "who" "last" "df" are working, but others not.
I have Fedora core 4.
 
Old 12-15-2005, 01:20 PM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
The most obvious showstopper is PATH being wrong. Try doing
Code:
# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
If your result deviates (esp. if a folder is missing and you try to run programs that are in that folder), remedy it---for instance by modifying your ~/.bashrc
Code:
# this is /root/.bashrc
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
hth --Jonas
 
Old 12-15-2005, 04:44 PM   #3
turalo
Member
 
Registered: Sep 2005
Location: NL
Distribution: linux, windows,
Posts: 115

Original Poster
Rep: Reputation: 19
mmmmm, strange, look this problem is very strange problem, but I dont think that it has something to do with what you say.
 
Old 12-15-2005, 05:17 PM   #4
dmartins
Member
 
Registered: Oct 2005
Location: Ontario, Canada
Distribution: Arch, Gentoo
Posts: 98

Rep: Reputation: 15
try:

which apachectl

that should tell you the location of it. If it doesn't then the file either isn't in your PATH or isn't marked as executable
 
Old 12-15-2005, 05:33 PM   #5
turalo
Member
 
Registered: Sep 2005
Location: NL
Distribution: linux, windows,
Posts: 115

Original Poster
Rep: Reputation: 19
Question no no

I know the path, its in sbin, and the file is there, and the instalation went well, everything is ok, but it just saying that command not found, when is the thing that you mean, than I will get some error, like : filen not foun, of not acces deniyd.
 
Old 12-16-2005, 01:10 PM   #6
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
This problem seams to be related to all the other "command not found" problems you've had. As a result I'm closing this thread. Please refrain from opening multiple threads on the same topic in the future.
 
  


Closed 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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem using command fdisk -l ? AkshatBhandari Linux - Newbie 2 03-17-2005 12:36 PM
command problem vickr1z Linux - Newbie 3 09-06-2004 12:43 PM
problem when use command [./configure] vanhelsing Linux - Software 3 06-14-2004 04:44 PM
Command not found problem rudon Linux - Newbie 3 04-16-2003 09:09 PM
rpm command problem lf412 Linux - Newbie 4 02-26-2003 08:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration