eVoid Development Weblog Burn The Land And Boil The Sea But You Can't Take The Sky From Me

20Jul/100

WordPress 3.0 & SFTP

WordPress 3.0 has a nice feature that does all the platform and plugin updating for you by just clicking an 'Update' button at the admin console. In order to do so it needs to connect to the server the blog is hosted. By the default configuration of my (and I guess almost any) server only FTP and FTPS (FTP via SSL) are available here. Since my server doesn't run a FTP server module for security reasons I looked for a way to teach SFTP (kinda FTP tunneled via SSH) to the platform and stumbled over a blog post by Raditha Dissanayake from June 2009 that described the required procedure for a Fedora box. Since I'm running Ubuntu Hardy Heron LTS I'll sum up what I had to do on that specific system:

aptitude install libssh2-1-dev php-pear php5-dev
pecl install -f ssh2
echo "extension=ssh2.so" > /etc/php5/conf.d/ssh2.ini
/etc/init.d/apache2 restart

This procedure will enable the SSH2 extension for PHP. Afterwards there will immediately be a 'SSH2' option beside FTP and FTPS located in WordPress' update dialog.

  • Share/Bookmark
18Jul/100

Update to WordPress 3.0

I have just upgraded my blog from WordPress 2.3 to 3.0.

I really like the new administrative interface and all the other new features.

Update went absolutely smoothly.

I will spend some more time on working out a suitable design the next days.

  • Share/Bookmark
2Mai/090

WordPress Stats-Plugin / URL-Umzug

Nach dem kürzlich erfolgten Serverumzug funktionierte das Stats-Plugin von WordPress nicht mehr, es wurden keine Besucherzahlen mehr angezeigt. Da sich im Zuge des Serverumzugs auch die URL des Blogs geändert hatte - Dieser ist nun unter http://evoid.de/devblog zu finden und nicht mehr unter http://evoid.de/page/devblog, auch wenn alle Anfragen an die letztere Adresse automatisch auf die neue umgeschrieben werden, Apache's htaccess lässt grüßen - habe ich die Ursache für den Fehler in diesem Zusammenhang vermutet. In der Tat benötigte es eine Änderung eines Datensatzes in der Tabelle wp_options in der Datenbank. Diesen Datensatz finden wir mit der folgenden SQL-Abfrage:

SELECT wpo.option_value FROM wp_options wpo WHERE wpo.option_name='stats_options';

Das Feld option_value müssen wir bearbeiten. Wenn es vorher - also wie von der letzten SQL-Abfrage geliefert - zum Beispiel wie folgt aussah:

a:6:{s:4:"host";s:8:"evoid.de";s:4:"path";s:13:"/page/devblog";s:7:"blog_id";i:xxxxxxx;s:7:"version";s:1:"1";s:5:"error";b:0;s:7:"api_key";s:12:"xxxxxxxxxxxx";}

Dann sollte unser SQL-Query zum Update so aussehen:

UPDATE wp_options SET option_value='a:6:{s:4:"host";s:8:"evoid.de";s:4:"path";s:13:"/page/devblog";s:7:"blog_id";i:xxxxxxx;s:7:"version";s:1:"1";s:5:"error";b:0;s:7:"api_key";s:12:"xxxxxxxxxxxx";}' WHERE option_name='stats_options';

Zu beachten ist, dass man die Länge des veränderten String-Parameters korrekt angibt.

  • Share/Bookmark