UbuntuHelp:WordPress
来自Ubuntu中文
Oneleaf(讨论 | 贡献)2007年5月13日 (日) 11:24的版本 (New page: {{From|https://help.ubuntu.com/community/WordPress}} {{Languages|php5}} [http://www.wordpress.org Wordpress] is a popular web publishing software, most commonly used for weblogs (also kn...)
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
Install Wordpress
Use any method to install
wordpress php5-gd </code> 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> 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 </code> Now, browse to "http://localhost/wordpress" in your browser and click on the "install.php" link. attachment:wordpress1.jpg attachment: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> sudo ln -s /etc/wordpress/config-localhost.php /etc/wordpress/config-hello.homelinux.net.php </code> attachment:wordpress3.jpg Change the URLs to: attachment:wordpress4.jpg === Troubleshooting === ==== Error when running setup-mysql ==== While installing wordpress you may encounter the following error. <pre> $ 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 </code> 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. To correct this, you first need to remove any configuration that may have already been created: <pre> rm /etc/wordpress/config-localhost.php </code> Then run the same command but using ''bash'' instead of ''sh'': <pre> sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n (your mysql user) localhost </code> [[category:UbuntuHelp]]