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 httpdConfigure the system to start Apache at boot
chkconfig httpd onStart the Apache web server:
service httpd startTest 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://localhostThis will access the webpage created above, proving the web server is up and running.
No comments :
Post a Comment