Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix custom nginx and php-fpm configurations in documentation #51

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,25 @@ To add new version inside the UI go to ui/src/views/VirtualHosts.vue in the php

## local database

We use local database to store configuration, you can find it `/home/webserver*/.config/state/databases/vhosts/*.ini`, the TCP port of php-fpm which is unique, is used as an ID, so the first vhost configuration databse will be at
We use local database to store configuration, you can find it `/home/webserver1/.config/state/databases/vhosts/*.ini`, the TCP port of php-fpm which is unique, is used as an ID, so the first vhost configuration databse will be at

`/home/webserver*/.config/state/databases/vhosts/9001.ini`
`/home/webserver1/.config/state/databases/vhosts/9001.ini`

Manual customisation can be added to

nginx: add a dyn-9001.custom to `/home/webserver*/.config/state/conf.d/
php-fpm: add dyn-9001.custom to `/home/webserver*/.config/state/php{php version}-fpm-custom.d/ for example `/home/webserver*/.config/state/php7.4-fpm-custom.d/
### nginx

## sftpgo
- add a `dyn-9001.custom` to `/home/webserver1/.config/state/conf.d/`
- `vim /home/webserver1/.config/state/conf.d/dyn-9001.custom` and write a valid nginx configuration
- set the file ownership to webserver1 : `chown webserver1:webserver1 /home/webserver1/.config/state/conf.d/dyn-9001.custom`

### php-fpm

- add `dyn-9001.custom` to `/home/webserver1/.config/state/php{php version}-fpm-custom.d/` for example `/home/webserver1/.config/state/php7.4-fpm-custom.d/`
- `vim /home/webserver1/.config/state/php7.4-fpm-custom.d/dyn-9001.custom` and wriite a valid php-fpm configuration
- set the file ownership to webserver1 : `chown webserver1:webserver1 /home/webserver1/.config/state/php7.4-fpm-custom.d/dyn-9001.custom`

## sftpgo

Sftpgo is used to upload files to the webserver, once the webserver module is installed the default password and user are admin:admin at http://foo.com/sftpgo/, think to change it

Expand Down