Linux Yum built lamp website architecture

Source: Internet
Author: User
Tags phpmyadmin

in the last lesson I used the source code and the installation of software-free two ways to build LAMP Architecture of the site, today we make a brief summary of the previous section:

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7D/21/wKioL1bg4MLzLltjAACICtXjCBU832.png "title=" QQ picture 20160310102839.png "alt=" Wkiol1bg4mlzlltjaacictxjcbu832.png "/>

Source code Installation software is our Linux the following common installation methods are divided into four steps:

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7D/23/wKiom1bg4E7AbblqAAB7nGdHhJA971.png "title=" QQ picture 20160310103033.png "alt=" Wkiom1bg4e7abblqaab7ngdhhja971.png "/>

In the previous section, our database was free of installation. The direct decompression can be used. is not very simple, as long as we have the command in front of the master, the service behind the building is not a problem.

Today we explain Yum Build Lamp site architecture. Installing the software with the Yum command is also a common use for Linux , because he is simpler, but poorly ported. Okay, let's get started on our operation. 650) this.width=650; "src=" Http://img.baidu.com/hi/ldw/w_0024.gif "alt=" w_0024.gif "/>

Lab Environment:

a single-machine server, operating system centos6.6. Note that the server should be able to access the Internet.

Experimental steps:

1. Close Iptables and the SELinux

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7D/23/wKiom1bg6iXgw2mNAACboD4SctQ293.png "title=" QQ picture 20160310112904.png "alt=" Wkiom1bg6ixgw2mnaacbod4sctq293.png "/>

2. Installation httpd

Yum-y Install httpd

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7D/23/wKiom1bg63fw_mfcAAAhvNWQZM4100.png "title=" QQ picture 20160310113452.png "alt=" Wkiom1bg63fw_mfcaaahvnwqzm4100.png "/>

3. Installing the module

Yum-y Install Httpd-manualmod_ssl mod_perl mod_auth_mysql

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7D/22/wKioL1bg7BSjDL9ZAAApKfvLk10319.png "title=" QQ picture 20160310113132.png "alt=" Wkiol1bg7bsjdl9zaaapkfvlk10319.png "/>

4. Start httpd

/ETC/INIT.D/HTTPD start

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7D/22/wKioL1bg7J6Ac3XqAAA2_dqwYvo209.png "title=" QQ picture 20160310113739.png "alt=" Wkiol1bg7j6ac3xqaaa2_dqwyvo209.png "/>

Database installation 650) this.width=650; "src=" Http://img.baidu.com/hi/ldw/w_0037.gif "alt=" W_0037.gif "/>

1. Installation MySQL

Installation of the database 1.yum-y install Mysqlmysql-server mysql-devel

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7D/25/wKiom1bhCYHAmOI6AAAndZNNpWE681.png "title=" QQ picture 20160310134312.png "alt=" Wkiom1bhcyhamoi6aaandznnpwe681.png "/>

2. Start MySQL

/etc/init.d/mysqld start

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7D/25/wKiom1bhCpHw1kAGAACJdPEbgdc859.png "title=" QQ picture 20160310134750.png "alt=" Wkiom1bhcphw1kagaacjdpebgdc859.png "/>

3. Check the port

Netstat-lntup|grep MySQL

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7D/24/wKioL1bhC2jj9EZQAAA-AVsjnpw540.png "title=" QQ picture 20160310134911.png "alt=" Wkiol1bhc2jj9ezqaaa-avsjnpw540.png "/> PHP installation 650) this.width=650;" Src= " Http://img.baidu.com/hi/ldw/w_0049.gif "alt=" W_0049.gif "/>

1. Installation PHP

Yum-y Install PHP Php-mysql

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7D/24/wKioL1bhC_6BG-8cAAAxKYq1sBY029.png "title=" QQ picture 20160310135140.png "alt=" Wkiol1bhc_6bg-8caaaxkyq1sby029.png "/>

2. See if the installation is good PHP

Yum Search PHP

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7D/26/wKiom1bhC9bhebEAAAA10P2Gf6E672.png "title=" QQ picture 20160310135313.png "alt=" Wkiom1bhc9bhebeaaaa10p2gf6e672.png "/>

3. Install the library file

Yum-y Install GD php-gdgd-devel php-xml php-common php-mbstring php-ldap php-pear php-xmlrpc php-imap

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7D/24/wKioL1bhDM_AkpzAAAA0VmfMFP4688.png "title=" QQ picture 20160310135511.png "alt=" Wkiol1bhdm_akpzaaaa0vmfmfp4688.png "/>

4. Start the service

/ETC/INIT.D/HTTPD restart

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7D/24/wKioL1bhDVOBvZv3AAA89TYZleA662.png "title=" QQ picture 20160310135722.png "alt=" Wkiol1bhdvobvzv3aaa89tyzlea662.png "/>

5. Testing

cd/var/www/html/

Vim index.php

<?php

Phpinfo ();

?>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7D/25/wKioL1bhDeySBhU9AABP7hATlBo211.png "title=" QQ picture 20160310135915.png "alt=" Wkiol1bhdeysbhu9aabp7hatlbo211.png "/>

6. restart httpd Test Web to the PHP the connection

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7D/27/wKiom1bhDczz-OdSAAA_ljErg1Q244.png "title=" QQ picture 20160310140139.png "alt=" Wkiom1bhdczz-odsaaa_ljerg1q244.png "/>650) this.width=650;" src= "/HTTP/ S3.51cto.com/wyfs02/m00/7d/27/wkiom1bhdnzhv55-aagawwpu6hm407.png "title=" qq picture 20160310140423.png "alt=" Wkiom1bhdnzhv55-aagawwpu6hm407.png "/>

Test the PHP connection to the database. 650) this.width=650; "src=" Http://img.baidu.com/hi/ldw/w_0051.gif "alt=" W_0051.gif "/>


Upload and install phpMyAdmin

Tar XF phpmyadmin-3.4.9-all-languages.tar.bz2 Decompression

MV Phpmyadmin-3.4.9-all-languages phpMyAdmin Change name


Chown-r Apache.apache phpMyAdmin

chmod 755 phpmyadmin/

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7D/29/wKiom1bhFdniv3IfAAC7ncmMXNk111.png "title=" QQ picture 20160310143536.png "alt=" Wkiom1bhfdniv3ifaac7ncmmxnk111.png "/>

Test can


650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7D/27/wKioL1bhFrrS0UDZAADFFXu_LLM428.png "title=" QQ picture 20160310143729.png "alt=" Wkiol1bhfrrs0udzaadffxu_llm428.png "/>

Here we use Yum to build the lamp site environment has been successful, is not very easy ah! 650) this.width=650; "src=" Http://img.baidu.com/hi/ldw/w_0014.gif "alt=" W_0014.gif "/>

This article from "Lele Run" blog, please be sure to keep this source http://10851431.blog.51cto.com/10841431/1749571

Linux Yum built lamp website architecture

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.