Módulo: Mecanizado (MEC)

advertisement
AF_IC01_U5. HTTP protocol and web servers
Unit 5a. Practice. LAMP server configuration
Introduction
In this practice, you will go further in the knowledge of a LAMP server, as well as its
configuration, settings and features. LAMP stands for Linux, Apache, MySQL and PHP. You
will need a virtual machine with an Ubuntu Server installed on it, and you can use your own real
machine as a client.
Objectives




Work in a Linux Server environment.
Install and configure the Apache web server, PHP and the database MySQL.
Know configuration files and their location.
Create a guide in order to describe the needed steps to install and configure a complete
web server.
Apache
Install and configure the Apache web server. Test it with an HTML page created by yourself.



What is the main configuration file?
Are there any other auxiliary files? If so, make a brief description of them.
How do you start and stop the service?
Find out how to create a website for a Linux user and complete the following table:
Access from the browser
Location on the server
Main page
Users page
PHP
Install and configure PHP for Apache. Test it with a PHP page (search on the Internet for some
example and try it. Hint: use the phpinfo function).
MySQL
Install and configure the MySQL database server. Perform a test with the following steps:
1.
2.
3.
4.
5.
Connect to the database server.
Create a database.
Create a table.
Insert data into the table.
View the data from the table.
At this point, you must verify that the link between PHP and MySQL is also configured. Try it
AF_IC01_U5a. HTTP protocol and web servers / Unit 5a
with a small CRUD application made by yourself.
Content Management System
Install and configure the selected CMS (It must be a different one for each student). Then,
customize it and perform some tasks.
Extension
Perform one of the following tasks. Rating: 10% (first) and 20% (second).


Install PHPMyAdmin and perform some task through its interface (points 1 to 5 in
section MySQL)
Create a secure virtual server with Apache. To do that, use SSL (Secure Socket Layer)
with the OpenSSL package. Remember it is accessed as https://...
Report
Please note that the report should be as concise as possible and should include at least the
following sections:
1.
2.
3.
4.
5.
6.
7.
8.
Front page
Index
Introduction
Theory
Objectives
Realization
Conclusions
Bibliography
AF_IC01_U5a. HTTP protocol and web servers / Unit 5a
Download