Learning Linux for program development, system management, network administrators, and system O & M, without LAMP and LNMP, is equivalent to not even a fur! This article is a text version of LAMP integrated installation, next time we will introduce the text version of LNMP installation. I like continuous attention.
If you want to hear the voice broadcast from Niu every day and want to learn more IT technologies or skills that are not big enough in schools and books, please pay attention to the public account.:Xiniubook2008. Or addWeibo: I am the master of my books, Participate in the activity, get a book for free.
[Example 15-33]
# Install MySQL
[Root @ CentOSsoft] # tar xvf mysql-5.1.49.tar.gz
[Root @ CentOSsoft] # cd mysql-5.1.49
[Root @ CentOSsoft] # useradd mysql
[Root @ CentOSsoft] # groupadd mysql
[Root @ CentOSsoft] # cd mysql-5.1.49
[Root@CentOSmysql-5.1.49] #./configure -- prefix =/usr/local/mysql/-- enable-local-infile -- with-extra-charsets = all -- with-plugins = innobase
# Make
[Root@CentOSmysql-5.1.49] # make install
# Install SSL
# Decompress the source code package
[Root @ CentOSsoft] # tar xvf openssl-1.0.0c.tar.gz
[Root @ CentOSsoft] # cd openssl-1.0.0c
# Configure compilation options
[Root@CentOSopenssl-1.0.0c] #./config -- prefix =/usr/local/ssl -- shared
# Compile
# Make
[Root@CentOSopenssl-1.0.0c] # make install
# Adding the dynamic library path to the System Path
[Root@CentOSopenssl-1.0.0c] # echo/usr/local/ssl/lib/>/etc/ld. so. conf
# Loading dynamic libraries for system sharing
A [root@CentOSopenssl-1.0.0c] # ldconfig
# Install curl so that curl-related functions can be used in PHP
[Root @ CentOSsoft] # tar xvf curl-7.15.1.tar.gz
[Root @ CentOSsoft] # cd curl-7.15.1
# Chmod-R a + x.
[Root@CentOScurl-7.15.1] #./configure -- prefix =/usr/local/curl -- enable-shared
# Make
[Root@CentOScurl-7.15.1] # make install
# Install libxml
[Root @ CentOSsoft] # tar xvf libxml2-2.7.7.tar.gz
[Root @ CentOSsoft] # cd libxml2-2.7.7
[Root @ CentOSsoft] # chmod-R a + x.
[Root @ CentOSsoft] #./configure -- prefix =/usr/local/libxml2 -- enable-shared
[Root @ CentOSsoft] # make
[Root @ CentOSsoft] # make install
[Root @ CentOSsoft] # cd/data/soft
# Installing zlib
[Root @ CentOSsoft] # tar xvf zlib-1.2.3.tar.gz
[Root @ CentOSsoft] # zlib-1.2.3/cd/
[Root @ CentOSsoft] #./configure -- prefix =/usr/local/zlib -- enable-shared
[Root @ CentOSsoft] # make
[Root @ CentOSsoft] # make install
[Root @ CentOSsoft] #
[Root @ CentOSsoft] # cd/data/soft
# Install freetype
[Root @ CentOSsoft] # tar xvf freetype-2.1.10.tar.gz
[Root @ CentOSsoft] # freetype-2.1.10/cd/
[Root @ CentOSsoft] #./configure -- prefix =/usr/local/freetype -- enable-shared
[Root @ CentOSsoft] # make
[Root @ CentOSsoft] # make install
[Root @ CentOSsoft] #
[Root @ CentOSsoft] # cd/data/soft
# Install libpng
[Root @ CentOSsoft] # tar xvflibpng-1.2.8-config.tar.gz
[Root @ CentOSsoft] # libpng-1.2.8-config/cd/
[Root @ CentOSsoft] #./configure -- prefix =/usr/local/libpng -- enable-shared
[Root @ CentOSsoft] # make
[Root @ CentOSsoft] # make install
[Root @ CentOSsoft] #
[Root @ CentOSsoft] # cd/data/soft
# Install jpeg support
[Root @ CentOSsoft] # tar xvf restart src.v6b.tar.gz
[Root @ CentOSsoft] # jpeg-6b/cd/
[Root @ CentOSsoft] # cp/usr/bin/libtool.
[Root @ CentOSsoft] #./configure -- enable-shared
[Root @ CentOSsoft] # make
[Root @ CentOSsoft] # make install
[Root @ CentOSsoft] #
[Root @ CentOSsoft] # cd/data/soft
# Install gd library support
[Root @ CentOSsoft] # tar xvf gd-2.0.33.tar.gz
[Root @ CentOSsoft] # gd-2.0.33/cd/
[Root @ CentOSsoft] #. /configure-prefix =/usr/local/gd-with-jpeg-with-png-with-zlib =/usr/local/zlib-with-freetype =/usr/local/ freetype
[Root @ CentOSsoft] # make
[Root @ CentOSsoft] # make install
[Root @ CentOSsoft] # cd/data/soft
# Install PHP
[Root @ CentOSsoft] # tar xvf php-5.2.17.tar.gz
[Root @ CentOSsoft] # cd php-5.2.17
[Root @ CentOSsoft] # '. /configure ''-- prefix =/usr/local/php'' -- with-config-file-scan-dir =/etc/php. d ''-- with-apxs2 =/usr/local/apache2/bin/apxs'' -- with-mysql =/usr/local/mysql ''-- enable-mbstring'' -- enable- sockets ''-- enable-soap'' -- enable-ftp ''-- enable-xml'' -- with-iconv'' -- with-curl ''-- with-openssl ''-- with-gd = yes ''-- with-freetype-dir =/usr/local/freetype'' -- with-jpeg-dir =/usr/local/jpeg ''--- png-dir =/usr/local/libpng ''-- with-zlib = yes'' -- enable-pcntl ''-- enable-cgi'' -- with-gmp ''-- -libxml-dir =/usr/local/libxml2' -- with-curl =/usr/local/curl'
[Root @ CentOSsoft] #
[Root @ CentOSsoft] # make
[Root @ CentOSsoft] # make install
[Root @ CentOSsoft] # cd/data/soft
# Install APC
[Root @ CentOSsoft] # tar xvf APC-3.1.9.tgz
[Root @ CentOSsoft] # cd APC-3.1.9
[Root @ CentOSsoft] #/usr/local/php/bin/phpize
[Root @ CentOSsoft] #. /configure -- with-apxs =/usr/local/apache2/bin/apxs -- enable-apc -- enable-shared -- with-php-config =/usr/local/php/bin /php-config
[Root @ CentOSsoft] # make
[Root @ CentOSsoft] # make install
# Setting Environment Variables
[Root @ CentOSsoft] # echo "export PATH =/usr/local/php/bin: \ $ PATH:.">/etc/profile
After the above steps, the software required by the Apache, MySQL, and PHP environments has been installed.
If you like, you can purchase the "super easy Linux System Management entry book". Prize for writing a book review.