参考这位兄弟的Centos 下的编译安装过程修改后在Amazon linux 重新编译了一次
创新互联长期为近1000家客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为分宜企业提供专业的成都做网站、成都网站设计、成都外贸网站建设,分宜网站改版等技术服务。拥有十年丰富建站经验和众多成功案例,为您定制开发。
http://www.cnblogs.com/cosiray/archive/2012/03/12/2392275.html
安装过程需要的文件可以通过此链接下载:
http://pan.baidu.com/s/1qWn7VOC
过程简略如下:
· 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 keyutils patch perl kernel-headers compat* mpfr cpp glibc libgomp libstdc++-devel pplcloog-ppl keyutils-libs-devel libcom_err-devel 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 mysql
sudo useradd -g mysql mysql -s /bin/false
sudo mkdir -p /usr/local/mysql
sudo tar xvzf mysql-5.6.26.tar.gz
cd mysql-5.6.26
sudo cmake .-DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DSYSCONFDIR=/etc
sudo make
sudo make install
sudo ln -s /usr/local/mysql/lib/mysql/usr/lib/mysql
sudo ln -s/usr/local/mysql/include/mysql /usr/include/mysql
#install APR
sudo ./configure--prefix=/usr/local/apr
sudo make
sudo make install
#install APR-UTIL
sudo ./configure--prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config
sudo make
sudo make install
#install pcre 8.21
sudo ./configure--prefix=/usr/local/pcre
sudo make
sudo 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 PHP
Handle DBA failed first:
sudo ln -s/usr/include/gdbm/ndbm.h /usr/include/ndbm.h
sudo ln -s /usr/lib/libgdbm.so /usr/lib/libndbm.so
Install Berkeley DB 4.8 version:
cd build_unix/
sudo ../dist/configure --prefix=/usr/local/db4 --enable-sql_compat --enable-cxx
sudo make
sudo make install
Install PHP 5.5
sudo ./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-multibyte
sudo make
sudo make install
网站标题:AmazonLinux编译安装Apache2.4+PHP5.5
分享URL:
http://www.cdkjz.cn/article/poogsd.html