#502·php-pm

Can't bring php-pm to life in Symfony5

Author: SauerbreiCreated Jun 26, 2020Updated Oct 16, 2020
Labelsinformation needed

Basically, I did these steps:

symfony new ppm-test cd ppm-test docker run -vpwd:/var/www -p 8080:80 phppm/nginx --static-directory=public/

Output:

/var/www
+---------------------+--------------------------+
| bridge              | HttpKernel               |
| host                | 127.0.0.1                |
| port                | 8080                     |
| workers             | 8                        |
| app-env             | dev                      |
| debug               | 0                        |
| logging             | 1                        |
| static-directory    | web/                     |
| bootstrap           | PHPPM\Bootstraps\Symfony |
| max-requests        | 1000                     |
| max-execution-time  | 30                       |
| memory-limit        | -1                       |
| ttl                 | 0                        |
| populate-server-var | 1                        |
| socket-path         | /ppm/run                 |
| pidfile             | /ppm/ppm.pid             |
| reload-timeout      | 30                       |
| cgi-path            | /usr/bin/php-cgi7        |
+---------------------+--------------------------+
Starting PHP-PM with 8 workers, using StreamSelectLoop ...
--- Worker 5502 stderr ---
Uncaught Exception: Symfony Kernel class was not found in the configured locations. Given: '\AppKernel'
Application bootstrap failed. Restarting worker #5502 ...
--- Worker 5501 stderr ---
Uncaught Exception: Symfony Kernel class was not found in the configured locations. Given: '\AppKernel'
Application bootstrap failed. Restarting worker #5501 ...
--- Worker 5504 stderr ---
Uncaught Exception: Symfony Kernel class was not found in the configured locations. Given: '\AppKernel'
Application bootstrap failed. Restarting worker #5504 ...
Server is shutting down.
Stopping the process manager.

Tried then to start the server via packages: composer require php-pm/php-pm-httpkernel composer require php-pm/php-pm vendor/bin/ppm start --app-env=dev --logging=0 --debug=1 --workers=8 --port 8099 --cgi-path=

(I have no clue why I have to add --cgi-path= in order to bypass an error) Output:

/some/local/directory
+---------------------+--------------------------+
| bridge              | HttpKernel               |
| host                | 127.0.0.1                |
| port                | 8099                     |
| workers             | 8                        |
| app-env             | dev                      |
| debug               | 1                        |
| logging             | 0                        |
| static-directory    |                          |
| bootstrap           | PHPPM\Bootstraps\Symfony |
| max-requests        | 1000                     |
| max-execution-time  | 30                       |
| memory-limit        | -1                       |
| ttl                 | 0                        |
| populate-server-var | 1                        |
| socket-path         | .ppm/run/                |
| pidfile             | .ppm/ppm.pid             |
| reload-timeout      | 30                       |
| cgi-path            |                          |
+---------------------+--------------------------+
Starting PHP-PM with 8 workers, using StreamSelectLoop ...
--- Worker 5501 stderr ---
sh: 1: exec: : Permission denied
--- Worker 5502 stderr ---
sh: 1: exec: : Permission denied
--- Worker 5503 stderr ---
sh: 1: exec: : Permission denied
--- Worker 5504 stderr ---
sh: 1: exec: : Permission denied
--- Worker 5506 stderr ---
sh: 1: exec: : Permission denied
--- Worker 5507 stderr ---
sh: 1: exec: : Permission denied
--- Worker 5508 stderr ---
sh: 1: exec: : Permission denied
--- Worker 5505 stderr ---
sh: 1: exec: : Permission denied
Server is shutting down.
Stopping the process manager.

My goal is to run ppm and symfony via docker-compose. In first place I just want to get it work :D Help is very welcome :)