个人工具
登录
查看“UbuntuHelp:WordPress/zh”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:WordPress/zh”的源代码
来自Ubuntu中文
←
UbuntuHelp:WordPress/zh
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{Copyedit translation}} {{From|https://help.ubuntu.com/community/WordPress}} {{Translator|lainme}} {{Languages|UbuntuHelp:WordPress}} [http://www.wordpress.org Wordpress] 是一个流行的Web发布软件,最常用于博客。 按照下面的说明在Ubuntu6.06(Dapper Drake)上安装WordPress === LAMP 安装 === Wordpress运行在LAMP(Linux, Apache, MySQL, PHP)套件应用上。 首先您需要安装和配置LAMP。参见[[UbuntuHelp:ApacheMySQLPHP|ApacheMySQLPHP]] 。 === 启用Universe软件库 === * [[UbuntuHelp:Repositories/CommandLine| 我在使用Ubuntu服务器(命令行)]] * [[UbuntuHelp:AddingRepositoriesHowto| 我在使用Ubuntu桌面]] === 安装Wordpress === 使用 [[UbuntuHelp:InstallingSoftware| 任何方法]]安装 <pre><nowiki> wordpress php5-gd </nowiki></pre> 接下来将要安装Wordpress到您的默认网站的/wordpress目录。如果要安装到别的地方,改变这些命令来满足。 <pre><nowiki> sudo ln -s /usr/share/wordpress /var/www/wordpress sudo sh /usr/share/doc/wordpress/examples/setup-mysql -n (your mysql user) localhost # use bash instead of sh on Gutsy sudo /etc/init.d/apache2 restart </nowiki></pre> 现在,在您的浏览器中浏览"http://localhost/wordpress",点击"install.php"链接。 https://help.ubuntu.com/community/WordPress?action=AttachFile&do=get&target=wordpress1.jpg https://help.ubuntu.com/community/WordPress?action=AttachFile&do=get&target=wordpress2.jpg 用配置改变您使用的MySQL用户的密码。如果您想设立其他网络应用,您需要新建一个不同的MySQL用户。 一旦安装,如要改变您的网站的URL,将文件/etc/wordpress/config-localhost.php链接到/etc/wordpress/config-my.url.com.php,同时在Wordpress设置选项菜单中改变URL。 例如,如果我的DNS是"hello.homelinux.net" <pre><nowiki> sudo ln -s /etc/wordpress/config-localhost.php /etc/wordpress/config-hello.homelinux.net.php </nowiki></pre> https://help.ubuntu.com/community/WordPress?action=AttachFile&do=get&target=wordpress3.jpg 改变URLs到: https://help.ubuntu.com/community/WordPress?action=AttachFile&do=get&target=wordpress4.jpg === 疑难解答 === ==== 运行setup-mysql时出现错误 ==== 当安装wordpress时,您可能遇到下列错误。 <pre><nowiki> $ sudo sh /usr/share/doc/wordpress/examples/setup-mysql -n (your mysql user) localhost /usr/share/doc/wordpress/examples/setup-mysql: 38: Syntax error: Bad substitution </nowiki></pre> 这个问题似乎与Edgy(指Ubuntu 6.10 版)有关。我使用Dapper(Ubuntu 6.06 LTS版)时没有遇到这个错误。这里是一个提交到Debian邮件列表的BUG的[http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg199581.html 链接]。 注意:这个问题似乎在Gutsy(Ubuntu 7.10 版)上也存在,只是错误代码有点不同。 <pre><nowiki> /usr/share/doc/wordpress/examples/setup-mysql: 37: Syntax error: Bad substitution </nowiki></pre> 要修正这个问题,您首先需要删除任何已经建立的配置。 <pre><nowiki> rm /etc/wordpress/config-localhost.php </nowiki></pre> 然后运行相同的命令,但是用"bash"来取代"sh': <pre><nowiki> sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n (your mysql user) localhost </nowiki></pre> === 外部链接 === 下面是用户提出的未经验证的建议。 ==== Turnkey Linux ==== 一个基于Ubuntu的[[UbuntuHelp: http://www.turnkeylinux.org/appliances/wordpress | WordPress 应用]]是在Ubuntu上建立和运行WordPress最简单的方式之一。这是预集成系列的一部分[[UbuntuHelp: http://www.turnkeylinux.org/ | TurnKey Linux ]] [[UbuntuHelp: http://www.turnkeylinux.org/appliances | Software Appliances ]],基于Ubuntu 8.04.2 (Hardy LTS). [[category:UbuntuHelp]] [[category:服务器]]
该页面使用的模板:
模板:Copyedit translation
(
查看源代码
)
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
模板:Translator
(
查看源代码
)
返回至
UbuntuHelp:WordPress/zh
。