Wordpress Tips
Sep 03, 2008 in wordpress
An ongoing post of wordpress snippets
(more…)
random writings
Oct 30, 2007 in Linux, wordpress
install
sudo apt-get install wordpress
install
sudo apt-get install mysql-server-5.0
restart pc for idiots
restart
run
sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress blog.example.com
backup
sudo cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf.bak
run
sudo gedit /etc/apache2/apache2.conf
paste
########## Without using Virtual host, hosted off /blog
Alias /blog /usr/share/wordpress
<directory /usr/share/wordpress>
Options FollowSymLinks
AllowOverride Limit Options FileInfo
DirectoryIndex index.php
</directory>
restart
sudo /etc/init.d/apache2 restart
run
sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost
go to
http://localhost/blog (or your virtual host) and wordpress will walk you through the rest of the setup.
when all else fails goto (the answer will be clear)
sudo /etc/wordpress/config-localhost.php
also for reference
Mar 06, 2007 in wordpress
lists sub pages of current page
<div class="sectionpages">
<ul>
<?php
global $id;
wp_list_pages("title_li=&child_of=$id&sort_column=menu_order");
?>
</ul>
</div>