标签:PHP
1、首先安装GD库和GD库关联程序 ,用来处理和生成图片4、解压PHP压缩包,并配置PHP,编译
./configure \
--prefix=/usr/local/php \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-gd \
--with-mysql=/usr/local/mysql \
--with-config-file-path=/etc \
--enable-sqlite-utf8 \
--with-zlib-dir \
--with-libxml-dir \
--with-freetype-dir \
--with-jpeg-dir \
--with-png-dir \
--with-ttf \
--with-iconv \
--with-openssl \
--with-gettext \
--enable-mbstring \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--enable-static \
--enable-zend-multibyte \
--enable-inline-optimization \
--enable-sockets \
--enable-soap \
--enable-ftp \
--disable-ipv6
5、编辑Apache配置文件,让其支持PHP vim /usr/local/apache/conf/httpd.conf
6、更改Apache首页,cd /usr/local/apache/htdocs/ 编辑index.php 重启服务
标签:PHP
原文地址:http://blog.51cto.com/13640803/2121991