AIM
To connect to apache server and make our machine as the host machine.
PROCEDURE
Step 1: Open the terminal.
Step 2: To check whether the server it is installed or not. rpm -qa httpd
Step 3: If not installed to install the server using the command. Rpm –ivh httpd -*
Step 4: To configure the configuration file. vi /etc/httpd/conf/httpd.conf
Step 4: To made the machine as host machine using the command.
hostname root@lab15-29.sample.com.
Step 5: To modify the system configuration file. vi /etc/sysconfig/network.
Step 6: To change the directory. cd /var/www/html.
Step 7: To create the new html file. vi index.html
Step 8: To start the web server service. service httpd restart
Step 9: Go to the web browser and open the page.
COMMANDS
1. To check whether the server it is installed or not.
Command: [root@lab15-29 /]# rpm -qa httpd
httpd-2.0.52-9.ent
2. To configure the configuration file.
Command: [root@lab15-29 /]# vi /etc/httpd/conf/httpd.conf
3. To made the machine as host machine using the command.
Command: [root@lab15-29 /]# hostname root@lab15-29.sample.com
4. To modify the system configuration file.
Command: [root@lab15-29 /]# vi /etc/sysconfig/network
5. To change the directory.
Command: [root@lab15-29 /]# cd /var/www/html
6. To create the new html file.
Command:[ root@lab15-29 html]# vi index.html
7. To start the web server service.
Command: [root@lab15-29 html]# service httpd restart
8. Go to the web browser and give the address and the page was opened.
0 comments:
Post a Comment