1 .安装apache2.4
需要下载软件包:
apache2.4.12.tar.gz
apr-1.52.tar.bz2
apr-util-1.5.4.tar.bz2
tar zxvf httpd-2.4.12.tar.gz tar jxf apr-1.5.2.tar.bz2 tar jxf apr-util-1.5.4.tar.bz2 mv apr-1.5.2 httpd-2.4.12/srclib/apr mv apr-util-1.5.4 httpd-2.4.12/srclib/apr-util cd http-2.4.12 ./configure --prefix=/usr/local/apache2 --with-included-apr --enable-so --enable-deflate=shared --enable-expires=shared --enable-rewrite=shared --with-pcre make make install #查看版本 /usr/local/apache/bin/httpd -v
2. 安装php5.6
需要下的软件:
libiconv-1.13.1.tar.gz
php-5.6.11.tar.bz2
#安装libiconv tar zxf libiconv-1.13.1.tar.gz cd libiconv-1.13.1 ./configure --prefix=/usr/local/libiconv make && make install #安装php tar jxf php-5.6.11.tar.bz2 cd php-5.6.11 ./configure \ --prefix=/usr/local/php5_6 \ --with-config-file-path=/usr/local/php5_6/etc \ --with-apxs2=/usr/local/apache2/bin/apxs \ --disable-fileinfo \ --with-mysql=mysqlnd \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --with-iconv=/usr/local/libiconv --with-freetype-dir \ --with-jpeg-dir \ --with-png-dir \ --with-zlib \ --with-libxml-dir=/usr \ --enable-xml \ --disable-rpath \ --enable-bcmath \ --enable-shmop \ --enable-exif \ --enable-sysvsem \ --enable-inline-optimization \ --with-curl \ --enable-mbregex \ --enable-mbstring \ --with-mcrypt \ --with-gd \ --enable-gd-native-ttf \ --with-openssl \ --with-mhash \ --enable-pcntl \ --enable-sockets \ --with-xmlrpc \ --enable-ftp \ --with-gettext \ --enable-soap \ --disable-ipv6 \ --disable-debug \ --enable-opcache #加速扩展插件 #yum install libxml2-devel openssl-devel curl-devel gd-devel libmcrypt-devel make && make install
3 . 安装mysql
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。