PubSweet experimental framework. In production for some Book Sprints so we will fix bugs for the short term but we want to put all energy in PubSweet2.
PHP JavaScript HTML CSS
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
application
broadcaster
install
public
system
.gitignore
.htaccess
LICENSE
README.md
composer.json
index.php

README.md

PubSweet

An experimental framework for accelerated collaborative knowledge production. Its rough but ready. Contributions welcome but you might wish to watch at the new PubSweet which is a more modular approach.

Requirements

PHP version 5.5 or newer. Enabled php mods: ctype, mysqli MySQL 5.0.51a or newer. Nodejs server is optional.

Installation

PubSweet Ver 1 install

Install Apache/PHP/MySQL environment (e.g. http://www.ampps.com)

Download PubSweet source and unzip it in the webroot

Change permissions of directory and contents to apache2 user

chown -R www-data:www-data /var/www/pubsweet/

Change permissions of directory where epub files will

chmod 755 /var/www/pubsweet/application/epub/

enable the mod_rewrite apache module

a2enmod rewrite

The command enables the module, or, if it is already enabled, displays the words, "Module rewrite already enabled", if it was not enabled, it will enabled it, then you need to run “service apache2 restart” to activate it

Alter config file

Set your base URL

	nano /var/www/html/pubsweet/application/config/config.php

	change
		$config['base_url']   = 'http://pubsweet.local';
	to
		$config['base_url']     = 'http://IPno/pubsweet';
	or
		$config['base_url']     = 'http://YourWEBaddress/pubsweet';

		IPno : is the Ip number of your server
		YourWEBaddress : the web address of your server

	change
		$config['index_page'] = '';
		//$config['index_page'] = 'index.php';
	to
		//$config['index_page'] = '';
		$config['index_page'] = 'index.php';

Go to http://YourInstallation/install/ and follow the instructions. After executing the installation remove the /install/ folder

Go to application/config/pubsweet.php to enable/disable the use of ssl.

In your favorite browser, got to your new PubSweet site

Broadcaster installation (optional)

Install nodejs

In the "broadcaster" folder, run this:

  1. npm install 2.a node task-app.js & 2.b node app-ssl.js & if you are going to use the ssl version