Home  >  Article  >  php教程  >  PHP(2):安装Wordpress

PHP(2):安装Wordpress

WBOY
WBOYOriginal
2016-06-06 19:58:46900browse

1. 去Wordpress官网 cn. wordpress .org ,下载安装包(wordpress-3.8.1-zh_CN.tar.gz) 2.解压缩后,拷贝到 /var/www 目录下。 代码:sudo cp -r ~/wordpress /var/www 注:/var/www是apache服务器的默认目录。 3.在浏览器输入http://localhost/phpadmin登录

1. 去Wordpress官网cn.wordpress.org,下载安装包(wordpress-3.8.1-zh_CN.tar.gz)

2.解压缩后,拷贝到/var/www目录下。

代码:sudo cp -r ~/wordpress /var/www

注:/var/www是apache服务器的默认目录。

3.在浏览器输入http://localhost/phpadmin登录数据库后,建立wordpress数据库。我的名字为(db_wordpress)

4.在浏览器输入http://localhost/wordpress,默认向导会提示你需要新建一个数据库。

你根据向导设置后会提示你,没有权限。然后你在终端里面在/var/www/wordpress文件夹下面新建一个wp-config.php文件,再进行安装。

5.此时,你在浏览器输入http://localhost/wordpress就可以访问博客了。




注:安装PHP开发工具zend studio,见http://www.geekso.com/ZendStudio100/




Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:PHP采集程序原理分析篇Next article:调优Apache, PHP