大橙子网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

AmazonLinux编译安装Apache2.4+PHP5.5-创新互联

参考这位兄弟的Centos 下的编译安装过程修改后在Amazon linux 重新编译了一次

成都网络公司-成都网站建设公司成都创新互联十余年经验成就非凡,专业从事成都做网站、网站建设,成都网页设计,成都网页制作,软文平台1元广告等。十余年来已成功提供全面的成都网站建设方案,打造行业特色的成都网站建设案例,建站热线:18982081108,我们期待您的来电!

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

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


网站题目:AmazonLinux编译安装Apache2.4+PHP5.5-创新互联
网站网址:http://dzwzjz.com/article/djdepp.html
在线咨询
服务热线
服务热线:028-86922220
TOP