openbsd-ports/www/statusnet/pkg
2013-03-17 07:21:17 +00:00
..
DESCR
PLIST
README Remove duplicate information that is to be moved to the mysql README. 2013-03-17 07:21:17 +00:00

$OpenBSD: README,v 1.7 2013/03/17 07:21:17 ajacoutot Exp $

+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------

This document will briefly describe the steps needed before one can
complete the Status.net installation. After taking these steps you
should be able to browse to http://<hostname>/statusnet/install.php
and complete the installation.

Please refer to http://gitorious.org/statusnet/mainline/blobs/master/README
for a complete overview of how to setup Status.net with advanced features.

== Apache ==

You should point the Status.net installation directory to the
DocumentRoot of your web-server:
    # ln -s ../statusnet /var/www/htdocs/statusnet
(make sure you use a relative symlink since Apache is chrooted)

== MySQL==

Please add the php-mysql package to enable MySQL support in PHP.

Now connect to MySQL and create a user and database for Status.net:

	  mysqladmin -u "adminuser" --password="adminpassword" create statusnet
	  mysql -u "adminuser" --password="adminpassword" statusnet
	  mysql> GRANT ALL on statusnet.*
	  TO 'statusnet'@'localhost'
	  IDENTIFIED BY 'statusnetpassword';

== PostgreSQL ==

As of Status.net 1.1.0, the Status.net installation procedure fails if
PostgreSQL is used. The following information is for reference only.

Please add the php-pgsql package to enable PostgreSQL support in PHP.

Assuming you have an administrative account named `postgres',
you can create the 'statusnet' user and database like this:

	createuser -U postgres --pwprompt --no-superuser \
		--createdb --no-createrole statusnet

Now you can create the database for Status.net with:

	psql -U statusnet
	psql> create database statusnet
	psql> \q