Amazon Linux 编译安装 Apache 2.4 + PHP 5.5
2015-08-13 15:06
681 查看
参考这位兄弟的Centos 下的编译安装过程修改后在Amazon linux 重新编译了一次
/article/5036405.html
安装过程需要的文件可以通过此链接下载: http://pan.baidu.com/s/1qWn7VOC 过程简略如下:
・ Install Amazon linuxInstall OS through the minimum server auto installation.・ Install system preparationsudo 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:
/article/5036405.html
安装过程需要的文件可以通过此链接下载: http://pan.baidu.com/s/1qWn7VOC 过程简略如下:
・ Install Amazon linuxInstall OS through the minimum server auto installation.・ Install system preparationsudo 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
本文出自 “技术博客” 博客,请务必保留此出处http://raytech.blog.51cto.com/7602157/1684346
相关文章推荐
- org.apache.hadoop.hdfs.server.datanode.DataNode: Exception in BPOfferService for Block pool
- 服务器配置apache2.4+php5.6+mysql
- Spark Shuffle过程的一些小结(译 Shuffle Performance in Apache Spark)
- Linux+Apache+DB2+PHP环境配置
- django apache 发布
- No plugin found for prefix 'jetty' in the current project and in the plugin groups [org.apache.mave
- Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of
- linux下安装apache服务器
- ubnutu 环境下 在APACHE服务器上的访问方式上去除index.php
- 使用Apache Solr对数据库建立索引(包括处理CLOB、CLOB)
- apache的扩展模块安装
- apache .htaccess文件详解和配置技巧总结
- 使用Apache的ab工具进行压力测试
- java.lang.NoSuchMethodError: org.apache.neethi.Constants.isPolicyElement
- Apache Maven 使用 profile 和 filtering 实现多种环境下的资源配置管理
- Apache多站点设定
- 在Linux下编译安装Apache2(2)
- 在Linux下编译安装Apache2(1)
- 使用Apache的IOUtils实现文件下载
- Apache、php错误与配置(一)