This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
user:jr018429:portfolio:apache_install [2011/05/18 02:47] – [Background] jr018429 | user:jr018429:portfolio:apache_install [2011/05/18 02:58] (current) – [Background] jr018429 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <WRAP centeralign round graybg box 96%> | ||
+ | <WRAP muchbigger> | ||
+ | <WRAP bigger> | ||
+ | </ | ||
+ | ======Objective====== | ||
+ | The objective of this project is to successfully install the Apache 2 Web server and then create a Web page and place it on the Server and access the Web page across the network using a Web browser. | ||
+ | ======Materials/ | ||
+ | To do this project, you will need to have successfully completed: | ||
+ | |||
+ | * Linux/*BSD Desktop Install | ||
+ | |||
+ | ======Background====== | ||
+ | Web servers use the client/ | ||
+ | There are many protocols used for different purposes across the Internet for example, HTTP-Hypertext Transfer Protocol, FTP-File Transfer Protocol, and HTTPS-Secure HTTP. The communication protocol used to request and serve unsecure Web pages is HTTP. As we learned in our networking fundamentals course, the well known port for HTTP is port 80. So a Web server listens at port 80 (usually) for a request from a Web client. | ||
+ | |||
+ | ======Procedure====== | ||
+ | After logging in as root, I performed an apt-get install of the apache 2 Web server packages.\\ | ||
+ | <cli> | ||
+ | root@dhcp-179:/ | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | The following extra packages will be installed: | ||
+ | apache2-mpm-worker apache2.2-common | ||
+ | Suggested packages: | ||
+ | apache2-suexec apache2-suexec-custom | ||
+ | The following NEW packages will be installed: | ||
+ | apache2 apache2-doc apache2-mpm-worker apache2-utils apache2.2-common | ||
+ | 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. | ||
+ | Need to get 2,779 kB of archives. | ||
+ | After this operation, 15.1 MB of additional disk space will be used. | ||
+ | Do you want to continue [Y/n]? y | ||
+ | Get:1 http:// | ||
+ | Get:2 http:// | ||
+ | Get:3 http:// | ||
+ | Get:4 http:// | ||
+ | Get:5 http:// | ||
+ | Fetched 2,779 kB in 7s (387 kB/s) | ||
+ | Selecting previously deselected package apache2-utils. | ||
+ | (Reading database ... 124913 files and directories currently installed.) | ||
+ | Unpacking apache2-utils (from .../ | ||
+ | Selecting previously deselected package apache2.2-common. | ||
+ | Unpacking apache2.2-common (from .../ | ||
+ | Selecting previously deselected package apache2-mpm-worker. | ||
+ | Unpacking apache2-mpm-worker (from .../ | ||
+ | Selecting previously deselected package apache2. | ||
+ | Unpacking apache2 (from .../ | ||
+ | Selecting previously deselected package apache2-doc. | ||
+ | Unpacking apache2-doc (from .../ | ||
+ | Processing triggers for man-db ... | ||
+ | Setting up apache2-utils (2.2.16-6+squeeze1) ... | ||
+ | Setting up apache2.2-common (2.2.16-6+squeeze1) ... | ||
+ | Enabling site default. | ||
+ | Enabling module alias. | ||
+ | Enabling module autoindex. | ||
+ | Enabling module dir. | ||
+ | Enabling module env. | ||
+ | Enabling module mime. | ||
+ | Enabling module negotiation. | ||
+ | Enabling module setenvif. | ||
+ | Enabling module status. | ||
+ | Enabling module auth_basic. | ||
+ | Enabling module deflate. | ||
+ | Enabling module authz_default. | ||
+ | Enabling module authz_user. | ||
+ | Enabling module authz_groupfile. | ||
+ | Enabling module authn_file. | ||
+ | Enabling module authz_host. | ||
+ | Enabling module reqtimeout. | ||
+ | Setting up apache2-mpm-worker (2.2.16-6+squeeze1) ... | ||
+ | Starting web server: apache2. | ||
+ | Setting up apache2 (2.2.16-6+squeeze1) ... | ||
+ | Setting up apache2-doc (2.2.16-6+squeeze1) ... | ||
+ | Reloading web server config: apache2. | ||
+ | root@dhcp-179:/ | ||
+ | root@dhcp-179:/ | ||
+ | root@dhcp-179:/ | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | The following extra packages will be installed: | ||
+ | libapache-ruby1.8 libreadline5 libruby1.8 | ||
+ | Suggested packages: | ||
+ | liberuby | ||
+ | The following NEW packages will be installed: | ||
+ | libapache-ruby1.8 libapache2-mod-ruby libreadline5 libruby1.8 | ||
+ | 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. | ||
+ | Need to get 2,180 kB of archives. | ||
+ | After this operation, 8,147 kB of additional disk space will be used. | ||
+ | Do you want to continue [Y/n]? y | ||
+ | Get:1 http:// | ||
+ | Get:2 http:// | ||
+ | Get:3 http:// | ||
+ | Get:4 http:// | ||
+ | Fetched 2,180 kB in 5s (407 kB/s) | ||
+ | Selecting previously deselected package libreadline5. | ||
+ | (Reading database ... 126955 files and directories currently installed.) | ||
+ | Unpacking libreadline5 (from .../ | ||
+ | Selecting previously deselected package libruby1.8. | ||
+ | Unpacking libruby1.8 (from .../ | ||
+ | Selecting previously deselected package libapache-ruby1.8. | ||
+ | Unpacking libapache-ruby1.8 (from .../ | ||
+ | Selecting previously deselected package libapache2-mod-ruby. | ||
+ | Unpacking libapache2-mod-ruby (from .../ | ||
+ | Setting up libreadline5 (5.2-7) ... | ||
+ | Setting up libruby1.8 (1.8.7.302-2) ... | ||
+ | Setting up libapache-ruby1.8 (1.2.6-2) ... | ||
+ | Setting up libapache2-mod-ruby (1.2.6-2) ... | ||
+ | Enabling module ruby. | ||
+ | Run '/ | ||
+ | root@dhcp-179:/ | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | The following extra packages will be installed: | ||
+ | libapache2-reload-perl libbsd-resource-perl libdevel-symdump-perl | ||
+ | The following NEW packages will be installed: | ||
+ | libapache2-mod-perl2 libapache2-reload-perl libbsd-resource-perl libdevel-symdump-perl | ||
+ | 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. | ||
+ | Need to get 1,146 kB of archives. | ||
+ | After this operation, 4,063 kB of additional disk space will be used. | ||
+ | Do you want to continue [Y/n]? y | ||
+ | Get:1 http:// | ||
+ | Get:2 http:// | ||
+ | Get:3 http:// | ||
+ | Get:4 http:// | ||
+ | Fetched 1,146 kB in 2s (418 kB/s) | ||
+ | Selecting previously deselected package libdevel-symdump-perl. | ||
+ | (Reading database ... 127688 files and directories currently installed.) | ||
+ | Unpacking libdevel-symdump-perl (from .../ | ||
+ | Selecting previously deselected package libapache2-mod-perl2. | ||
+ | Unpacking libapache2-mod-perl2 (from .../ | ||
+ | Selecting previously deselected package libapache2-reload-perl. | ||
+ | Unpacking libapache2-reload-perl (from .../ | ||
+ | Selecting previously deselected package libbsd-resource-perl. | ||
+ | Unpacking libbsd-resource-perl (from .../ | ||
+ | Processing triggers for man-db ... | ||
+ | Setting up libdevel-symdump-perl (2.08-3) ... | ||
+ | Setting up libapache2-mod-perl2 (2.0.4-7) ... | ||
+ | Enabling module perl. | ||
+ | Run '/ | ||
+ | Setting up libapache2-reload-perl (0.10-2) ... | ||
+ | Setting up libbsd-resource-perl (1.2904-1) ... | ||
+ | root@dhcp-179:/ | ||
+ | root@dhcp-179:/ | ||
+ | root@dhcp-179:/ | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | Suggested packages: | ||
+ | libapache2-mod-python-doc | ||
+ | The following NEW packages will be installed: | ||
+ | libapache2-mod-python | ||
+ | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | ||
+ | Need to get 122 kB of archives. | ||
+ | After this operation, 537 kB of additional disk space will be used. | ||
+ | Get:1 http:// | ||
+ | Fetched 122 kB in 0s (240 kB/s) | ||
+ | Selecting previously deselected package libapache2-mod-python. | ||
+ | (Reading database ... 128129 files and directories currently installed.) | ||
+ | Unpacking libapache2-mod-python (from .../ | ||
+ | Setting up libapache2-mod-python (3.3.1-9+b1) ... | ||
+ | Reloading web server config: apache2. | ||
+ | Processing triggers for python-central ... | ||
+ | root@dhcp-179:/ | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | The following extra packages will be installed: | ||
+ | libmysqlclient16 mysql-common | ||
+ | Suggested packages: | ||
+ | python-egenix-mxdatetime mysql-server-5.1 mysql-server python-mysqldb-dbg | ||
+ | The following NEW packages will be installed: | ||
+ | libmysqlclient16 mysql-common python-mysqldb | ||
+ | 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. | ||
+ | Need to get 2,101 kB of archives. | ||
+ | After this operation, 4,788 kB of additional disk space will be used. | ||
+ | Do you want to continue [Y/n]? y | ||
+ | Get:1 http:// | ||
+ | Get:2 http:// | ||
+ | Get:3 http:// | ||
+ | Fetched 2,101 kB in 5s (374 kB/s) | ||
+ | Selecting previously deselected package mysql-common. | ||
+ | (Reading database ... 128154 files and directories currently installed.) | ||
+ | Unpacking mysql-common (from .../ | ||
+ | Selecting previously deselected package libmysqlclient16. | ||
+ | Unpacking libmysqlclient16 (from .../ | ||
+ | Selecting previously deselected package python-mysqldb. | ||
+ | Unpacking python-mysqldb (from .../ | ||
+ | Setting up mysql-common (5.1.49-3) ... | ||
+ | Setting up libmysqlclient16 (5.1.49-3) ... | ||
+ | Setting up python-mysqldb (1.2.2-10+b1) ... | ||
+ | Processing triggers for python-support ... | ||
+ | root@dhcp-179:/ | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | The following extra packages will be installed: | ||
+ | apache2-mpm-prefork libonig2 libqdbm14 php5-cli php5-common php5-suhosin | ||
+ | Suggested packages: | ||
+ | php5-dev | ||
+ | The following packages will be REMOVED: | ||
+ | apache2-mpm-worker | ||
+ | The following NEW packages will be installed: | ||
+ | apache2-mpm-prefork libapache2-mod-php5 libonig2 libqdbm14 php-pear php5 php5-cli | ||
+ | php5-common php5-suhosin php5-xcache | ||
+ | 0 upgraded, 10 newly installed, 1 to remove and 0 not upgraded. | ||
+ | Need to get 7,101 kB of archives. | ||
+ | After this operation, 20.3 MB of additional disk space will be used. | ||
+ | Do you want to continue [Y/n]? y | ||
+ | Get:1 http:// | ||
+ | Get:2 http:// | ||
+ | Get:3 http:// | ||
+ | Get:4 http:// | ||
+ | Get:5 http:// | ||
+ | Get:6 http:// | ||
+ | Get:7 http:// | ||
+ | Get:8 http:// | ||
+ | Get:9 http:// | ||
+ | Get:10 http:// | ||
+ | Fetched 7,101 kB in 15s (445 kB/s) | ||
+ | dpkg: apache2-mpm-worker: | ||
+ | | ||
+ | Package apache2-mpm-worker is to be removed. | ||
+ | Package apache2-mpm-prefork is not installed. | ||
+ | Package apache2-mpm-event is not installed. | ||
+ | Package apache2-mpm-itk is not installed. | ||
+ | (Reading database ... 128207 files and directories currently installed.) | ||
+ | Removing apache2-mpm-worker ... | ||
+ | Stopping web server: apache2 ... waiting . | ||
+ | Selecting previously deselected package apache2-mpm-prefork. | ||
+ | (Reading database ... 128203 files and directories currently installed.) | ||
+ | Unpacking apache2-mpm-prefork (from .../ | ||
+ | Setting up apache2-mpm-prefork (2.2.16-6+squeeze1) ... | ||
+ | Starting web server: apache2. | ||
+ | Selecting previously deselected package libonig2. | ||
+ | (Reading database ... 128208 files and directories currently installed.) | ||
+ | Unpacking libonig2 (from .../ | ||
+ | Selecting previously deselected package libqdbm14. | ||
+ | Unpacking libqdbm14 (from .../ | ||
+ | Selecting previously deselected package php5-common. | ||
+ | Unpacking php5-common (from .../ | ||
+ | Selecting previously deselected package libapache2-mod-php5. | ||
+ | Unpacking libapache2-mod-php5 (from .../ | ||
+ | Selecting previously deselected package php5-cli. | ||
+ | Unpacking php5-cli (from .../ | ||
+ | Selecting previously deselected package php-pear. | ||
+ | Unpacking php-pear (from .../ | ||
+ | Selecting previously deselected package php5. | ||
+ | Unpacking php5 (from .../ | ||
+ | Selecting previously deselected package php5-suhosin. | ||
+ | Unpacking php5-suhosin (from .../ | ||
+ | Selecting previously deselected package php5-xcache. | ||
+ | Unpacking php5-xcache (from .../ | ||
+ | Processing triggers for man-db ... | ||
+ | Setting up libonig2 (5.9.1-1) ... | ||
+ | Setting up libqdbm14 (1.8.77-4) ... | ||
+ | Setting up php5-common (5.3.3-7+squeeze1) ... | ||
+ | Setting up libapache2-mod-php5 (5.3.3-7+squeeze1) ... | ||
+ | |||
+ | Creating config file / | ||
+ | Reloading web server config: apache2. | ||
+ | Setting up php5-cli (5.3.3-7+squeeze1) ... | ||
+ | |||
+ | Creating config file / | ||
+ | update-alternatives: | ||
+ | Setting up php-pear (5.3.3-7+squeeze1) ... | ||
+ | Setting up php5 (5.3.3-7+squeeze1) ... | ||
+ | Setting up php5-suhosin (0.9.32.1-1) ... | ||
+ | Setting up php5-xcache (1.3.0-7) ... | ||
+ | root@dhcp-179:/ | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | php5-suhosin is already the newest version. | ||
+ | php5-suhosin set to manually installed. | ||
+ | 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. | ||
+ | root@dhcp-179:/ | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | The following NEW packages will be installed: | ||
+ | php5-mysql | ||
+ | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | ||
+ | Need to get 66.8 kB of archives. | ||
+ | After this operation, 250 kB of additional disk space will be used. | ||
+ | Get:1 http:// | ||
+ | Fetched 66.8 kB in 2s (27.0 kB/s) | ||
+ | Selecting previously deselected package php5-mysql. | ||
+ | (Reading database ... 128521 files and directories currently installed.) | ||
+ | Unpacking php5-mysql (from .../ | ||
+ | Processing triggers for libapache2-mod-php5 ... | ||
+ | Reloading web server config: apache2. | ||
+ | Setting up php5-mysql (5.3.3-7+squeeze1) ... | ||
+ | root@dhcp-179:/ | ||
+ | root@dhcp-179:/ | ||
+ | root@dhcp-179:/# | ||
+ | root@dhcp-179:/ | ||
+ | apache2.conf | ||
+ | conf.d | ||
+ | root@dhcp-179:/ | ||
+ | root@dhcp-179:/ | ||
+ | index.html | ||
+ | </ | ||
+ | Next, I created a simple Web page using gedit text editor and named it " | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | Next, I placed both index.html and the graphic file, " | ||
+ | Lastly, I accessed the Web page successfully using both 127.0.0.1 (localhost-loop back address) and 10.80.2.179 (the machine' | ||
+ | loop back address\\ | ||
+ | {{: | ||
+ | Machine' | ||
+ | {{: | ||
+ | ======References====== | ||
+ | * How Web servers work: http:// | ||
+ | * Instructions for installing Apache 2: http:// | ||
+ | |||
+ | |||