博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
PHP
阅读量:6888 次
发布时间:2019-06-27

本文共 943 字,大约阅读时间需要 3 分钟。

1、首先安装GD库和GD库关联程序 ,用来处理和生成图片

yum install \
libjpeg-devel \
libpng-devel \
freetype-devel \
zlib-devel \
gettext-devel \
libXpm-devel \
libxml2-devel \
fontconfig-devel \
openssl-devel \
bzip2-devel
PHP
2、安装gd库
PHP
3、编译gd库
PHP

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
PHP
PHPPHP

5、编辑Apache配置文件,让其支持PHP vim /usr/local/apache/conf/httpd.conf

PHPPHP

6、更改Apache首页,cd /usr/local/apache/htdocs/ 编辑index.php 重启服务

PHPPHPPHPPHP

转载于:https://blog.51cto.com/13640803/2121991

你可能感兴趣的文章
关于LIUNX的文本编辑器
查看>>
RHEL6 部署 ORACLE 11gR2
查看>>
Android项目使用support v7时遇到的各种问题
查看>>
我的友情链接
查看>>
我的友情链接
查看>>
c_str函数
查看>>
Linux 用户跟用户组
查看>>
Stale NFS file handle的解决方法
查看>>
mysql之主从复制篇
查看>>
给程序员介绍一些C++开源库
查看>>
CocoaPods详解之----使用篇 pod install/pod update更新慢的问题,
查看>>
ORA-12519, TNS:no appropriate service handler found
查看>>
野蛮生长之后,未来还会留下哪几个超级APP?
查看>>
强化县级政府信息化建设
查看>>
CentOS7.3编译安装MariaDB10.2.12
查看>>
mysql安装问题
查看>>
NSString属性什么时候用copy,什么时候用strong?
查看>>
windows下安装mysql
查看>>
tomcat篇之结合apache+tomcat+memcached做session共享
查看>>
Ubuntu中获取文件名称并生成列表txt
查看>>