Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config
.gitignore
README.md
README_ja.md
_opdeploy.py
_opinstall.py
_opremove.py
_opsetup.py
setup.py

README.md

opsetup

under construction

How to Use

Setup database parameter

$ mkdir ~/.openpne
$ cp config/config.sample ~/.openpne/config
$ vim ~/.openpne/config

Exec Example getting source and install

$ _opsetup.py OpenPNE-3.8.1 381sns.example.com -i

Exec Example only install

this command use current directory's name to dbname replacing '.' or '-' to '_'

$ cd $OPENPNE_DIR
$ _opinstall.py

You can deploy in /var/www/sns (default) using symlink as follow command:

$ _opdeploy.py

Server Setup

Required

mod_rewrite

mod_vhost_alias

Settings

Apache

if you write 'base_domain=sns.example.com' and 'sns_base_dir=/var/www/sns' in config file, you can use wild card domain setting as follow:

<VirtualHost *:80>
  ServerName .sns.example.com
  ServerAlias *.sns.example.com
  Options -Indexes +FollowSymLinks
  VirtualDocumentRoot "/var/www/sns/%0/web"
</VirtualHost>

MySQL

if you write 'prefix=openpne' in config file, you can grant privileges as follow:

mysql> grant all privileges on `openpne_%`.* to sns_user@'localhost' identified by '******';
Something went wrong with that request. Please try again.