Operating System - Linux
1832764 Members
3101 Online
110045 Solutions
New Discussion

Hii.. Help me in starting apache

 
rammu
Occasional Contributor

Hii.. Help me in starting apache

Hi. i'm a newbie.. hope u'll help me..
I downloaded apache webserver and i installed it in my machine.. the problem occurs while starting it..the steps involved are

1) ./configure prefix=/usr/local/apache
2) make
3) make install
till these i've no problem.. the problem arises when i run the following command
usr/local/apache/bin/apachectl start
httpd: Could not determine the server's fully qualified domain name, using 192.168.X.XXX for ServerName
how to rectify this problem and make apache start
Thanks in advane
Rammu
4 REPLIES 4
Matti_Kurkela
Honored Contributor

Re: Hii.. Help me in starting apache

You downloaded the source code package for Apache, then compiled and installed it? You deserve an 'A' for effort. You chose the most difficult way to install Apache.

If you want to continue on this path, you would have to read and understand Apache's configuration file at /usr/local/apache/conf/httpd.conf. You'd have to configure it according to your needs.

Almost all Linux distributions have Apache included in their standard packaging (often .rpm or .deb packages, or whatever). These packages are pre-configured for your distribution and save you a lot of work. The pre-packaged Apache might even be configured to start up automatically: you would usually get a functional default web page containing messages like "Welcome to using your new Foobar 2.34 Linux server".

If you're a newbie, I recommend that you ignore your previous installation attempt and use your distribution's package management software to install the distribution's Apache package(s). If you're using Fedora, the package management software is called "yum" (the text version) or "yumex" (the GUI version). If you don't have the GUI version installed, type "yum install yumex" as root.
If you're using Debian, the preferred package management command is "aptitude". Other distributions may have other commands.

MK
Miceee
Occasional Advisor

Re: Hii.. Help me in starting apache

Hi Rammu,

Check for the following..
1) open the /etc/sysconfig/network
and check if you have given the FQDN if not then give so.
2) also check by giving the hostname command, see if it returns the FQDN if not then do change by giving the same command and the FQDN.

and if you are a newbie i would suggest you to use the httpd.conf file rather then downloading a apache from the site.
the path is : /etc/httpd/conf/httpd.conf
try it ...

cheers,
miceee
Vitaly Karasik_1
Honored Contributor

Re: Hii.. Help me in starting apache

can you please send us
- /etc/hosts file
- output of "hostname" command
Alan_152
Honored Contributor

Re: Hii.. Help me in starting apache

Actually, apache seems to be running, though you can confirm this by doing: "ps -ef|grep httpd" . If you get a positive response from this command and still don't get the default index page when checking with the browser, you'll need to look at the file called httpd.conf and make sure that it is configured correctly.