Lamp Construction and corporate website building

Source: Internet
Author: User
Tags phpmyadmin

The deployment of lamp in Linux and the construction of the enterprise website

1. First uninstall the RPM-installed PHP and the dependent packages

2. Insert the Linux system disk and install Zlib-devel and Libmxl2-devel

3. Mount the Libmcrypt disc and install and configure it (make && make install)

4. Execution optimization

5. Install the Mhash software and configure and install it (make && make install)

6. Execution optimization

7. Install the MCrypt software and configure and install it (make && make install)

8. If error occurs when the configuration fails, you can execute the following command to resolve the configuration error

9. Finally this can not be optimized

Note: The above three installation packages must be installed in sequence or fail.


10. Compiling and installing PHP (make && make install)

11. After the installation is complete, this display appears, which indicates the installation was successful.

11. Configuring the php.ini master configuration file

12. Modify the configuration file

You can not modify it first.


13. Mount the Zendguardloader-php optimization module and install

14. Modify the configuration file (/usr/local/php5/php.ini) and add the following command on the last line

Configuration adjustment for 15.httpd.conf

Vi/usr/local/httpd/conf/httpd.conf

Add the third line of the command, the second line is already there, you can not move.

16. Locate the following line of code and add index.php in front of index.html

17. Restart the HTTPD service

18. Test Lamp Environment

Write a Web page index.php

vi/usr/local/httpd/htdocs/index.php

19. Access in the browser, the following interface appears to indicate success

20. Test if PHP can access MySQL database service

Writing a script vi/usr//local/httpd/htdocs/mysql.php

21. Start the MySQL service and change the password

22. Accessed in the browser, this page appears to indicate success.

23. Deploying the phpMyAdmin Management system

Mount the disc and unzip it before copying to the site Directory

24. Create a configuration file config.inc.php

25. Access phpMyAdmin, enter MySQL username: root, Password: 123456

26. Change the language to Chinese

27. Create a new database

28. Create a new table in the salary database


29. Add a Field

30. Input data

31. Querying with SQL statements

32. The results are as follows

At this point the lamp platform is finished bulky


The following is to build a corporate website

1. First download the source code of the webpage, make the CD-ROM and mount it, copy the code to htdocs and rename it to BBS.

2. Set permissions

3. Visit the Web page


4.vi/usr/local/php5/php.ini

5. Restart the httpd service

6. Visit the website again

Follow the step-by-step process until the completion



7. Website Front Desk

8. Website backstage, and add tiles in the background

9. The effect displayed on the foreground of the website


10. At this point, the Enterprise website is completed

Lamp Construction and corporate website building

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.