@@ -86,126 +86,11 @@ See [milestones](https://github.com/php-censor/php-censor/milestones).
8686
8787## Installing
8888
89- * Go to the directory in which you want to install PHP Censor, for example: ` /var/www ` :
90-
91- ``` bash
92- cd /var/www
93- ```
94-
95- * Create project by Composer:
96-
97- ``` bash
98- composer create-project \
99- php-censor/php-censor \
100- php-censor.local \
101- --keep-vcs
102- ```
103-
104- Or download [ latest archive] ( https://github.com/php-censor/php-censor/releases/latest ) from GitHub, unzip it and run
105- ` composer install ` .
106-
107- * Create an empty database for your application (MySQL/MariaDB or PostgreSQL);
108-
109- * Install Beanstalkd Queue (Optional, if you are going to use a queue with Worker):
110-
111- ``` bash
112- # For Debian-based
113- aptitude install beanstalkd
114- # Check if the service is running:
115- /etc/init.d/beanstalkd status
116- # If it's not running, start it:
117- /etc/init.d/beanstalkd start
118- ```
119-
120- * Install PHP Censor itself:
121-
122- ``` bash
123- cd ./php-censor.local
124-
125- # Interactive installation
126- ./bin/console php-censor:install
127-
128- # Non-interactive installation
129- ./bin/console php-censor:install \
130- --url=' http://php-censor.local' \
131- --db-type=pgsql \
132- --db-host=localhost \
133- --db-pgsql-sslmode=prefer \
134- --db-name=php-censor \
135- --db-user=php-censor \
136- --db-password=php-censor \
137- --db-port=default \ # Value 'default': 5432 for PostgreSQL and 3306 for MySQL
138- --admin-name=admin \
139- --admin-password=admin \
140- --admin-email=' admin@php-censor.local' \
141- --queue-host=localhost \
142- --queue-port=11300 \
143- --queue-name=php-censor
144-
145- # Non-interactive installation with prepared config.yml file
146- ./bin/console php-censor:install \
147- --config-from-file=yes \
148- --admin-name=admin \
149- --admin-password=admin \
150- --admin-email=' admin@php-censor.local'
151- ```
152-
153- * [ Add a virtual host to your web server] ( docs/en/virtual_host.md ) , pointing to the ` public ` directory within your new
154- PHP Censor directory. You'll need to set up rewrite rules to point all non-existent requests to PHP Censor;
155-
156- * [ Set up the PHP Censor Worker] ( docs/en/workers/worker.md ) ;
157-
158- ## Installing via Docker
159-
160- If you want to install PHP Censor as a Docker container, you can use
161- [ php-censor/docker-php-censor] ( https://github.com/php-censor/docker-php-censor ) project.
89+ See [ Installing] ( docs/en/installing.md ) section in documentation;
16290
16391## Updating
16492
165- * Go to your PHP Censor directory (to ` /var/www/php-censor.local ` for example):
166-
167- ``` bash
168- cd /var/www/php-censor.local
169- ```
170-
171- * Pull the latest code from the repository by Git (If you want the latest ` master` branch):
172-
173- ` ` ` bash
174- git checkout master
175- git pull -r
176- ` ` `
177-
178- Or pull the latest version:
179-
180- ` ` ` bash
181- git fetch
182- git checkout < version>
183- ` ` `
184-
185- * Update the Composer dependencies: ` composer install`
186-
187- * Update the database scheme:
188-
189- ` ` ` bash
190- ./bin/console php-censor-migrations:migrate
191- ` ` `
192-
193- * Restart Supervisord workers (If you use workers and Supervisord):
194-
195- ` ` ` bash
196- sudo supervisorctl status
197- sudo supervisorctl restart < worker:worker_00>
198- ...
199- sudo supervisorctl restart < worker:worker_nn>
200- ` ` `
201-
202- Or restart Systemd workers (If you use workers and Systemd):
203-
204- ` ` ` bash
205- sudo systemctl restart < worker@1.service>
206- ...
207- sudo systemctl restart < worker@n.service>
208- ` ` `
93+ See [ Updating] ( docs/en/updating.md ) section in documentation;
20994
21095## Configuring project
21196
@@ -240,7 +125,7 @@ complete:
240125 default_mailto_address : admin@php-censor.local
241126` ` `
242127
243- More details about [configuring project](docs/en/configuring_project.md).
128+ More details about [configuring project](docs/en/configuring_project.md) in documentation .
244129
245130## Migrations
246131
0 commit comments