Archive for the ‘wordpress’ tag
The latest update to vsftp has, in their own words:
- Add stronger checks for the configuration error of running with a writeable
root directory inside a chroot(). This may bite people who carelessly turned
on chroot_local_user but such is life.
This kind of makes it useless for a virtual user setup. A work around has been published at https://bbs.archlinux.org/viewtopic.php?pid=1038842#p1038842 .
Essentially, if you set chroot_local_user=NO in /etc/vsftpd.conf it will solve the problem, but then you have the security issues of not having a chroot’d guest.
So I’ve migrated my blog from blogger to wordpress, with the advent of google+ this could have been a premature move, but wordpress is just *nicer*.
Some major points about this migration.
- From Google’s servers to my own
- Want to have support for multiple wordpresses
- WordPress gets things via FTP (eurgh)
So, point 1 and 2.
I made a directory in
/srv for the numerous wordpresses, and then created a mysql database ready for the blogs (WP lets you have multiple blogs on the same database, by having different prefixes). Due to wanting to have multiple users and having the FTP features, I decided that this prefix would define the internal blog name. So for example, lets make a blog with the prefix
- create the directory
- make sure the directory is owned by the
- set permissions to 775, via
sudo chmod -R 775 .
- grab the wordpress tarball and extract
- configure any traffic for your blog domain to go to
Load up your page, and configure the wordpress to point to your database, and voila, your basic wordpress set up is done.
Now, I wanted to import my blogger content, so on the dashboard, tools, import, blogger … ahh I need to install a plug-in. Oh, it needs ftp access to my server …
On to point 3
I used vsFTP, which required some fiddling with PAM. There is a sample config on the wiki page which works out of the box. If you want to test just ftp to your server using your virtual user credentials and try and create a temporary directory. If you can, job done.
So, I finally get the blogger content imported, which is fine, but for a few minor issues.
- Every title, and the content, is preceded by a single “>”
- Hey, if it is open source, I’ll see if I can find a fix …
- tags are converted to categories
- Which isn’t that much of an issue with the tag<->category converter
So, conversion done, just a pity that the only way to fix the conversion bug was to manually edit my posts.