Recasting of a dynamic web site in a free environment
[40 mn de lecture - paru le 11/5/2006 6:23:24 PM - Public : Débutant]
|
   
|
Auteur
Resume
During my training period at the end of year, I have to carry out the recasting of a Web site lodged under Microsoft Windows to a Gnu Linux environment.This article stands the installation of a Web site under a Linux Gentoo server followed by its recasting.
At first, it was necessary to setup a LAMP server (Linux Apache Mysql) and an email hosting system Qmail thanks to the tool “emerge”.
Thereafter, the migration of the Access database towards a Mysql database was necessary to ensure its portability. This migration is very fast thanks to the tool Ms Access to Mysql and is done in some clicks under an environment Microsoft Windows. Once the database converted, we must modify the code in PHP to reach the database Mysql instead of the old base of Access.
The company, wanting an integrated MailBox into the site, I had to to program it. This task is facilitated thanks to the provided library IMAP which makes it possible to be connected to a POP3 or IMAP4 server. It is thus possible to log with the Qmail server which we had installed under Linux. In order to give the possibility to the employees of answering their email and of writing some via the Mailbox, the libriray SMTP provided by PHP was chosen. This library is very simple to deploy and amongst other things makes it possible to send email to the text format or to HTML format like sending attachments.
This article finish by standing for the importance of the css in the recasting of the modern Web site graphic charter. It explains how to take again the site in Full css by removing Frames which loose the tendency. This is possible thanks, amongst other things, with a Javascript detection of the various screens formats and the navigator as well as the use of the “Select limit” of Mysql allowing posting "page by page".
Sommaire
- Introduction
- 1 Implementation of the Linux server (Gentoo)
- 1.1 Preparation of the environment
- 1.2 Mysql Setup
- 1.3 Apache2 Setup
- 1.4 PHP Setup
- 1.5 Qmail mail hosting system Setup in encoded mode (SSL)
- 1.6 Recovery of the data of the site using a usb key and ligne publishing
- 1 Recasting of the Web site
- 2.1 Introduction of the main web technologies
- 2.2 The migration of the Access database to the Mysql database
- 2.3 Recasting of the PHP code in order to allow the interaction with the new Mysql database.
- 2.4 Add a Mailbox for the company thanks to the I.M.A.P class
- 2.5 Removing of the Frames to replace them by Full CSS
- 3 References
- Conclusion
|