StatusNet

From CSLabsWiki

Jump to: navigation, search

Details of Setup on Ubuntu Server 9.04

The README is highly recommended reading. Very detailed and will explain how to enable some of the more advanced features. Described here is a very basic setup.

Enable Apache/PHP modules

 cd /etc/apache2/mods-enabled
 sudo ln -s ../mods-available/rewrite.load .
 sudo apt-get install php5-curl php5-gd php5-mysql mysql php5-cli

If you enable fancy urls Make sure to all use the following in your apache config (or the virtualHost config for your statusnet install):

 AllowOverride All

Restart apache

 /etc/init.d/apache2 restart

Extract tar and setup some permissions

 tar xf statusnet-0.8.1.tar.gz
 sudo mv statusnet-0.8.1 /var/www/statusnet
 sudo chgrp www-data /var/www/statusnet/avatar
 sudo chmod g+w /var/www/statusnet/avatar

Setup database and basic configuration

 sudo mysqladmin -u root -p create statusnet
 sudo mysql -u root -p statusnet < /var/www/statusnet/db/statusnet.sql

Make a mysql user and grant access to <your choice laconica user> (SELECT,INSERT,DELETE,UPDATE) For example from a mysql prompt run

 GRANT ALL on statusnet.*
 TO 'statuser'@'localhost'
 IDENTIFIED BY 'statpassword';


 sudo cp /var/www/statusnet/config.php.sample /var/www/laconica/config.php

Edit the database line

 sudo vi /var/www/laconica/config.php 

Follow the README for more details

For sending mail,

 tasksel 

- Mail server --> internet site.


Related Project(s):

Personal tools