Like most other things in Red Hat, Apache can be quickly and easily set up using the package manager. The process is simple. The only thing to remember is that the package and the service are not called Apache, but httpd.
Install the Apache web server:
Configure the system to start Apache at boot
Start the Apache web server:
Save the file. Then, still from the root shell, run the command:
This will access the webpage created above, proving the web server is up and running.
Install Apache
Open a root shellsu -
Install the Apache web server:
yum -y install httpd
Configure the system to start Apache at boot
chkconfig httpd on
Start the Apache web server:
service httpd start
Test the Apache Installation
To test, copy and paste the following into /var/www/html/index.html:
<html>
<head>
<title>Dougie's Linux Hints Test Web Page</title>
</head>
<body>
This is a test Web Page.
</body>
</html>
Save the file. Then, still from the root shell, run the command:
elinks http://localhost
This will access the webpage created above, proving the web server is up and running.
No comments :
Post a Comment