LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   starting httpd won't work (https://www.linuxquestions.org/questions/linux-newbie-8/starting-httpd-wont-work-82550/)

OceanSurf 08-16-2003 11:13 AM

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. :mad:

isn't it supposed to work already if it comes with the distro, how do i find it then and run everything?

trickykid 08-16-2003 12:00 PM

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?

OceanSurf 08-17-2003 04:34 AM

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!:(

Looking_Lost 08-17-2003 04:51 AM

try as root

/etc/init.d/httpd start

Mathieu 08-17-2003 08:42 AM

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):
Code:

echo $PATH

OceanSurf 08-19-2003 04:42 AM

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.-

Looking_Lost 08-19-2003 08:31 AM

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

OceanSurf 08-19-2003 09:27 AM

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.

Mathieu 08-19-2003 12:08 PM

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:
Code:

su -


All times are GMT -5. The time now is 05:31 PM.