[root@server1 ~]# yum install httpd
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package httpd.x86_64 0:2.2.15-15.sl6.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
httpd x86_64 2.2.15-15.sl6.1 base 812 k
Transaction Summary
=============================================================================================================================
Install 1 Package(s)
Total download size: 812 k
Installed size: 2.9 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : httpd-2.2.15-15.sl6.1.x86_64 1/1
Verifying : httpd-2.2.15-15.sl6.1.x86_64 1/1
Installed:
httpd.x86_64 0:2.2.15-15.sl6.1
Complete!
[root@server1 ~]# service httpd restart;chkconfig httpd on
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@server1 ~]# vim /etc/httpd/conf/httpd.conf
change
From
262 ServerAdmin root@localhost
276 #ServerName www.example.com:80
402 DirectoryIndex index.html index.html.var
To
262 ServerAdmin root@server1.example.com
276 ServerName server1.example.com:80
402 DirectoryIndex index.html index.html.var index.php
[root@server1 ~]# touch /var/www/html/index.html
[root@server1 ~]# vim index.html
<html>
<head>
<title>
This is My Test mail
</title>
</head>
<body bgcolor=pink>
<center>Welcome to Technologybd.net</center>
</body>
</html>
[root@server1 ~]# service httpd restart;chkconfig httpd on
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Read More
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package httpd.x86_64 0:2.2.15-15.sl6.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
httpd x86_64 2.2.15-15.sl6.1 base 812 k
Transaction Summary
=============================================================================================================================
Install 1 Package(s)
Total download size: 812 k
Installed size: 2.9 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : httpd-2.2.15-15.sl6.1.x86_64 1/1
Verifying : httpd-2.2.15-15.sl6.1.x86_64 1/1
Installed:
httpd.x86_64 0:2.2.15-15.sl6.1
Complete!
[root@server1 ~]# service httpd restart;chkconfig httpd on
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@server1 ~]# vim /etc/httpd/conf/httpd.conf
change
From
262 ServerAdmin root@localhost
276 #ServerName www.example.com:80
402 DirectoryIndex index.html index.html.var
To
262 ServerAdmin root@server1.example.com
276 ServerName server1.example.com:80
402 DirectoryIndex index.html index.html.var index.php
[root@server1 ~]# touch /var/www/html/index.html
[root@server1 ~]# vim index.html
<html>
<head>
<title>
This is My Test mail
</title>
</head>
<body bgcolor=pink>
<center>Welcome to Technologybd.net</center>
</body>
</html>
[root@server1 ~]# service httpd restart;chkconfig httpd on
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Read More
0 comments:
Post a Comment
Attention: Please don't use spammy comments here. else ur comment will be remove automatically. Thank you.