禅道bug安装报错

 

 

[root@lnmp src]# grep "session.save" /etc/php.ini
; http://php.net/session.save-handler
session.save_handler = files
;     session.save_path = "N;/path"
;     session.save_path = "N;MODE;/path"
; http://php.net/session.save-path
session.save_path = "/tmp"
;       (see session.save_path above), then garbage collection does *not*

 

PHP中PDO_MYSQL扩展安装

[root@lnmp PDO_MYSQL-1.0.2]# ls
config.m4  mysql_driver.c     pdo_mysql.c      php_pdo_mysql_int.h
CREDITS    mysql_statement.c  php_pdo_mysql.h  php_pdo_mysql_sqlstate.h

 http://pecl.php.net/package/PDO_MYSQL

[root@lnmp PDO_MYSQL-1.0.2]# /app/server/php/bin/phpize 
Configuring for:
PHP Api Version:         20121113
Zend Module Api No:      20121212
Zend Extension Api No:   220121212
[root@lnmp PDO_MYSQL-1.0.2]# ./configure --with-php-config=/app/server/php/bin/php-config --with-pdo-mysql=/app/server/mysql

在make之前还要做一个mysql的header文件的软连接。因为mysql安装的时候指定了目录,不做软连接的话,还是找不到header文件。

[root@lnmp PDO_MYSQL-1.0.2]# ln -s /app/server/mysql/include/* /usr/local/include/
[root@lnmp PDO_MYSQL-1.0.2]# make && make install

生成如下堤示:

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /app/server/php/lib/php/extensions/no-debug-non-zts-20121212/
[root@lnmp extensions]# ls /app/server/php/lib/php/extensions/no-debug-non-zts-20121212/
opcache.a  opcache.so  pdo_mysql.so

posted @ 2016-09-11 13:24  bass  阅读(599)  评论(0编辑  收藏  举报