php 安装php5-mysql 拓展

Your PHP installation appears to be missing the MySQL extension which is required by WordPress Error and Solution

by VIVEK GITE on APRIL 19, 2008 last updated MAY 27, 2013

in DEBIAN / UBUNTUMYSQLPHPTROUBLESHOOTING

I‘m setting up WordPress based blog system under Debian or Ubuntu Linux. I am getting an error which read as follows:

Your PHP installation appears to be missing the MySQL extension which is required by WordPress

How do I fix this problem under Debian or Ubuntu Linux?

First, make sure MySQL server is running. Type the following command at a shell prompt:
# /etc/init.d/mysql status
If MySQL is not running, enter:
# /etc/init.d/mysql start
If MySQL is not installed, type the following command to install MySQL server:
# apt-get install mysql-server
Make sure MySQL module for php5 is installed:
# dpkg --list | grep php5-mysql
To install php5-mysql module enter:
# apt-get install php5-mysql
Next, restart the Apache2 web server:
# /etc/init.d/apache2 restart
Now PHP support for MySQL should work without a problem. Also make sure you set localhost or 127.0.0.1 as MySQL hostname while performing wordpress installation.

时间: 2024-10-31 08:54:56

php 安装php5-mysql 拓展的相关文章

CentOS 6.4安装配置LAMP服务器(Apache+PHP5+MySQL)

准备篇: 1.配置防火墙,开启80端口.3306端口vi /etc/sysconfig/iptables-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #允许80端口通过防火墙-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT #允许3306端口通过防火墙 备注:很多网友把这两条规则添加到防火墙配置的最后一行,导致防火墙启动失败, 正

Ubuntu 12.04 安装 Apache2+PHP5+MySQL

LAMP是Linux web服务器组合套装的缩写,分别是Apache+MySQL+PHP.此教程教大家如何在Ubuntu 12.04 LTS server 上安装Apache2服务器,包括PHP5(mod_php)+MySQL. 此教程中使用的相关IP等设置,在你的环境中要做相应修改. 1 我们使用root账户进行安装,首先切换到root账户,输入命令: sudo su 2 安装 MySQL 5 输入命令: apt-get install mysql-server mysql-client 安装

CentOS 6.6安装配置LAMP服务器(Apache+PHP5+MySQL)

准备篇: CentOS 6.6系统安装配置图解教程 http://www.osyunwei.com/archives/8398.html 1.配置防火墙,开启80端口.3306端口 vi /etc/sysconfig/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT

Ubuntu 14.04 麒麟版安装:Apache+php5+mysql+phpmyadmin.

今天系统从原版换成麒麟版,再加上昨儿失心疯把以前的blog,为知笔记全给删除了,反正要装环境,干脆从头再来. 一.安装apache 1.打开终端:Ctrl+Alt+T,更新最新源: sudo apt-get update//apt-get 是自带的shell命令,通过它可以方便的安装源里的软件. 2.通过apt-get方式安装Apache: sudo apt-get install apache2//中途要输入Y确认 检测安装是否成功: 在浏览器输入:127.0.0.1或locahost.浏览器

CentOS 6.5安装配置LAMP服务器(Apache+PHP5+MySQL)

1.配置防火墙,开启80端口.3306端口vi /etc/sysconfig/iptables-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #允许80端口通过防火墙-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT #允许3306端口通过防火墙 备注:很多网友把这两条规则添加到防火墙配置的最后一行,导致防火墙启动失败, 正确的应该是

Ubuntu下在线安装Apache+PHP5+MySQL

1  安装Apache sudo apt-get install apache2 安装apache2 apache2安装完成以后,启动文件是/etc/init.d/apache2. sudo /etc/init.d/apache2 start 启动apachesudo /etc/init.d/apache2 stop 关闭apachesudo /etc/init.d/apache2 restart 重启apache apache2配置文件在/etc/apache2/httpd.conf ,初始文

CentOS 6.4下通过YUM快速安装配置LAMP服务器(Apache+PHP5+MySQL)

准备篇: 1.配置防火墙,开启80端口.3306端口vi /etc/sysconfig/iptables-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #允许80端口通过防火墙-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT #允许3306端口通过防火墙 备注:很多网友把这两条规则添加到防火墙配置的最后一行,导致防火墙启动失败, 正

ubuntu上安装nginx+mysql+php5-fpm(PHP5 - FastCGI Process Manager)

题外话:由于近段时间测试环境ssh链路质量不大好,经常短线.故我把整个安装过程放到screen里去执行,以防止断线中断了安装过程.执行screen -S install,这样断线后,只要再执行screen -r install 就可以恢复之前的安装界面. 1.安装mysql sudo apt-get install mysql-server mysql-client 安装过程中要设置mysql root用户的密码. 2.安装nginx sudo apt-get install nginx 3.安

阿里云服务器CentOS 5.7(64位)安装配置LAMP服务器(Apache+PHP5+MySQL)

阿里云服务器CentOS 5.7(64位)安装配置LAMP服务器(Apache+PHP5+MySQL) 转载自:http://elf8848.iteye.com/blog/1698351 一.快速安装Apache+PHP5+MySql ----------------------------------------------------- 补充:由于163的yum源上只有php5.1.6 mysql 5.0.95 版本较低,请直接看最后面的<八.卸载php5.1,mysql5.0 重新安装ph

转帖:CentOS 6安装配置LAMP服务器(Apache+PHP5+MySQL)

这篇文章主要介绍了CentOS 6 安装配置LAMP服务器(Apache+PHP5+MySQL)的方法,需要的朋友可以参考下 准备篇: 1.配置防火墙,开启80端口.3306端口vi /etc/sysconfig/iptables-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #允许80端口通过防火墙-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -