Linux uses RPM to install and build a LAMP Environment

Source: Internet
Author: User
Tags install perl
LAMP is a dynamic website environment built on Linux + Apache + MySql + PHP. It is a popular combination of web services on the Internet. There are many tutorials on the Internet to build the LAMP environment, which are basically compiled and installed. In fact, for beginners, they only need to understand some features of the LAMP environment. RMP installation is relatively easy to use, you only need to install the installation package on several CDs to build the LAMP smoothly. Install Apache [root@www.linuxidc.com ~] # Rp LAMP is a dynamic website environment built on Linux + Apache + MySql + PHP. It is a popular combination of web services on the Internet. There are many tutorials on the Internet to build the LAMP environment, which are basically compiled and installed. In fact, for beginners, they only need to understand some features of the LAMP environment. RMP installation is relatively easy to use, you only need to install the installation package on several CDs to build the LAMP smoothly. Install Apache
Root@www.linuxidc.com ~ # Rps-ivh/media/Server/httpd-2.2.3-6.el5.i386.rpm  
Warning:/media/Server/httpd-2.2.3-6.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Error: Failed dependencies:
Libapr-1.so.0 is needed by httpd-2.2.3-6.el5.i386
Libaprutil-1.so.0 is needed by httpd-2.2.3-6.el5.i386
Root@www.linuxidc.com ~ #
Tip requires support for libapr-1.so.0 and libaprutil-1.so.0 installation libapr-1.so.0
Root@www.linuxidc.com ~ # Rps-ivh/media/Server/apr-1.2.7-11.i386.rpm  
Warning:/media/Server/apr-1.2.7-11.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ######################################## ### [100%]
1: apr ####################################### #### [100%]
Apr-util-1.2.7-6.i386.rpm requires postgresql-libs support to install libpq. so.4
Root@www.linuxidc.com ~ # Rps-ivh/media/Server/postgresql-libs-8.1.4-1.1.i386.rpm  
Warning:/media/Server/postgresql-libs-8.1.4-1.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ######################################## ### [100%]
1: postgresql-libs ##################################### ###### [100%]
Root@www.linuxidc.com ~ #
Install libaprutil-1.so.0
Root@www.linuxidc.com ~ # Rps-ivh/media/Server/apr-util-1.2.7-6.i386.rpm  
Warning:/media/Server/apr-util-1.2.7-6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ######################################## ### [100%]
1: apr-util ##################################### ###### [100%]
Root@www.linuxidc.com ~ #
Install Apache
Root@www.linuxidc.com ~ # Rps-ivh/media/Server/httpd-2.2.3-6.el5.i386.rpm  
Warning:/media/Server/httpd-2.2.3-6.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ######################################## ### [100%]
1: httpd ####################################### #### [100%]
Root@www.linuxidc.com ~ #
Install MySqlMysql requires support from perl (DBI) and perl-DBD-MySQL. Therefore, install perl-DBI and perl-DBD-MySQLperl-DBI first.
Root@www.linuxidc.com ~ # Rps-ivh/media/Server/perl-DBI-1.52-1.fc6.i386.rpm  
Warning:/media/Server/perl-DBI-1.52-1.fc6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ######################################## ### [100%]
1: perl-DBI ##################################### ###### [100%]
Root@www.linuxidc.com ~ #
Install perl-DBD-MySQL
Root@www.linuxidc.com ~ # Rps-ivh/media/Server/perl-DBD-MySQL-3.0007-1.fc6.i386.rpm  
Warning:/media/Server/perl-DBD-MySQL-3.0007-1.fc6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ######################################## ### [100%]
1: perl-DBD-MySQL ################################### ####### [1, 100%]
Root@www.linuxidc.com ~ #
Start mysql Installation
Root@www.linuxidc.com ~ # Rps-ivh/media/Server/mysql-5.0.22-2.1.i386.rpm  
Warning:/media/Server/mysql-5.0.22-2.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ######################################## ### [100%]
1: mysql ####################################### #### [100%]
Root@www.linuxidc.com ~ #
Install mysql server
Root@www.linuxidc.com ~ # Rps-ivh/media/Server/mysql-server-5.0.22-2.1.i386.rpm  
Warning:/media/Server/mysql-server-5.0.22-2.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ######################################## ### [100%]
1: mysql-server ##################################### ###### [100%]
Root@www.linuxidc.com ~ #
Initialize the MySql database
Root@www.linuxidc.com ~ # Mysql_install_db  
Installing all prepared tables
Fill help tablesTo start mysqld at boot time you have to copy support-files/mysql. server
To the right place for your systemPLEASE remember to set a password for the MySQL root USER!
To do so, start the server, then issue the following commands:
/Usr/bin/mysqladmin-u root password 'new-password'
/Usr/bin/mysqladmin-u root-h linux-a.test.com password 'new-password'
See the manual for more instructions. You can start the MySQL daemon:
Cd/usr;/usr/bin/mysqld_safe & You can test the MySQL daemon with the benchmarks in the 'SQL-detail' directory:
Cd SQL-scripts; perl run-all-testsPlease report any problems with the/usr/bin/mysqlbug script! The latest information about MySQL is available on the web
Http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Root@www.linuxidc.com ~ #
Modify the mysql configuration file
Root@www.linuxidc.com ~ # Cp/usr/share/doc/mysql-server-5.0.22/my-medium.cnf/etc/my. cnf
Related Article

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.