1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 15:40:12 +01:00
Vichan is the most popular and widely used imageboard software in the world. It is a free, light-weight, fast, highly configurable and user-friendly imageboard software package.
Go to file
2015-04-03 14:08:57 +08:00
8chan-captcha Rewrite report system due to flooding 2015-03-13 12:45:57 +08:00
inc Fix misleading modLog() message in dismiss 2015-04-02 07:35:14 +08:00
js Merge https://github.com/ctrlcctrlv/infinity 2015-03-29 22:36:34 +00:00
static Fix Ecuador flag 2015-03-18 19:28:07 -07:00
stylesheets Merge pull request #428 from marktaiwan/post-form 2015-03-19 12:29:58 +08:00
templates Merge branch 'master' of https://github.com/ctrlcctrlv/infinity 2015-03-30 11:54:25 +08:00
tools -c comment flag is unnecessary 2015-04-03 14:08:57 +08:00
.gitignore Merge 2015-01-22 08:04:12 +00:00
.gitmodules Edit static pages commit 2015-03-29 09:18:14 +08:00
404.php New templates: ad_top and ad_bottom. Make blank pages if you're not using them 2015-02-16 16:33:13 -08:00
banners.php Allow + in board names, add some new config vars (news+) 2014-12-14 03:25:43 -08:00
boards.php maxes.txt 2015-03-10 16:20:55 -07:00
claim-old.php Replace '8chan.co's with '8ch.net's 2015-01-14 14:15:33 -06:00
claim.php Fix claim 2015-02-16 16:10:35 -08:00
create.php Remove ReCAPTCHA from remaining pages 2015-03-18 19:27:47 -07:00
dnsbls_bypass.php Remove ReCAPTCHA from remaining pages 2015-03-18 19:27:47 -07:00
expire.php Expire update: check openBoard, fix ghost board bug 2015-03-14 22:02:16 -07:00
faq.php Translation instructions 2015-03-18 19:28:20 -07:00
index.php Fix an install bug in index.php 2015-03-11 18:01:42 +08:00
install.sql Edit static pages commit 2015-03-29 09:18:14 +08:00
LICENSE.md I've made enough commits to this project to have a spot in the license file I think :^) 2015-03-28 18:15:08 +08:00
LICENSE.Tinyboard.md move Tinyboard license 2014-04-18 11:13:41 +02:00
log.php Public action logs commit (log.php) 2015-02-25 17:21:49 -08:00
mod.php Reports JSON API, some style fixes 2015-03-30 07:13:57 +08:00
player.php Suppress warnings that might leak information 2014-08-09 12:14:56 +02:00
post.php Merge vichan 2015-03-31 16:17:20 +08:00
random.php SECURITY: Move indexed option to table...fixes unindexed boards appearing in search/random 2014-10-07 20:54:00 -07:00
README.md Let's write some more documentation 2015-03-29 10:56:17 +08:00
report.php Oops forgot a file 2015-03-13 12:53:27 +08:00
search.php remove inane code 2015-02-26 19:11:41 +09:00
settings.php Send correct header, application/json not text/json 2015-03-10 16:44:20 -07:00
translation.php Translation instructions 2015-03-18 19:28:20 -07:00

infinity

About

infinity is a fork of vichan, with the difference that infinity is geared towards allowing users to create their own boards. A running instance is at 8ch.net (new! a user of the software wrote to me that they created a Polish version: 8ch.pl)

Most things (other than installation) that apply to upstream vichan also apply to infinity. See their readme for a detailed FAQ: https://github.com/vichan-devel/vichan/blob/master/README.md

If you are not interested in letting your users make their own boards, install vichan instead of infinity.

Much like Arch Linux, infinity should be considered ``rolling release''. Unlike upstream vichan, we have no install.php. Database schema and templates are changed often and it is on you to read the Git log before updating!

Installation

Basic requirements: A computer running a Unix or Unix-like OS(infinity has been specifically tested with and is known to work under Ubuntu 14.x), Apache, MySQL, and PHP

  • Make sure Apache has read/write access to the directory infinity resides in.
  • install.php is not maintained. Don't use it.
  • As of February 22, 2015, you need the DirectIO module (dio.so). This is for compatibility with NFS.

Step 1. Create infinity's database from the included install.sql file. Enter mysql and create an empty database named 'infinity'. Then cd into the infinity base directory and run:

mysql -uroot -p infinity < install.sql
echo '+ <a href="https://github.com/ctrlcctrlv/infinity">infinity</a> '`git rev-parse HEAD|head -c 10` > .installed

Step 2. /inc/secrets.php does not exist by default, but infinity needs it in order to function. To fix this, cd into /inc/ and run:

sudo cp secrets.example.php secrets.php

Now open secrets.php and edit the $config['db'] settings to point to the 'infinity' MySQL database you created in Step 1. 'user' and 'password' refer to your MySQL login credentials. It should look something like this when you're finished:

	$config['db']['server'] = 'localhost';
	$config['db']['database'] = 'infinity';
	$config['db']['prefix'] = '';
	$config['db']['user'] = 'root';
	$config['db']['password'] = 'password';
	$config['timezone'] = 'UTC';
	$config['cache']['enabled'] = 'apc';

Step 3.(Optional) By default, infinity will ignore any changes you make to the template files until you log into mod.php, go to Rebuild, and select Flush Cache. You may find this inconvenient. To make infinity automatically accept your changes to the template files, set $config['twig_cache'].

Step 4. Infinity can function in a very barebones fashion after the first two steps, but you should probably install these additional packages if you want to seriously run it and/or contribute to it. ffmpeg may fail to install under certain versions of Ubuntu. If it does, remove it from this script and install it via an alternate method. Make sure to run the below as root:

apt-get install graphicsmagick gifsicle php5-fpm mysql-client php5-mysql php5-cli php-pear php5-apcu php5-dev; add-apt-repository ppa:jon-severinsson/ffmpeg; add-apt-repository ppa:nginx/stable; apt-get update; apt-get install nginx ffmpeg; pear install Net_DNS2; pecl install "channel://pecl.php.net/dio-0.0.7"

Page Generation

A lot of the static pages (claim.html, boards.html, index.html) need to be regenerated every so often. You can do this with a crontab.

*/10 * * * * cd /srv/http; /usr/bin/php /srv/http/boards.php
*/5 * * * * cd /srv/http; /usr/bin/php /srv/http/claim.php > /srv/http/claim.html
*/20 * * * * cd /srv/http; /usr/bin/php -r 'include "inc/functions.php"; rebuildThemes("bans");'
*/5 * * * * cd /srv/http; /usr/bin/php /srv/http/index.php

Also, main.js is empty by default. Run tools/rebuild.php to create it every time you update one of the JS files.

Have fun!