How to use lamp to deploy phpMyAdmin system and Discuz forum system

Source: Internet
Author: User
Tags config pack php and unpack phpmyadmin

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.