编译PHP5.2.5
./configure --prefix=/usr/local/php (注意使用续行符)
--with-apxs2=/usr/local/apache/bin/apxs
--with-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config --支持mysqli
--with-libxml-dir=/usr/local/libxml2
--with-png-dir=/usr/local/lib
--with-jpeg-dir=/usr/local/jpeg6
--with-zlib=/usr/local/zlib
--with-freetype-dir=/usr/local/freetype
--with-gd=/usr/local/gd2
--enable-mbstring=all
--enable-ftp
--enable-sockets --支持mail
--with-config-file-path=/usr/local/php
--with-pdo-mysql=/usr/local/mysql
Q. The mysql driver is not currently installed
A. 解决是没有安装pdo-mysql这个扩展了,重新配置,加上--with-pdo-mysql=/usr/local/mysql/
php.ini
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo.dll
extension=php_pdo_mysql.dll
ZendFramework
linux下让apache支持mod_rewrite模块
Posted Apr 23rd, 2008 by askie
如果你的服务器apache还没有安装,那很简单,在编译apache时将 mod_rewrite模块编译进去就可以,相关文档可以在
[url]http://man.chinaunix.net/newsoft[/url]
… ew/mod/mod_rewrite. html中找到。如果你的apache已经安装好了,现在只想编译出mod_rewrite.so模块,在apache中进行加载,下面我们就介绍这个方 法。
1)首次安装apache,在编译时增加–enable-rewrite选项。
如./configure –prefix=/opt/apache –enable-so –enable-mods-shared=all –enable-rewrite –enable-cache
2)增加mod_rewrite模块
# find . -name mod_rewrite.c //在apache的源码安装目录中寻找mod_rewrite.c文件
(2.2.8在目录httpd-2.2.8/modules/mappers下)
# cd PATH/to/mod_rewrite.c //进入包含mod_rewrite.c文件的目录
# /opt/apache/bin/apxs -c mod_rewrite.c //apxs应指定绝对路径,在你当前正在使用apache的bin目录里
# /opt/apache/bin/apxs -i -a -n mod_rewrite mod_rewrite.la
如果没有什么错误的话,应该在你的apache的modules目录中编译出一个mod_rewrite.so文件。
编辑httpd.conf文件,确认httpd.conf中已经包含mod_rewrite.so的加载语句,如下:
LoadModule rewrite_module modules/mod_rewrite.so
###################################################
如果出现这个错误
Syntax error on line 329 of /usr/local/apache2/conf/httpd.conf:
Can`t loacte API module staructure `mod_rewrite_module` in file
/usr/local/apache2/modules/mod_rewrite.so:/usr/local/apache2/lib/libapr-
0.so.0:undefined symbol:mod_rewrite_module
修改http.conf
原来:httpd.conf里面写的mod_rewrite_module
改成 rewrite_module
如果重启apache出现这个错误module rewrite_module is built-in and can`t be loaded
表示模块是内建的,不用再调入,注释掉
#LoadModule rewrite_module modules/mod_rewrite.so
#####################################################
检查:
[root@www httpd-2.2.8]# ../bin/apachectl configtest
Syntax OK
这时,你的apache应该已经支持rewrite了。
vicos注:完成之后,记得重启服务器apache。
注意下一步,配置虚拟主机的时候要类似如下设置才可以生效:
<VirtualHost *:80>
DocumentRoot /var/www/www/www.fastu.cn/
ServerName
[url]www.fastu.cn[/url]
<Directory /var/www/www/www.fastu.cn/>
Options FollowSymLinks
AllowOverride All
order allow,deny
Allow from all
</Directory>
</VirtualHost>
如果AllowOverride设置为none的话,apache会不读取网站的.htaccess文件!
<VirtualHost 192.168.8.150:80>
ServerAdmin
services@3bsc.com
DocumentRoot /var/www/xinma/
ServerName
[url]www.king.com[/url]
ErrorLog logs/xinma-error_log
CustomLog "|/usr/local/apache/bin/rotatelogs /var/log/httpd/xinma/%y_%m_%d.access_log 86400" common
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
本文出自 “聆听未来
” 博客,请务必保留此出处http://kerry.blog.51cto.com/172631/114788
相关推荐
Zend Framework环境配置及第一个Hello World
Table of Contents •Introduction to Zend Framework •Overview •Installation •Learning Zend Framework •Zend Framework Quick Start •Autoloading in Zend Framework •Plugins in Zend Framework •...
详细介绍了ZendFramework环境配置,总结了配置中常常遇到的难解决问题
Whether you are learning Zend framework from scratch or looking to sharpen up your skills from previous versions, Zend Framework 2 Application Development will help you to harness the power of Zend ...
ZendFramework-1.10.4
Zend Framework 2 官方教程汉化版
Zend Framework 多数据库配置
zend framework中英文手册,包含中文手册,英文手册两个版本。
zend framework zendframework manual 手册,Zend Framework手册 中文版,有一部分还没有汉化
Zend Framework 中文 手册 2008年12月01日.chm MD5: DD29C39D12E9C0B38FD3475A12D05B73 SHA1: 1A6BBBF9311013F2FF2BF97752332160ED767526 CRC32: 88210ABD Zend Framework 入门教程(简体中文1.52版)v0.12.pdf MD5:...
PHP zend framework 教程 很好PHP zend framework 教程 很好PHP zend framework 教程 很好PHP zend framework 教程 很好PHP zend framework 教程 很好PHP zend framework 教程 很好PHP zend framework 教程 很好...
zend framework zend framework zend framework zend framework zend framework zend framework zend framework
这是基于Zend Framework 框架的CMS PHP 源代码。 安装时请下载Zend及zendx并将其放在library下。
index.php zendframework入口index.php配置
完整的zf2的官方例子,经过修改之后已经完全能运行,包括各种数据库交互操作,易理解
对于学习zendframework的新手来说,是个好东西。 只要解压到你的空间里即可使用,方便快捷。
Zend Framework 3 Developer's Guide 英文azw3 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
zendframework1.9中文版用户手册 直接从网站上下载的离线版本 非常方便 这个是.chm的 还有.exe的版本,方便大家使用。
ZendFramework 1.12.9 代码和文档.rar
zendframework2教程之多模块配置