配置MySQL,PHP和APACHE一起工作 [英] Configuring MySQL ,PHP and APACHE to work together

查看:65
本文介绍了配置MySQL,PHP和APACHE一起工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我是php新手。我只是想学习。

我正在尝试使用phpbb创建一个论坛。我也运行MySQL服务器。

虽然安装错误正在引发:

安装过程中出错

您服务器上的PHP配置不支持您选择的数据库类型



有人帮我...

干杯

解决方案

PHP可以正确地与MySQL通信吗?要确认这一点,请创建一个包含以下代码的文件,保存在webroot下并在浏览器中运行。在输出中,看看你是否能找到关于MySQL的一些信息。

[PHP]<? phpinfo()?> [/ PHP]

BTW,您使用的是哪个版本的Apache,PHP和MySQL?


也确保你的apache和php设置为正确处理mysql,因为PhP v5删除了mysql支持开箱即用并且需要一些额外的配置。不幸的设置可能会以奇怪的方式表现出来:(



您可以在这里开始搜索资源:


http ://us.php.net/mysql


我为自己创建了这个,所以每次这样做时我都不必重新发明轮子。

这是让他们一起工作必须采取的基本清单。

Apache + PHP + MySQL安装说明


它可能有点过时但它是一个很好的指南。

Hi guys,
I am new to php. I was just trying to learn.
I am trying to create a forum using phpbb. I also have MySQL server running.
While installing an error is being raised as:

An error has occurred during installation
The PHP configuration on your server doesn''t support the database type that you chose


Somebody do help me..
Cheers

解决方案

Can PHP communicate to MySQL properly? To confirm this, please make a file containing the following code, save under webroot and run in browser. In the output, see if you can find some infromation about MySQL.
[PHP]<? phpinfo()?>[/PHP]

BTW, which version of Apache, PHP and MySQL you are using?


also make sure that your apache and php are setup to deal with mysql properly as PhP v5 drops mysql support "out of the box" and some extra configuration is required. An improper setup can manifest itself in strange ways unfortunately :(


You can start a search for resources here:

http://us.php.net/mysql


I created this for myself so I wouldn''t have to re-invent the wheel every time I did this.
It is a basic list of what must be done to get them working together.

Apache+PHP+MySQL Install notes

It might be a bit out of date but it''s a good enough guide.


这篇关于配置MySQL,PHP和APACHE一起工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆