个人工具
登录
查看“UbuntuHelp:WordPress”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:WordPress”的源代码
来自Ubuntu中文
←
UbuntuHelp:WordPress
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/WordPress}} {{Languages|UbuntuHelp:WordPress}} [http://www.wordpress.org Wordpress] is a popular web publishing software, most commonly used for weblogs (also known as "blogs"). Follow these instructions to install Wordpress on Ubuntu 6.06 (Dapper Drake). === LAMP Installation === Wordpress runs on the LAMP (Linux, Apache, MySQL, PHP) stack of applications. First you need to install and configure LAMP. See the [[UbuntuHelp:ApacheMySQLPHP]] page. === Enable the Universe repository === * [[UbuntuHelp:Repositories/CommandLine| I am using Ubuntu server (command line)]] * [[UbuntuHelp:AddingRepositoriesHowto| I am using a desktop]] === Install Wordpress === Use [[UbuntuHelp:InstallingSoftware| any method]] to install <pre><nowiki> wordpress php5-gd </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. <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 sudo /etc/init.d/apache2 restart </nowiki></pre> Now, browse to "http://localhost/wordpress" in your browser and click on the "install.php" link. 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 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. For example, if my dns was ''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 Change the URLs to: https://help.ubuntu.com/community/WordPress?action=AttachFile&do=get&target=wordpress4.jpg === Troubleshooting === ==== Error when running setup-mysql ==== While installing wordpress you may encounter the following error. <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> This issue seems to be Edgy related. I did not encounter the error using Dapper. Here is a [http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg199581.html link] to the bug reported on the Debian mailing list. To correct this, you first need to remove any configuration that may have already been created: <pre><nowiki> rm /etc/wordpress/config-localhost.php </nowiki></pre> Then run the same command but using ''bash'' instead of ''sh'': <pre><nowiki> sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n (your mysql user) localhost </nowiki></pre> [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:WordPress
。