Fairly easy with the repository version.
# sudo apt-get install wordpress
# sudo cp /usr/share/wordpress/wp-config-sample.php /etc/wordpress/config-www.yoursitename.com.php
Create a MYSQL db and username. ( mysqladmin or other favorite db tool)
Edit the config file and specify the db and username created:
# sudo nano /etc/wordpress/config-www.yoursitename.com.php
** Note: I had a config issue ( wp-settings.php not found ) and needed to change the sample to specify the absolute path
Change line from:
define('ABSPATH', dirname(__FILE__).'/');
To:
define('ABSPATH', '/usr/share/wordpress/');
Configure apache virtual path ( created a new file: /etc/apache2/conf.d/wordpress ):
Alias /wordpress /usr/share/wordpress
<Directory /usr/share/wordpress>
Options FollowSymLinks
AllowOverride Limit Options FileInfo
</Directory>
Whoila. Hit http://www.yoursitename/wordpress and away you go.
The version in the repo is 2.3.3 and there is a newer one available from wordpress.com. For now, Im content running what I have. ;)
No comments:
Post a Comment