Fix and enhance README for www/statusnet. Mention that postgres doesn't work.
ok jasper
This commit is contained in:
parent
679065f208
commit
efd9e1b7d7
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.22 2013/03/11 11:44:49 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.23 2013/03/16 10:29:58 stsp Exp $
|
||||
|
||||
COMMENT= open source micro messaging platform
|
||||
|
||||
DISTNAME= statusnet-1.1.0
|
||||
REVISION= 0
|
||||
|
||||
CATEGORIES= www net
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
$OpenBSD: README,v 1.5 2011/10/16 15:20:33 ajacoutot Exp $
|
||||
$OpenBSD: README,v 1.6 2013/03/16 10:30:00 stsp Exp $
|
||||
|
||||
+-----------------------------------------------------------------------
|
||||
| Running ${FULLPKGNAME} on OpenBSD
|
||||
@ -29,8 +29,9 @@ following steps to place the mysql socket inside the chroot:
|
||||
Create a directory for the mysql socket.
|
||||
|
||||
mkdir -p /var/www/var/run/mysql
|
||||
chown _mysql:_mysql /var/www/var/run/mysql
|
||||
|
||||
Adjust your my.cnf to put the mysql socket into the chroot,
|
||||
Adjust ${SYSCONFDIR}/my.cnf to put the mysql socket into the chroot:
|
||||
|
||||
[client]
|
||||
socket = /var/www/var/run/mysql/mysql.sock
|
||||
@ -42,15 +43,18 @@ and set DBSocket in the Status.net configuration appropriately.
|
||||
|
||||
Now connect to MySQL and create a user and database for Status.net:
|
||||
|
||||
mysqladmin -u "username" --password="password" create statusnet
|
||||
|
||||
mysql> GRANT ALL on statusnet.*
|
||||
mysqladmin -u "adminuser" --password="adminpassword" create statusnet
|
||||
mysql -u "adminuser" --password="adminpassword" statusnet
|
||||
mysql> GRANT ALL on statusnet.*
|
||||
TO 'statusnet'@'localhost'
|
||||
IDENTIFIED BY 'statnetpassword';
|
||||
IDENTIFIED BY 'statusnetpassword';
|
||||
|
||||
== PostgreSQL ==
|
||||
|
||||
Please add the php-pqsql package to enable PostgreSQL support in PHP.
|
||||
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:
|
||||
@ -60,6 +64,6 @@ you can create the 'statusnet' user and database like this:
|
||||
|
||||
Now you can create the database for Status.net with:
|
||||
|
||||
pgsql -U statusnet
|
||||
psql -U statusnet
|
||||
psql> create database statusnet
|
||||
psql> \q
|
||||
|
Loading…
Reference in New Issue
Block a user