Skip to content

Commit

Permalink
Merge pull request #3 from EpicVoyage/master
Browse files Browse the repository at this point in the history
Added basic introduction to PHP workers.
  • Loading branch information
chr15m authored Jul 7, 2024
2 parents 6748deb + c2fa823 commit c57bbf4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/configuration/procfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ worker: background_worker

## Worker Types

`piku` supports six different kinds of worker processes:
`piku` supports seven different kinds of worker processes:

```bash
# A module to be loaded by uwsgi to serve HTTP requests
Expand All @@ -33,6 +33,15 @@ Each of these has slightly different features:

Also, in this mode `uwsgi` will talk to `nginx` via a Unix socket, so you don't need to worry about the HTTP server at all.

### `php`

`php` workers will execute PHP code in files with the `.php` extension and serve other files. For security reasons, files with the '.inc' extension are not executed.

!!! note
You will need to install the [uwsgi-plugin-php](https://packages.debian.org/stable/web/uwsgi-plugin-php) package for Debian-based systems, such as Ubuntu, or the equivalent for your distro. This package is available for Ubuntu [20.04](https://packages.ubuntu.com/focal/uwsgi-plugin-php) and [24.04](https://packages.ubuntu.com/noble/uwsgi-plugin-php), but seems to have been withdrawn from 22.04.
!!! note
If you place a `php.ini` file in the root of your app, the PHP interpreter for this app will ignore the default system `php.ini`. If your distro is configured to include additional files from an auxiliary directory, those files will continue to be processed.

### `web`

`web` workers can be literally any executable that `uwsgi` can run and that will serve HTTP requests. They must (by convention) honor the `PORT` environment variable, so that the `nginx` reverse proxy can talk to them.
Expand Down

0 comments on commit c57bbf4

Please sign in to comment.