Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] redhat5用rpm装mysql后,装php怎么配置with-mysql

[复制链接]
jackiwen 发表于 2010-11-25 17:23:05 | 显示全部楼层 |阅读模式
请教redhat5装lamp,mysql用官方的server.rpm和client.rpm。apache用源码包安装的,请问配置php时,--with-mysql路径怎么写?我这样配置:./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/var/lib/mysql   结果这样配置不对,出来后php不能加载mysql,直接--with-mysql也不行,请问,应该怎么配置?谢谢了。问题补充:
已经启动了mysql了。
qls168 发表于 2010-11-25 17:38:01 | 显示全部楼层
只懂WIN2006+IIS60
回复

使用道具 举报

xiaoyuwxz 发表于 2010-11-25 19:02:35 | 显示全部楼层
--with-mysql=[DIR] 指定mysql路径
回复

使用道具 举报

wdlinux.cn 发表于 2010-11-25 22:06:05 | 显示全部楼层
--with-mysql=/usr

回复

使用道具 举报

dcomman 发表于 2010-11-26 12:43:48 | 显示全部楼层
with 后面跟mysql的安装路径。(可以用 whereis 查询)
回复

使用道具 举报

juhuacha 发表于 2010-11-26 14:51:18 | 显示全部楼层


不错哦,东西很好

内容很新

期待更好的帖子






Signature-------------------------------------------------------------------------------------


We are what we repeatedly do. Excellence, therefore, is not an act, but a habit ugg Classic Mini  ugg classic tall  ugg classic cardy  ugg classic short  UGG Bailey Button
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-22 15:34 , Processed in 0.311612 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表