Edit History Actions Discussion

Diff for "Howto/Webpage/Wordpress"

Differences between revisions 3 and 19 (spanning 16 versions)
Revision 3 as of 2007-11-02 22:18:32
Size: 2901
Comment: categorywebapps
Revision 19 as of 2011-01-16 12:33:27
Size: 1045
Editor: independence
Comment: cleanup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= How to install Wordpress at Blinkenshell = = How to install WordPress at Blinkenshell =
Line 3: Line 3:
Blinkenshell has a special kind of webserver environment, requests for users' webpages are proxied through another webserver on the way. This might cause some problems with software that doesn't take in to account that things like this happens, Wordpress for example does not handle this properly, especially version 2.3 ([http://trac.wordpress.org/ticket/5089 WP Ticket #5089].) Wordpress uses PHP which is only available on [[Info/Supporter|Supporter accounts]].
Line 7: Line 7:
Download and unpack the latest version of Wordpress (2.3 when writing this): Download and unpack the latest version of WordPress (version 3 when writing this):
Line 9: Line 9:
{{{wget http://wordpress.org/latest.tar.gz {{{
wget http://wordpress.org/latest.tar.gz
Line 11: Line 12:
tar xvzf latest.tar.gz}}} tar xvzf latest.tar.gz
}}}
Line 15: Line 17:
{{{mv wordpress public_html/blog {{{
mv wordpress public_html/blog
Line 17: Line 20:
rm latest.tar.gz}}} rm latest.tar.gz
}}}
Line 21: Line 25:
Set up a MySQL database in the signup program if you havn't already. Edit the WordPress config file:
Line 23: Line 27:
Edit Wordpress' config file:

{{{cd public_html/blog
{{{
cd public_html/blog
Line 29: Line 32:
nano -w wp-config.php}}} nano -w wp-config.php
}}}
Line 31: Line 35:
Enter login details for the database, remember that DB_HOST should be 192.168.0.1 Enter login details for the database, DB_HOST should be localhost.
Line 35: Line 39:
Surf to: `http://<username>.blinkenshell.org/blog/wp-admin/install.php` Next, surf to: `http://<username>.blinkenshell.org/blog/wp-admin/install.php`
Line 40: Line 44:

When you press next again, the page will not load properly. Don't worry about it.

== Fix URL ==

(Instructions with pictures available here: http://www.tamba2.org.uk/wordpress/site-url/ )

Go to https://marcusson.no-ip.com/phpmyadmin/

Log in to the database.

Browse the table `wp_options`.

Edit `siteurl`.

Replace 192.168.1.12:8000 something with the URL to your blog:
{{{http://<username>.blinkenshell.org/blog/}}}

Save.

Do the same with the option `home`, it's on the second page of options.
Line 68: Line 51:
== Fixing URL redirects ==

Edit wp-includes/canonical.php

Insert this after the 4th row ("function redirect_canonical(...) {"):

{{{$do_redirect = false;}}}

This will set `do_redirect` always be false, whatever the caller tries to do.

This should take care of most problems, but not all.

== Known problems ==

When you edit certain settings etc, they will redirect you to a URL like:
`http://<username>.blinkenshell.org/~<username>/` or similar, just remove the
second occurance of your username and press enter to load the real page. Might be possible to solve this with some htaccess magic.

Using nice permanent links doesn't work out of the box, but shouldn't be impossible to get working properly with a bit of tweaking.

If you find a solution for any of these problems, please share them with us. This is wiki so you can just edit this page right away!

Good luck with your wordpress blog, and don't forget to join ["Planet Blinkenshell"]! ;)

How to install WordPress at Blinkenshell

Wordpress uses PHP which is only available on Supporter accounts.

Download and unpack

Download and unpack the latest version of WordPress (version 3 when writing this):

wget http://wordpress.org/latest.tar.gz

tar xvzf latest.tar.gz

Rename (and move):

mv wordpress public_html/blog

rm latest.tar.gz

Set up MySQL

Edit the WordPress config file:

cd public_html/blog

mv wp-config-sample.php wp-config.php

nano -w wp-config.php

Enter login details for the database, DB_HOST should be localhost.

Run installer

Next, surf to: http://<username>.blinkenshell.org/blog/wp-admin/install.php

Enter blogs name and email, press next.

Copy the password and save it in a textfile or something.

Logging in

Go back to your blog: http://<username>.blinkenshell.org/blog/

Login with "admin" and the password you saved in a textfile before.


CategoryHowto CategoryWebapps