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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-16-2003, 11:13 AM
|
#1
|
Member
Registered: Aug 2003
Location: Si
Distribution: SuSE, Slackware
Posts: 37
Rep:
|
starting httpd won't work
I installed RedHat 9 last night and i'm trying to get the apache/php/mysql thing to work but no go! when i try to start the httpd like
service httpd start it returns bash: service : command not found !
same with httpd or when i use whereis to find such files it can't find it!
same with apachectl and other stuff!
why where what...???
these are the packages that came with the distro. but if i try to compile it ends with fatal errors like there are none header files needed and i can't even find them.
please explain or point me to the direction with explanation.
I've already read the RedHat 9 documentation. No help.
isn't it supposed to work already if it comes with the distro, how do i find it then and run everything?
|
|
|
08-16-2003, 12:00 PM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Are you running these commands as root? And did you make sure that apache was installed in the default install, or whatever type of install you performed?
|
|
|
08-17-2003, 04:34 AM
|
#3
|
Member
Registered: Aug 2003
Location: Si
Distribution: SuSE, Slackware
Posts: 37
Original Poster
Rep:
|
Yes, I'm running 'em as root and it's all installed (i believe so). Well I didn't run any commands like config stuff after the CD install. Am I supposed to?
It's funny cause most of basic commands won't work and I don't know why. noob! 
|
|
|
08-17-2003, 04:51 AM
|
#4
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
try as root
/etc/init.d/httpd start
|
|
|
08-17-2003, 08:42 AM
|
#5
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
Quote:
It's funny cause most of basic commands won't work and I don't know why.
|
It is possible that the PATH variable is not setup correctly,
post the output of the following command (as root):
|
|
|
08-19-2003, 04:42 AM
|
#6
|
Member
Registered: Aug 2003
Location: Si
Distribution: SuSE, Slackware
Posts: 37
Original Poster
Rep:
|
Looking_Lost: As root i typed the command and got this:
/etc/init.d/httpd start
Zaganjam httpd: httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Mathieu: this is what it printed:
# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/marko/bin
Is it causing me problems mostly because I installed RH9 as workstation and not server? Maybe I'll try and install it again as server and then I'll see. How is with other aplications if I install as server? All I need is KDevelop, Apache+PHP+MySQL/PostgreSQL, Quanta+, Blender3D, internet stuff (http, ftp) and maybe Xine.
I'll be away from home for a couple of weeks so I'll post an answer what happened. Cheers and thanks for your help.-
|
|
|
08-19-2003, 08:31 AM
|
#7
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
Well you've got it going then, does it show the deault page if you point you browser to 127.0.0.1, if it don't you have to change a setting in httpd.conf relating to your server name or put in your ip address,
or add the name you're using for your server to /etc/hosts.
Can't be more specific at the moment as I am linux-less for the next few days.
Someone will point you to the specific
|
|
|
08-19-2003, 09:27 AM
|
#8
|
Member
Registered: Aug 2003
Location: Si
Distribution: SuSE, Slackware
Posts: 37
Original Poster
Rep:
|
it does not show the default page. connection to localhost (127.0.0.1) refused! httpd fails to start in the first place. I'll try installing RH9 as server and see what happens. Thanks for your time.
|
|
|
08-19-2003, 12:08 PM
|
#9
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
You need to set the NameVirtualHost option to 127.0.0.1 in httpd.conf
Take a look at the Setting Up Virtual Hosts section in this tutorial.
http://www.e-gineer.com/instructions...on-linux.phtml
As for the service command, you need to be root.
To become root at the command lne, type the following command and enter your root password:
|
|
|
All times are GMT -5. The time now is 12:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|