Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie Apache Question

Status
Not open for further replies.

netwerkassist

Technical User
Apr 17, 2002
12
CA
I'm quite new to Linux and trying to get view the default page after installing apache.

Is there any additional configuration to the httpd.conf file necessary to view the default page that should show after the initial installation? The machine is assigned an IP address and the service is started but I get "cannot connect" when using the private IP in Netscape.
Also for some reason I have 2 httpd.conf files, one in /usr/local/apache2/conf and one in root/httpd-2.0.34/bindist/conf (originally ran install from root)


Appreciate help!
 
What Distro are you using?
On my RH7.2 the httpd.conf is locate in /etc/httpd/conf Other distro's may differ slightly.
If you want an east way to config Linux download Webmin and install it. Then use a web browser to do the config.
 
Im using version 7.0. I'd like to pass on the short cuts if possible and learn the basics to get Apache up the standard way.

Appreciate replies and help!
 
I like to compile Apache from source, since I find the binaries and rpms can be troublesome. I'd also recommend using 1.3.24, the httpd.conf is a little easier to navigate!

tar the source archive into somewhere convenient like /usr/local/src, then go into it and run the configure script:

# ./configure --prefix=/usr/local/apache > --enable-module=most > --disable-module=auth_dbm > --enable-shared=max

(This is a single command, the \ continues the command onto a new line.)

Once the configuration's completed, the installation is simple

# make
# make install

And that's it. Go into the http.conf and change the server name to the IP address of your server and start Apache.

# /usr/local/apache/bin/apachectl start ------------------------------------------------------------------
It's important to think. It's what separates us from lentils.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top