In the previous article we have learned to build the lamp environment, and has successfully built a lamp environment, then build a lamp platform how do we deploy Dynamic Web site? Today we'll take the phpMyAdmin and discuz systems as examples to explain how to build dynamic Web sites on the lamp platform.
Deploying phpMyAdmin Systems
phpMyAdmin is a Web application that is written in PHP and used to manage MySQL databases, and the Web interface provided by this suite makes it easy to manage and maintain MySQL databases, even for people who are unfamiliar with SQL statements.
phpMyAdmin's newest source pack can be downloaded from the official site Http://www.phpmyadmin.net, and the following is an example of a multilingual pack phpmyadmin-3.3.10-all-languages.tar to describe the phpMyAdmin suite deployment process.
1, unpack and copy to the website directory
For most PHP applications, just unpack and copy to the site directory to complete the deployment, then adjust the configuration as needed, or access the installation page to complete the installation.
[Root@localhost Media] #tar zxf phpmyadmin-3.3.10-alll-languages.tar.gz-c/usr/src/
[Root@localhost Media] #mv/usr/src/phpmyadmin-3.3.10-all-languages/usr/local/httpd/htdocs/phpmyadmin
2, establish the configuration file config.inc.php
After you copy the phpMyAdmin suite to the Site directory, you also need to create a profile before you can use it normally. The sample file provided by default is config.sample.inc.php and you need to create a config.inc.php configuration file with reference to the contents of the file. Locate and modify the "Blowfish_secret" line in the configuration file and set a phrase key (this key can be entered at will, for Web cookie authentication, no user memory).
[Root@localhost Media] #cd/usr/local/httpd/htdocs/phpmyadmin
[Root@localhost phpMyAdmin] #cp config.sample.inc.php config.inc.php
[Root@localhost phpMyAdmin] #vim config.inc.php
.../omit part of the content
$cfg [' Blowfish_secret ']= ' pwd.123 '; Set Phrase key
3, access to phpMyAdmin Web management interface
After modifying the above configuration file, you need to restart the HTTPD service before the configuration can take effect.
[Root@localhost phpmyadmin]#/usr/lcoal/httpd/bin/apachectl Restart//Restart service
Enter the http://192.168.1.10/phpMyAdmin on the browser to see the phpMyAdmin system login interface. Enter the username and password of the database to log on to the phpMyAdmin system.