AD

centos LAMP installation configuration

Recently, time to sort out their own lamp installation, a lot of information online, but also according to their actual to compare ease. Method is based on the experience of their predecessors, the system is 32-bit 64-bit no time to test

apache installation
. / Configure - prefix = / usr/local/webserver/apache2 / - enable-so - enable-module = so - enable-rewrite
make
make install
# Add mod_expires automatically set to bring the installation date if you do not need this parameter
/ Usr/local/webserver/apache2/bin/apxs-i-a-c apache decompression path / modules / metadata / mod_expires.c
# Add mod_rewrite to redirect if you do not need compile-time has increased
/ Usr/local/webserver/apache2/bin/apxs-i-a-c apache decompression path / modules / mappers / mod_rewrite.c
For the avoidance of unnecessary trouble, please try to install directly in the compilation with - enable-deflate - enable-headers
- Enable-rewrite parameters.

After installation open the page that opened the machine to play, within the network open, it is not open port 80
vi / etc / sysconfig / iptables
Finally CentOS system to restart the service
/ Sbin / service iptables restart
Check the port is open
/ Sbin / iptables-L-n

ok then access issue is resolved

Install php need to install many library-related

Install libiconv
tar zxvf libiconv-1.12.tar.gz
cd libiconv-1.12
. / Configure - prefix = / usr / local / webserver / libiconv
make
make install

Installing zlib
tar zxvf zlib-1.2.3.tar.gz
cd zlib-1.2.3
. / Configure - prefix = / usr / local / webserver / zlib
make
make install

Install libpng
tar zxvf libpng-1.2.34.tar.gz
cd libpng-1.2.34
. / Configure - prefix = / usr / local / webserver / libpng
make
make install
If there is no zlib zlib installation prompts you to enter the installation directory under the lib include all the documents linked to the usr / lib usr / include or re-install zlib does not specify the installation path

Install jpeg
tar zxvf jpegsrc.v7.tar.gz
cd jpeg-7
. / Configure - prefix = / usr / local / webserver / libjpeg
make
make install

Install t1lib
tar zxvf t1lib-5.1.2.tar.gz
cd t1lib-5.1.2
. / Configure - prefix = / usr/local/webserver/t1lib - with-x = no
make without_doc
make install

Installing GD
tar zxvf gd-2.0.36RC1.tar.gz
cd gd-2.0.36RC1
. / Configure - prefix = / usr/local/webserver/gd2 \
- With-libiconv-prefix = / usr / local / webserver / libiconv \
- With-png = / usr / local / webserver / libpng \
- With-freetype = / usr/local/webserver/freetype2 \
- With-jpeg = / usr / local / webserver / libjpeg \
- With-t1lib = / usr/local/webserver/t1lib
make
make install

The encryption package installed libmcrypt
tar zxvf libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8
. / Configure - prefix = / usr / local / webserver / libmcrypt
make
If the report is not C + + is running yum install gcc-c + +
make install
cd libltdl /
. / Configure - enable-ltdl-install
make
make install

Install openssl
tar zxvf openssl-0.9.8j.tar.gz
cd openssl-0.9.8j
. / Config - prefix = / usr / local / openssl - openssldir = / usr / local / openssl
make
make install
If it is 64. / Config-fPIC - prefix = / usr / local / openssl / enable-shared

Install libxml2
tar xzvf libxml2-2.7.3.tar.gz
cd libxml2-2.7.3
. / Configure - prefix = / usr/local/webserver/libxml2
make
make install

See install mysql
****cnblogs**/vicowong/archive/2011/01/27/1946453.html
**bbs.chinaunix**/thread-3559261-1-1.html

cmake. \
-DCMAKE_INSTALL_PREFIX: PATH = / data / mysql \
-DCOMMUNITY_BUILD: BOOL = ON \
-DENABLED_PROFILING: BOOL = ON \
-DENABLE_DEBUG_SYNC: BOOL = OFF \
-DINSTALL_LAYOUT: STRING = STANDALONE \
-DMYSQL_DATADIR: PATH = / data / mysql / data \
-DMYSQL_MAINTAINER_MODE: BOOL = OFF \
-DWITH_EMBEDDED_SERVER: BOOL = ON \
-DWITH_EXTRA_CHARSETS: STRING = all \
-DWITH_SSL: STRING = bundled \
-DWITH_UNIT_TESTS: BOOL = OFF \
-DWITH_ZLIB: STRING = bundled \
标签: installation directory, parameters, lib, installation path, tar gz, sysconfig, decompression, tar zxvf, predecessors, installation configuration, libiconv, compilation, zlib, apache installation, libpng, avoidance, lamp installation
分类: OS
时间: 2011-07-18

相关文章

  1. linux CentOS LAMP installation configuration document (apache + mysql + php + phpmyadmin)

    Description: The document with the "#" the statement said that the linux command; mysql>: on beha ...
  2. CentOS LAMP installation

    CentOS wide range of sources used. This time we want in terms of how to use the CentOS installation source LAM ...
  3. CentOS 5.5 installation log - (5) LAMP basic configuration

    LAMP installation is complete, we now do the basic configuration. (A) Apache (httpd) 1 to modify the initial p ...
  4. CentOS 5.5 installation log - (2) basic system installation and LAMP installation

    Description: 1 picture used here is from the Internet got the most from: Here http://www.howtoforge.com/perfec ...
  5. centos zendce red5 ffmpeg installation configuration

    This is mainly spoke of the centos server, how to quickly set up AMP environment and the streaming media serve ...
  6. CentOS 5.5 setup log - (5) LAMP basic configuration

    LAMP installation is complete, we now do the basic configuration. (A) Apache (httpd) 1. To modify the type of ...
  7. CentOS 6.0 server installation. Configuration. Optimization (Beginners)

    Let me know about the recent head, Linux CentOS under the server installation, configuration, natural means in ...
  8. Nfs see CentOS system installation and configuration

    from http://os.51cto.com/art/201004/192831.htm http://os.51cto.com 2010-04-06 16:56 Anonymous I want to commen ...
  9. Linode VPS (LAMP + VPN) Configuration Notes

    http://www.wifay.com/blog/2010/06/28/linode- Configuration Note-lamp-vpn / yesterday on a whim, bought a Linod ...
  10. centos LAMP install and configure extensions, ssh, svn, service management

    Recommended Sites http://blog.chinaunix.net/u1/36577/showart_602182.html very comprehensive, very professional ...
  11. Notes from office server installation - installation configuration chapter

    Host Configuration: Single Intel Xeon E5405 2.0G Quad-Core CPU, 4 A 500G Seagate SATA II hard disk server, 4G ...
  12. LAMP installation Raiders

    1, for package httpd-2.2.4.tar.gz mysql-6.0.0-alpha.tar.gz php-5.2.2.tar.gz To the corresponding website can b ...
  13. CentOS Linux installation under MySQL 5.1.x

    MySQL 5.1.x under CentOS Linux installation, optimization and security configuration Download page: http://dev ...
  14. WebLogic 10.3 installation. Configuration and Management Manual (rpm)

    WebLogic 10.3 installation, configuration and management Chapter 4 for WebLogic 10.3 for SUSE linux § 2.1 Inst ...
  15. centos mysql installation

    Transfer http://blog.csdn.net/jiangfeng08/article/details/5752390 1, to chinaunix download mysql Download: htt ...
  16. Learning Notes Series ROR a Windows XP installation configuration of the environment (2)

    Recently concluded a project , Idle boredom , So prepare yourself to learn about ROR charge your energy , ROR ...
  17. JDK installation configuration

    JDK installation configuration Description: JDK installation is divided into windows and linux operating syste ...
  18. Tuxedo8.0 in xp installation configuration under

    Tuxedo8.0 in xp installation configuration under Lobular 2010-2-4 First, prepare the file before installation ...
  19. phpeclispe + xampp + zenddebuger installation configuration to debug

    1phpeclise to the corresponding address http://www.eclipse.org/downloads/ download Eclipse for PHP Developers ...