LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-16-2012, 12:55 PM   #1
abhishekgit
Member
 
Registered: Jan 2012
Location: India
Distribution: Ubuntu, Gentoo, Fedora, Rhel5,openSUSE
Posts: 165

Rep: Reputation: 12
Is it the PATH variable that stores the paths of all the linux commands?


Hello everyone,
I have setup apache web server in mu SUSE linux. It is working well. The problem is, I have to type the complete path name on the executable httpd to get it running. If i just run httpd, It shows command not found. So is it the path variable where i can make changes? If so, How to do it? I want to just run httpd, and get it running. Kindly help. Thank you.



Regards...
 
Old 08-16-2012, 01:12 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,628

Rep: Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568
Warning. I will be rude and maybe make you angry. And you certainly will not find this post helpful.

Anyway, here it goes:

1) If you don't know the answer, you shouldn't run httpd, as you put your system at risk.
2) Instead of making distro hopping, you should learn the basis of linux.
3) Go to http://tldp.org and begin to read.

Last edited by Didier Spaier; 08-16-2012 at 01:15 PM.
 
Old 08-16-2012, 01:14 PM   #3
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
Hope this is what you are looking for.
I installed xfce by source and all of it went into /usr/local and I could not run 'startxfce4'.
Solution: Soft linked the startxfce4 to /usr/bin with 'ln -s /usr/local/bin/startxfce4 /usr/bin/startxfce4'. Worked.

Oops Didier Spaier posted right when I was posting. You might want to listen to him a lot more attentively.

Last edited by honeybadger; 08-16-2012 at 01:17 PM.
 
Old 08-16-2012, 02:00 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,094

Rep: Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381
Quote:
Originally Posted by abhishekgit View Post
Hello everyone,
I have setup apache web server in mu SUSE linux. It is working well. The problem is, I have to type the complete path name on the executable httpd to get it running. If i just run httpd, It shows command not found. So is it the path variable where i can make changes? If so, How to do it? I want to just run httpd, and get it running. Kindly help. Thank you.

Regards...
I agree with Dider, but will expand a bit.

You don't say what version of SuSE you've installed, or what version of Apache, and how you installed it. And unless you've installed Apache from source (which you shouldn't have to do, unless you have some VERY custom needs), you start it like you do any other service, through an init script, usually "/etc/init.d/apache2 start", or similar. If you want to modify your path variable, change it in your .profile, .bashrc, or in your /etc/profile file (which affects your whole system).

And do you read the replies in your other threads? Seems a bit familiar...and Google will even be able to answer simple questions like this.
https://www.linuxquestions.org/quest...-a-4175421248/
 
Old 08-16-2012, 09:52 PM   #5
suttiwit
Member
 
Registered: Aug 2012
Location: Chiang Mai, Thailand
Distribution: Kubuntu 12.10 x86_64
Posts: 192
Blog Entries: 2

Rep: Reputation: 22
As far as i know.. Yes.
 
Old 08-17-2012, 10:00 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,094

Rep: Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381
Quote:
Originally Posted by suttiwit View Post
As far as i know.. Yes.
How does this relate to this thread???
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] How do I add paths to the PATH variable tristein Linux - Newbie 4 07-06-2012 04:40 PM
[SOLVED] Messed Up PATH Variable, Unable to use commands.... rbigelow Linux - Newbie 9 01-12-2011 03:40 PM
[SOLVED] My PATH variable was changed accidently and now I cant find any commands on my termin anushya.k.kutty Linux - Newbie 12 04-15-2010 09:20 AM
Create a custom environment variable that stores hostname Zebe Linux - General 5 09-03-2008 04:14 PM
How to add new paths to $PATH wrapster Solaris / OpenSolaris 4 06-01-2008 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:53 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration