Next WP 2.3 Alpha and Beyond
Pete Lacey: Currently, we expose posts and uploads (media entries). Once 2.3 is released I hope to add support in 2.4 for WordPress pages and comments among other things.
With this fix, the code now works on PHP4 (evidence). In 2.4, I’d like to see WordPress support foreign markup, presumably as a sort of attachment. I also think the code deserves a good bit of refactoring, as there are two places where Atom is parsed (import/blogger.php
and wp-app.php
) and two places where Atom entries are created (wp-app.php
and feed-atom.php
).
Pete mentioned automation. Here’s how to install WordPress 2.3 from svn on php4 a clean system. The php5 instructions are identical, other than s/php4/php5/g
and the one workaround is not necessary for php5.
First, install Ubuntu Dapper (Feisty no longer has php4, even in universe); enable universe; install latest patches.
sudo apt-get install subversion php4 mysql-server mysql-client php4-mysql svn co http://svn.automattic.com/wordpress/trunk/ cd wordpress mkdir wp-content/uploads chmod 777 wp-content/uploads sudo ln -s `pwd` /var/www/wordpress cp wp-config-sample.php wp-config.php vi wp-config.php mysql -u root < wpinit
Make the top of wp-config.php
look like the following (note the workaround):
<?php if (!extension_loaded('mysql')) {if (!dl('mysql.so')) {exit;}} // ** MySQL settings ** // define('DB_NAME', 'wordpress'); // The name of the database define('DB_USER', 'wordpress'); // Your MySQL username
And make wpinit
look like the following:
create database wordpress; grant all privileges on wordpress.* to "wordpress"@"localhost" identified by "password"; flush privileges;
visit http://localhost/wordpress/
Follow Installation instructions, login as admin
- User => Add a new user as Author [Add User]
- Options => Permalinks => Date and name based [Update]
mysqldump -u root wordpress > wordpress.dump
Now, at any time, you can restore yourself back to a clean system with the following:
rm -rf ~/wordpress/uploads/20* mysql -u root < wpinit mysql -u root wordpress < wordpress.dump