2016-07-19 13:05:02 +02:00
|
|
|
Installing PHP Censor
|
2017-01-04 13:22:20 +01:00
|
|
|
=====================
|
2016-07-17 16:20:35 +02:00
|
|
|
|
2016-07-19 11:12:28 +02:00
|
|
|
What you'll need
|
2017-01-04 13:22:20 +01:00
|
|
|
----------------
|
2016-07-19 11:12:28 +02:00
|
|
|
|
2017-01-04 14:36:54 +01:00
|
|
|
* PHP 5.6.0+
|
2016-07-19 11:12:28 +02:00
|
|
|
* A web server (Nginx or Apache)
|
2016-07-17 16:20:35 +02:00
|
|
|
* [Composer](https://getcomposer.org/download/)
|
|
|
|
* [Git](http://git-scm.com/downloads)
|
2017-01-29 12:53:00 +01:00
|
|
|
* A DB server to connect to (MySQL/MariaDB or PostgreSQL).
|
2016-07-19 11:12:28 +02:00
|
|
|
* The following functions need to be enabled: `exec()`, `shell_exec()` and `proc_open()` in php.ini.
|
2016-07-17 16:20:35 +02:00
|
|
|
* PHP must have OpenSSL support enabled.
|
|
|
|
|
2016-07-19 13:05:02 +02:00
|
|
|
Installing PHP Censor Manually
|
2017-01-04 13:22:20 +01:00
|
|
|
------------------------------
|
2016-07-17 16:20:35 +02:00
|
|
|
|
2016-07-19 13:05:02 +02:00
|
|
|
* Go to the directory in which you want to install PHP Censor, for example: `/var/www`
|
|
|
|
* [Download PHP Censor](https://github.com/corpsee/php-censor/releases/latest) and unzip it.
|
|
|
|
* Go to the PHP Censor directory: `cd /var/www/php-censor`
|
2016-07-17 16:20:35 +02:00
|
|
|
* Install dependencies using Composer: `composer install`
|
2016-12-30 17:40:14 +01:00
|
|
|
* Install PHP Censor itself: `./bin/console php-censor:install`
|
2017-01-20 14:05:25 +01:00
|
|
|
* [Add a virtual host to your web server](virtual_host.md), pointing to the `public` directory within your new PHP
|
|
|
|
Censor directory. You'll need to set up rewrite rules to point all non-existent requests to PHP Censor.
|
|
|
|
* [Set up the PHP Censor Worker](workers/worker.md), or [a cron-job](workers/cron.md) to run PHP Censor builds.
|