分类 Wordpress 下的文章

Wordpress in Ubuntu 9.10 can't be visited from Network



You have two options to install Wordpress in Ubuntu 9.10. The first option is to download and install Wordpress manually. If you are in a shared web hosting environment, you have to do this way.

The second option is to install it from the Ubuntu's repository. If you are the root, you can just type:

apt-get install wordpress

Everything will be installed and configured automatically for you.

However, you need to change following configuration manually, otherwise the Wordpress can only be visited at your local host, like http://localhost/wordpress/. If you visit it from network, like http://your_ip_address/wordpress, you will get an error.

You can solve it as following:

cd /etc/wordpress/

sudo cp config-localhost.php config-newhostname.php

sudo chown www-data config-newhostname.php

500 Internal Server Error & Some Plugins Not Working



When I upgraded the Wordpress to 2.9.2 and enabled the Akismet plugin, I got 500 Internal Server Error. The reason is some Wordpress 2.9.2 and some plugins need PHP 5. So, I solved the problem by adding Type and Handler for PHP 5 in the .htaccess file at the Wordpress Root Directory.

My .htaccess file looks as following:

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress