Quick and Dirty Textpattern install

I installed a new site on one of my boxes using textpattern on Ubuntu 5.10. Because I routinely forget things, I figured I’d pastebomb my notes here so that I could find them again. Isn’t Google great….

Notes Follow

Move to web root

cd /var/www

Get textpattern:

wget -c http://textpattern.com/dload/textpattern-4.0.3.tar.gz

Unpack the beast

tar -xvzf textpattern-4.0.3.tar.gz
mv textpattern-4.0.3 example.org

Fiddle with permissions:

chown -R root.root example.org
cd example.org/
chmod go+w files images

Monkey with Apache config:

emacs example.org

—— APACHE CONFIG —-
<VirtualHost *>

ServerName example.org
ServerAlias www.example.org
ServerAdmin webmaster@example.orgDocumentRoot /var/www/example.org/
<Directory />

Options FollowSymLinks
AllowOverride None

</Directory>
<Directory /var/www/example.org/>

Options SymLinksIfOwnerMatch MultiViews
AllowOverride all
Order allow,deny
allow from all

</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>
—— APACHE CONFIG —-

Activate Site:

a2ensite example.org

Restart Apache:

/etc/init.d/apache2 reload

Create mysql database:

mysql

create database example_org;
grant all privileges on example_org.* to ‘example_textp’@’localhost’ identified by ‘changeme’;
q

—— config.php —-
<?php

$txpcfg[‘db’] = ‘example_org’;
$txpcfg[‘user’] = ‘example_textp’;
$txpcfg[‘pass’] = ‘changeme’;
$txpcfg[‘host’] = ‘localhost’;
$txpcfg[‘table_prefix’] = ”;
$txpcfg[‘txpath’] = ‘/var/www/example.org/textpattern’;
$txpcfg[‘dbcharset’] = ‘latin1’;

?>
—— config.php —-

Nuke setup directory:

rm -rf /var/www/example.org/textpattern/setup

This should hold for almost any distribution, if you make appropriate changes. Fortunately, this time I didn’t have any further trouble with Apache vhost configurations.

This entry was posted in Work. Bookmark the permalink.

One Response to Quick and Dirty Textpattern install

  1. junkiest says:

    Nice tutorial…. thanks !!!

Comments are closed.