Skip to content

Commit

Permalink
doc: Improve the doc to check requirements in production
Browse files Browse the repository at this point in the history
  • Loading branch information
marien-probesys committed Aug 1, 2023
1 parent bf01124 commit 8f5ce4a
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions docs/administrators/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,6 @@ $ composer --version
Composer version 2.4.4 2022-10-27 14:39:29
```

Check the following PHP extensions are installed:

- ctype
- iconv
- intl
- pdo + pdo\_pgsql or pdo\_mysql (depending on which database you use)
- sodium
- xsl
- zip

```console
$ php -m
[PHP Modules]
...
```

## Create the database

Create a dedicated user and database for Bileto.
Expand Down Expand Up @@ -96,10 +80,28 @@ Clone the code:

```console
$ git clone https://github.com/Probesys/bileto.git
$ cd bileto
```

If your user doesn't have the permission to write in this folder, execute the command as `root`.

## Check the PHP extensions

Check that the PHP extensions are installed:

```console
$ composer check-platform-reqs
Checking platform requirements for packages in the vendor dir
composer-plugin-api 2.3.0 success
composer-runtime-api 2.2.2 success
ext-ctype 8.1.10 success
...
ext-zip 1.19.5 success
php 8.1.10 success
```

If requirements are not met, you’ll have to install the missing extensions.

## About file permissions

You’ll have to make sure that the system user that runs the webserver can access the files under the `/var/www/bileto` directory.
Expand All @@ -109,7 +111,6 @@ In this documentation, we’ll use `www-data` because it is the most generic nam
Set the owner of the files to the user that runs your webserver:

```console
$ cd /var/www/bileto
$ sudo chown -R www-data:www-data .
```

Expand Down

0 comments on commit 8f5ce4a

Please sign in to comment.