Installing Statusnet 0.9.x on Ubuntu Karmic
This guide will show you how to install Statusnet on Ubuntu Linux 9.10.
sudo aptitude install php-pear php5-pgsql sudo pear install db_dataobject sudo pear install mail sudo pear install net_smtp sudo pear install mail_mime
Check out the latest statusnet source code
git clone git://gitorious.org/statusnet/mainline.git cd mainline git checkout -b 0.9.x origin/0.9.x
Create a statusnet user
sudo adduser statusnet
sudo ln -s /home/ogriffin/work/mainline statusnet
Create a Postgres user and database
sudo -u postgres psql create user statusnet with password ‘vqastsk60wzr’; create database statusnet with owner statusnet encoding ‘UTF8’; \q
Import the database schema
psql -h localhost -U statusnet -d statusnet -f db/statusnet_pg.sql
Copy the default configuration file and create one for modification
cp config.php.sample config.php
Overwrite the following variables: $config[‘db’][‘database’] = ‘pgsql://statusnet:vqastsk60wzr@localhost/statusnet’; $config[‘db’][‘type’] = ‘pgsql’; $config[‘db’][‘quote_identifiers’] = true;
Create /etc/apache2/sites-available/statusnet <VirtualHost *> ServerName localhost ServerAlias 127.0.0.1
DocumentRoot /var/www/statusnet <Directory /var/www/statusnet> AllowOverride All Order allow,deny allow from all </Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined </VirtualHost>
Enable the site sudo a2ensite statusnet
Enable the rewrite and php modules
sudo a2enmod rewrite
sudo a2enmod php5