YULLIN's Blog - Tag php

install php5.6 on centos6

本次安装系统环境为Centos6 x86_64

# cd /usr/local/src
# wget http://cn2.php.net/distributions/php-5.6.39.tar.gz
# tar xzf php-5.6.39.tar.xz

安装依赖包

# yum install gcc gcc-c++ bison bison-devel zlib-devel libmcrypt-devel mcrypt mhash-devel openssl-devel libxml2-devel libcurl-devel bzip2-devel readline-devel libedit-devel sqlite-devel

开始编译安装(这里先别急着去执行,先往文章后面看看)

# ./configure \
--prefix=/usr/local/php …

Read More

install php extension imagick

linux下配置imagick的步骤为(以centOS为例):

1. 安装ImageMagick

yum install ImageMagick-devel
/usr/local/imagemagick/bin/convert -sample 25%x25% a.jpg b.jpg #测试语句

2. 安装php的imagick扩展模块 (http://pecl.php.net/package/imagick)

wget http://pecl.php.net/get/imagick-3.1.0RC2.tgz
tar -zxvf imagick-3.1.0RC2.tgz
/usr/local/php/bin/phpize                   #在项目目录下运行phpize …

Read More