Installing on Fedora

The instructions below have been verified to work with:
 * Statusnet 1.1.0 on Fedora 17 (the Beefy Miracle!)

Variables (to be replaced)

 * $SNPATH : is either empty or the path on top of your webserver's root from where Statusnet will be served ("yourdomain/$SNPATH")


 * $DBUSER : is the user to be created for the statusnet database
 * $DBPASSWORD : is the password for your user for the statusnet database

Instructions
yum groups install "Web Server" yum install mysql mysql-server yum install php-gd php-mbstring php-xml
 * Install webserver group, mysql and necessary php modules

tar zxvf statusnet-someversion.tar.gz cp -a statusnet-someversion /var/www/html/$SNPATH
 * Unpack and copy statusnet into the webserver's DocumentRoot

cd /var/www/html/$SNPATH cp htaccess.sample .htaccess
 * Create .htaccess so we can later setup fancy urls

restorecon -R /var/www/html/$SNPATH
 * Fix security context

chown -R apache:root /var/www/html/$SNPATH
 * Fix permissions

cd /var/www/html/$SNPATH chcon -R -t httpd_sys_rw_content_t avatar background file chcon -t httpd_sys_rw_content_t .htaccess.
 * Set security context for writable files

setsebool -P httpd_can_sendmail=1
 * Set security flag if we want emails

mysql -u root -p
 * Create database and its user

mysql> create database statusnet; mysql> GRANT ALL on statusnet.* TO '$DBUSER'@'localhost' IDENTIFIED BY '$DBPASSWORD';


 * Create /etc/httpd/conf.d/statusnet.conf with:
 * 1) Settings for the statusnet web service

 AllowOverride All 


 * Edit /var/www/html/$SNPATH/.htaccess so:

RewriteBase /$SNPATH/

systemctl restart mysqld.service systemctl restart httpd.service
 * Restart services

firefox http://localhost/$SNPATH/install.php
 * Run installation