<commit_before>PresentReg
==========

PresentReg is a web-based application for presentation scheduling.

Requirement
-----------

- A Computer as Server
- Apache Web Server with Rewrite Module Enabled
- PHP5 with PDO-sqlite Driver

Server Settings
---------------

**Setup Apache Web Server**

Ubuntu 13.04:

First, install apache web server.

	$ apt-get install apache

And then, enable the rewrite module.

	$ a2enmod rewrite

Finally, restart the Apache web service.

	$ service apache restart

OS X 10.9:

Apache Web Server is built-in OS X. So, just type the command below to launch it.

	$ sudo apachectl start

And then, enable the rewrite module. Open the file `/etc/apache2/httpd.conf` and uncomment this line below.

	$ LoadModule rewrite_module libexec/apache2/mod_rewrite.so

Finally, restart the Apache web server.

	$ sudo apachectl restart

**Setup PHP5 with PDO-sqlite Driver**

Ubuntu 13.04:

	apt-get install php5-sqlite

OS X 10.9:

**Directory Permission**

First, download the source code.
	
	git clone http://github.com/KuoE0/PresentReg

And then, set the group of this directory to `www-data` or the group of apache.
	
	chgrp www-data PresentReg

To-do
-----

1. authorization for presenters, e.g. email, CAPTCHA
2. minimize the register form to view entire table

<commit_msg>add php setup for Ubuntu and OS X<commit_after>PresentReg
==========

PresentReg is a web-based application for presentation scheduling.

Requirement
-----------

- A Computer as Server
- Apache Web Server with Rewrite Module Enabled
- PHP5 with PDO-sqlite Driver

Server Settings
---------------

**Setup Apache Web Server**

Ubuntu 13.04:

First, install apache web server.

	$ apt-get install apache

And then, enable the rewrite module.

	$ a2enmod rewrite

Finally, restart the Apache web service.

	$ service apache restart

OS X 10.9:

Apache Web Server is built-in OS X. So, just type the command below to launch it.

	$ sudo apachectl start

And then, enable the rewrite module. Open the file `/etc/apache2/httpd.conf` and uncomment this line below.

	LoadModule rewrite_module libexec/apache2/mod_rewrite.so

Finally, restart the Apache web server.

	$ sudo apachectl restart

**Setup PHP5 with PDO-sqlite Driver**

Ubuntu 13.04:

	apt-get install php php5-sqlite

Finally, restart the Apache web service.

	$ service apache restart

Let's check the PHP configuration, add a file in DocumentRoot.

	$ echo '<?php phpinfo() ?>' > /var/www/info.php

Open browser and go to this site `localhost/info.php`. Find `PDO` string to check the sqlite support.

OS X 10.9:

Enable PHP module for Apache. Open the file `/etc/apache2/httpd.conf` and uncomment this line below.

	LoadModule php5_module libexec/apache2/libphp5.so

And then, copy the default php settings file.

	cp /etc/php.ini.default /etc/php.ini
	
To prevent some warning, enable output_buffering in `php.ini`.

	output_buffering = On
	
Finally, restart the Apache web server.

	$ sudo apachectl restart

Let's check the PHP configuration, add a file in DocumentRoot.

	$ echo '<?php phpinfo() ?>' > /Library/WebServer/Documents/info.php

Open browser and go to this site `localhost/info.php`. Find `PDO` string to check the sqlite support.

**Directory Permission**

First, download the source code.
	
	git clone http://github.com/KuoE0/PresentReg

And then, set the group of this directory to `www-data` or the group of apache.
	
	chgrp www-data PresentReg

To-do
-----

1. authorization for presenters, e.g. email, CAPTCHA
2. minimize the register form to view entire table


{'fraction_non_alphanumeric': 0.09365303244005642, 'fraction_numerical': 0.014104372355430184, 'mean_word_length': 3.5, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 5, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1606150', 'n_tokens_mistral': 1170, 'n_tokens_neox': 1044, 'n_words': 454}