Refer to the brother of CentOS under the compilation installation process modified after the Amazon Linux re-compiled a
Http://www.cnblogs.com/cosiray/archive/2012/03/12/2392275.html
The files required for the installation process can be downloaded through this link:
Http://pan.baidu.com/s/1qWn7VOC
The process is briefly as follows:
· Install Amazon linux
Install OS through the minimum server auto installation.
· Install System Preparation
sudo yum install libmcrypt* cmake Apr apr-util gcc gcc-c++ zlib-devel OpenSSL openssl-develpcre-devel gd kernel Keyutil S patch perl kernel-headers compat* MPFR cpp glibc libgomp libstdc++-devel pplcloog-ppl keyutils-libs-devel libcom_err-de Vel libsepol-devel libselinux-develkrb5-devel zlib-devel libxpm* freetype libjpeg* libpng* Php-common php-gdncurses* libtool* libxml2 libxml2-devel Patch bzip2* gdbm-* db4* db4-devel libedit* libedit-dev* libtidy* libxslt-devel
#install MySQL:
sudo groupadd mysqlsudo useradd-g mysql mysql-s/bin/falsesudo mkdir-p/usr/local/mysqlsudo tar xvzf mysql-5.6.26.tar.gzCD mysql-5.6.26sudo cmake.-dcmake_install_prefix=/usr/local/mysql-dsysconfdir=/etcsudo makesudo make installsudo ln-s/usr/local/mysql/lib/mysql/usr/lib/mysqlsudo ln-s/usr/local/mysql/include/mysql/usr/include/mysql #install APRsudo./configure--prefix=/usr/local/aprsudo makesudo make install#install Apr-utilsudo./configure--prefix=/usr/local/apr-util--with-apr=/usr/local/apr/bin/apr-1-configsudo makesudo make install#install pcre 8.21sudo./configure--prefix=/usr/local/pcresudo makesudo make install #install Apche./configure--prefix=/usr/local/apache2--with-apr=/usr/local/apr--with-apr-util=/usr/local/ Apr-util--with-ssl--enable-ssl--enable-module=so--enable-rewrite--enable-cgid--enable-cgi #INSTALL PHPHandle DBA failed First:sudo ln-s/usr/include/gdbm/ndbm.h/usr/include/ndbm.hsudo ln-s/usr/lib/libgdbm.so/usr/lib/libndbm.soInstall Berkeley DB 4.8 version:CD build_unix/sudo.. /dist/configure--prefix=/usr/local/db4--enable-sql_compat--enable-cxxsudo makesudo make installInstall PHP 5.5sudo./configure--prefix=/usr/local/php5 \--with-config-file-path=/etc\--with-apxs2=/usr/local/apache2/bin/apxs \--with-mysql=/usr/local/mysql \--with-mysqli=/usr/local/mysql/bin/mysql_config\--with-mysql-sock=/tmp/mysql.sock\--with-gd--with-iconv--with-freetype--with-jpeg--with-png--with-zlib \--with-libxml--enable-xml--enable-discard-path--enable-magic-quotes \--enable-safe-mode--enable-bcmath--enable-shmop--enable-sysvsem \--enable-inline-optimization--with-curlwrappers--enable-mbregex \--enable-fastcgi--enable-force-cgi-redirect--enable-mbstring \--enable-ftp--enable-gd-native-ttf--with-openssl--enable-pcntl \--enable-sockets--with-xmlrpc--enable-zip--enable-soap--without-pear \--with-gettext--with-mime-magic--enable-suhosin--enable-session--with-mcrypt \--with-pcre-regex=/usr/local/pcre--mandir=/usr/share/man--infodir=/usr/share/info \--disable-dependency-tracking--with-kerberos--with-bz2--enable-calendar--enable-dba--with-db4=/usr/local/ DB4 \--disable-cgi--with-gdbm--with-ndbm=/usr--enable-exif--enable-fpm \--with-png-dir=no--with-libedit--with-readline--with-snmp \--enable-sysvmsg--enable-sysvshm--with-tidy--enable-wddx--with-xsl--enable-zend-multibytesudo makesudo make install
This article is from the "Technical Blog" blog, please be sure to keep this source http://raytech.blog.51cto.com/7602157/1684346
Amazon Linux Compilation installs Apache 2.4 + PHP 5.5