PHP扩展模块安装
[root@wsl-001 src]# /usr/local/php/bin/php -m
[PHP Modules]
bz2
Core
ctype
date
dom
ereg
exif
fileinfo
filter
gd
hash
iconv
json
libxml
mbstring
mcrypt
mysql
mysqli
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
zlib
[Zend Modules]
[root@wsl-001 src]# cd /usr/local/src/
[root@wsl-001 src]# wget https://codeload.github.com/phpredis/phpredis/zip/develop
[root@wsl-001 src]# mv develop phpredis-develop.zip
[root@wsl-001 src]# unzip phpredis-develop.zip
[root@wsl-001 src]# cd phpredis-develop
[root@wsl-001 phpredis-develop]# /usr/local/php/bin/phpize (生成configure文件)
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
[root@wsl-001 phpredis-develop]# echo $?
1
[root@wsl-001 phpredis-develop]# yum install autoconf
[root@wsl-001 phpredis-develop]# /usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
[root@wsl-001 phpredis-develop]# echo $?
0
[root@wsl-001 phpredis-develop]# ls (zhuyi )
acinclude.m4 configure library.h redis_array_impl.h
aclocal.m4 configure.in ltmain.sh redis.c
arrays.markdown config.w32 Makefile.global redis_cluster.c
autom4te.cache COPYING missing redis_cluster.h
build crc16.h mkdeb-apache2.sh redis_commands.c
cluster_library.c CREDITS mkdeb.sh redis_commands.h
cluster_library.h debian mkinstalldirs redis_session.c
cluster.markdown debian.control package.xml redis_session.h
common.h INSTALL.markdown php_redis.h rpm
config.guess install-sh README.markdown run-tests.php
config.h.in ISSUE_TEMPLATE.md redis_array.c serialize.list
config.m4 liblzf redis_array.h tests
config.sub library.c redis_array_impl.c
[root@wsl-001 phpredis-develop]# ./configure --with-php-config=/usr/local/php/bin/php-config
[root@wsl-001 phpredis-develop]# echo $?
0
[root@wsl-001 phpredis-develop]# make && make install
[root@wsl-001 phpredis-develop]# echo $?
0
[root@wsl-001 phpredis-develop]# ls /usr/local/php/lib/php/extensions/no-debug-zts-20131226/
opcache.so redis.so (扩展模块)
[root@wsl-001 phpredis-develop]# /usr/local/php/bin/php -i |grep extension_dir (查看扩展模块所在目录)
extension_dir => /usr/local/php/lib/php/extensions/no-debug-zts-20131226 => /usr/local/php/lib/php/extensions/no-debug-zts-20131226
sqlite3.extension_dir => no value => no value
[root@wsl-001 phpredis-develop]# vim /usr/local/php/etc/php.ini
(在;extension=php_shmop.dll这一句下面添加)
;extension=php_shmop.dll
extension=redis.so
[root@wsl-001 phpredis-develop]# /usr/local/php/bin/php -m |grep redis
redis
扩展
apache rewrite教程 http://coffeelet.blog.163.com/blog/static/13515745320115842755199/ http://www.cnblogs.com/top5/archive/2009/08/12/1544098.html
apache rewrite 出现死循环 http://ask.apelearn.com/question/1043
php错误日志级别参考 http://ask.apelearn.com/question/6973
php开启短标签 http://ask.apelearn.com/question/120
php.ini详解 http://legolas.blog.51cto.com/2682485/493917