个人工具

“UbuntuHelp:WordPress/zh”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(创建新页面为 '{{From|https://help.ubuntu.com/community/WordPress}} {{Languages|UbuntuHelp:WordPress}} [http://www.wordpress.org Wordpress] is a popular web publishing software, most commonly ...')
 
第1行: 第1行:
 +
{{Translation}}
 
{{From|https://help.ubuntu.com/community/WordPress}}
 
{{From|https://help.ubuntu.com/community/WordPress}}
 
{{Languages|UbuntuHelp:WordPress}}
 
{{Languages|UbuntuHelp:WordPress}}
[http://www.wordpress.org Wordpress] is a popular web publishing software, most commonly used for weblogs (also known as "blogs"). 
+
[http://www.wordpress.org Wordpress] 是一个流行的Web发布软件,最常用于博客。
Follow these instructions to install Wordpress on Ubuntu 6.06 (Dapper Drake).
+
按照下面的说明在Ubuntu6.06(Dapper Drake)上安装WordPress
=== LAMP Installation ===
+
=== LAMP 安装 ===
Wordpress runs on the LAMP (Linux, Apache, MySQL, PHP) stack of applications.
+
Wordpress运行在LAMP(Linux, Apache, MySQL, PHP)套件应用上。
First you need to install and configure LAMP. See the [[UbuntuHelp:ApacheMySQLPHP|ApacheMySQLPHP]] page.
+
首先你需要安装和配置LAMP。参见[[UbuntuHelp:ApacheMySQLPHP|ApacheMySQLPHP]]
=== Enable the Universe repository ===
+
=== 启用Universe软件库 ===
* [[UbuntuHelp:Repositories/CommandLine| I am using Ubuntu server (command line)]]
+
* [[UbuntuHelp:Repositories/CommandLine| 我在使用Ubuntu服务器(命令行)]]
* [[UbuntuHelp:AddingRepositoriesHowto| I am using a desktop]]
+
* [[UbuntuHelp:AddingRepositoriesHowto| 我在使用Ubuntu桌面]]
=== Install Wordpress ===
+
=== 安装Wordpress ===
Use [[UbuntuHelp:InstallingSoftware| any method]] to install
+
使用 [[UbuntuHelp:InstallingSoftware| 任何方法]]安装
 
<pre><nowiki>
 
<pre><nowiki>
 
wordpress php5-gd  
 
wordpress php5-gd  
 
</nowiki></pre>
 
</nowiki></pre>
The following will install Wordpress in the /wordpress directory of your default web site.  To put it somewhere else, alter these commands to suit.
+
接下来将要安装Wordpress到你的默认网站的/wordpress目录。如果要安装到别的地方,改变这些命令来满足。
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo ln -s /usr/share/wordpress /var/www/wordpress  
 
sudo ln -s /usr/share/wordpress /var/www/wordpress  
第22行: 第23行:
 
sudo /etc/init.d/apache2 restart
 
sudo /etc/init.d/apache2 restart
 
</nowiki></pre>
 
</nowiki></pre>
Now, browse to "http://localhost/wordpress" in your browser and click on the "install.php" link.
+
现在,在你的浏览器中浏览"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=wordpress1.jpg
 
https://help.ubuntu.com/community/WordPress?action=AttachFile&do=get&target=wordpress2.jpg
 
https://help.ubuntu.com/community/WordPress?action=AttachFile&do=get&target=wordpress2.jpg
The configuration changes the password of the MySQL user you use. You need to create a different MySQL user if you want to set up other web applications.
+
 
Once installed, to change the url of your site, link the file /etc/wordpress/config-localhost.php to /etc/wordpress/config-my.url.com.php as well as changing the url in the wordpress configuration Options menu.
+
用配置改变你使用的MySQL用户的密码。如果你想设立其他网络应用,你需要新建一个不同的MySQL用户。
For example, if my dns was ''hello.homelinux.net''
+
一旦安装,如要改变你的网站的URL,将文件/etc/wordpress/config-localhost.php链接到/etc/wordpress/config-my.url.com.php,同时在Wordpress设置选项菜单中改变URL。
 +
例如,如果我的DNS是"hello.homelinux.net"
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo ln -s /etc/wordpress/config-localhost.php /etc/wordpress/config-hello.homelinux.net.php
 
sudo ln -s /etc/wordpress/config-localhost.php /etc/wordpress/config-hello.homelinux.net.php
 
</nowiki></pre>
 
</nowiki></pre>
 
https://help.ubuntu.com/community/WordPress?action=AttachFile&do=get&target=wordpress3.jpg
 
https://help.ubuntu.com/community/WordPress?action=AttachFile&do=get&target=wordpress3.jpg
Change the URLs to:
+
改变URLs到:
 
https://help.ubuntu.com/community/WordPress?action=AttachFile&do=get&target=wordpress4.jpg
 
https://help.ubuntu.com/community/WordPress?action=AttachFile&do=get&target=wordpress4.jpg
=== Troubleshooting ===
+
=== 疑难解答 ===
==== Error when running setup-mysql ====
+
==== 运行setup-mysql时出现错误 ====
While installing wordpress you may encounter the following error.
+
当安装wordpress时,你可能遇到下列错误。
 
<pre><nowiki>
 
<pre><nowiki>
 
$ sudo sh /usr/share/doc/wordpress/examples/setup-mysql -n (your mysql user) localhost
 
$ 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
 
/usr/share/doc/wordpress/examples/setup-mysql: 38: Syntax error: Bad substitution
 
</nowiki></pre>
 
</nowiki></pre>
This issue seems to be Edgy related. I did not encounter the error using Dapper. Here is a [http://www.mail-archive.com/[email protected]/msg199581.html link] to the bug reported on the Debian mailing list.
+
这个问题似乎与Edgy(指Ubuntu 6.10 版)有关。我使用Dapper(Ubuntu 6.06 LTS版)时没有遇到这个错误。这里是一个提交到Debian邮件列表的BUG的[http://www.mail-archive.com/[email protected]/msg199581.html 链接]
Note: the issue seems to appear on Gutsy as well, only that the error code is slightly different:
+
注意:这个问题似乎在Gutsy(Ubuntu 7.10 版)上也存在,只是错误代码有点不同。
 
<pre><nowiki>
 
<pre><nowiki>
 
/usr/share/doc/wordpress/examples/setup-mysql: 37: Syntax error: Bad substitution
 
/usr/share/doc/wordpress/examples/setup-mysql: 37: Syntax error: Bad substitution
 
</nowiki></pre>
 
</nowiki></pre>
To correct this, you first need to remove any configuration that may have already been created:
+
要修正这个问题,你首先需要删除任何已经建立的配置。
 
<pre><nowiki>
 
<pre><nowiki>
 
rm /etc/wordpress/config-localhost.php
 
rm /etc/wordpress/config-localhost.php
 
</nowiki></pre>
 
</nowiki></pre>
Then run the same command but using ''bash'' instead of ''sh'':
+
然后运行相同的命令,但是用"bash"来取代"sh'
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n (your mysql user) localhost
 
sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n (your mysql user) localhost
 
</nowiki></pre>
 
</nowiki></pre>
=== External Links ===
+
=== 外部链接 ===
The following are unverified suggestions made by users.
+
下面是用户提出的未经验证的建议。
 
==== Turnkey Linux ====
 
==== Turnkey Linux ====
An Ubuntu-based [[UbuntuHelp: http://www.turnkeylinux.org/appliances/wordpress | WordPress appliance ]] is one of the easiest ways to get up and running with WordPress on Ubuntu. It's part of a family of pre-integrated [[UbuntuHelp: http://www.turnkeylinux.org/ | TurnKey Linux ]] [[UbuntuHelp: http://www.turnkeylinux.org/appliances | Software Appliances ]] based on Ubuntu 8.04.2 (Hardy LTS).
+
一个基于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:UbuntuHelp]]

2009年8月1日 (六) 16:29的版本

Wordpress 是一个流行的Web发布软件,最常用于博客。 按照下面的说明在Ubuntu6.06(Dapper Drake)上安装WordPress

LAMP 安装

Wordpress运行在LAMP(Linux, Apache, MySQL, PHP)套件应用上。 首先你需要安装和配置LAMP。参见ApacheMySQLPHP

启用Universe软件库

安装Wordpress

使用 任何方法安装

wordpress php5-gd 

接下来将要安装Wordpress到你的默认网站的/wordpress目录。如果要安装到别的地方,改变这些命令来满足。

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

现在,在你的浏览器中浏览"http://localhost/wordpress",点击"install.php"链接。 WordPress?action=AttachFile&do=get&target=wordpress1.jpg 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"

sudo ln -s /etc/wordpress/config-localhost.php /etc/wordpress/config-hello.homelinux.net.php

WordPress?action=AttachFile&do=get&target=wordpress3.jpg 改变URLs到: WordPress?action=AttachFile&do=get&target=wordpress4.jpg

疑难解答

运行setup-mysql时出现错误

当安装wordpress时,你可能遇到下列错误。

$ 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

这个问题似乎与Edgy(指Ubuntu 6.10 版)有关。我使用Dapper(Ubuntu 6.06 LTS版)时没有遇到这个错误。这里是一个提交到Debian邮件列表的BUG的链接。 注意:这个问题似乎在Gutsy(Ubuntu 7.10 版)上也存在,只是错误代码有点不同。

/usr/share/doc/wordpress/examples/setup-mysql: 37: Syntax error: Bad substitution

要修正这个问题,你首先需要删除任何已经建立的配置。

rm /etc/wordpress/config-localhost.php

然后运行相同的命令,但是用"bash"来取代"sh':

sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n (your mysql user) localhost

外部链接

下面是用户提出的未经验证的建议。

Turnkey Linux

一个基于Ubuntu的 WordPress 应用是在Ubuntu上建立和运行WordPress最简单的方式之一。这是预集成系列的一部分 TurnKey Linux Software Appliances ,给予Ubuntu 8.04.2 (Hardy LTS).