JPHHLASH

Using Apache in linux

Home
header files
Linux Commands
access windows partition from linux
startup
compiling from source code
how to run C/C++ programs in linux
some useful shell scripts
environment variables
fork and exec
Using apache
php in linux
read/write in linux

Steps for installing apache and running it.

Choose the apache version you want to download from here.

1>First obtain the apache server from apache website.

2>Untar the file.
$tar xvf httpd.something something.tar.gz

3>move inside the unzipped directory.
$cd httpd*

4>$./configure

5>$make

6>$sudo make install

7>clean up the make pages.
$make clean

To install in Red hat systems with yum,follow these steps.
$sudo yum install httpd
To start the web server execute the following command.
# service httpd start
If it starts OK,then there is no problem.Go to the following web page to view the test page

http://localhost/

To stop the apache server type
# service httpd stop

Presuming you have a preliminary idea about how a web server works, we now make the first web page to run from the web server.Lets run this simple web page from the server.

<html>
<title>My first web page in apache </title>
<head> Wow this works!</head>
<body> hello world </body>
</html>

Name the page as hello.html and save it in /var/www/html/
Now go to http://localhost/hello.html and there you see tha page !





Feedback, query, ideas? Email crenshaw_jo@yahoo.com.