91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Amazon Linux 編譯安裝 Apache 2.4 + PHP 5.5

發布時間:2020-06-07 12:51:03 來源:網絡 閱讀:806 作者:raygtr 欄目:web開發

參考這位兄弟的Centos 下的編譯安裝過程修改后在Amazon linux 重新編譯了一次

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

 


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

健康| 洛川县| 五大连池市| 大石桥市| 安岳县| 基隆市| 贡嘎县| 东源县| 弋阳县| 洞头县| 离岛区| 湘潭市| 旬邑县| 新密市| 镇远县| 淮南市| 贡觉县| 锡林浩特市| 保山市| 丹凤县| 仁布县| 温泉县| 伊金霍洛旗| 江孜县| 简阳市| 台前县| 岑溪市| 天全县| 信阳市| 沭阳县| 松江区| 望江县| 峨山| 邵东县| 潢川县| 南安市| 朔州市| 镇巴县| 万安县| 麦盖提县| 宜宾县|