下载解压
进入目录 ./configur --prefix=/woking/httd --enable-so
make & make install
启动 /woking/httpd/conf/apachectl start
配置文件的修改 :
安装 php 模块 红色的要修改为对应的路径
./configure
--prefix=/working/php-5.6/ \
--with-config-file-path=/working/php-5.6/etc/ \
--with-apxs2=/working/httpd-2.2/bin/apxs \
--with-mysql=/usr/share/mysql \
--with-zlib --enable-bcmath --disable-fileinfo --enable-ftp \
--with-gettext --with-mhash --enable-mbstring \
--with-mysqli --with-pdo-mysql --with-mysql \
--with-png-dir --with-freetype-dir --with-jpeg-dir --with-gd \
--enable-shmop --enable-pcntl --enable-fpm \
--enable-soap --enable-sockets \
--enable-sysvsem --enable-zip
错误以及解决 :
yum -y install libjpeg-devel
yum -y install freetype-devel