php-pm / php-pm-httpkernel

HttpKernel adapter for use of Symfony and Laravel frameworks with PHP-PM
MIT License
246 stars 72 forks source link

Uncaught Error: Class 'PHPPM\Bridges\HttpKernel' not found #165

Closed necrogami closed 4 years ago

necrogami commented 4 years ago

I've installed both php-pm and php-pm-httpkernel into a laravel 6 when running ppm start --bootstrap=laravel --app-env=prod --debug=0 --logging=0 --workers=20

i get this:

$ ppm start --bootstrap=laravel --app-env=prod --debug=0 --logging=0 --workers=20
/mnt/c/Users/djnec/code/meh
+---------------------+---------------------+
| bridge              | HttpKernel          |
| host                | 127.0.0.1           |
| port                | 8080                |
| workers             | 20                  |
| app-env             | prod                |
| debug               | 0                   |
| logging             | 0                   |
| static-directory    |                     |
| bootstrap           | laravel             |
| 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.4 |
+---------------------+---------------------+
Starting PHP-PM with 20 workers, using StreamSelectLoop ...
--- Worker 5504 stderr ---
Uncaught Error: Class 'PHPPM\Bridges\HttpKernel' not found
--- Worker 5506 stderr ---
Uncaught Error: Class 'PHPPM\Bridges\HttpKernel' not found
Application bootstrap failed. Restarting worker #5504 ...
Application bootstrap failed. Restarting worker #5506 ...
--- Worker 5501 stderr ---
Uncaught Error: Class 'PHPPM\Bridges\HttpKernel' not found
--- Worker 5502 stderr ---
Uncaught Error: Class 'PHPPM\Bridges\HttpKernel' not found
--- Worker 5503 stderr ---
Uncaught Error: Class 'PHPPM\Bridges\HttpKernel' not found
--- Worker 5505 stderr ---
Uncaught Error: Class 'PHPPM\Bridges\HttpKernel' not found
--- Worker 5507 stderr ---
Uncaught Error: Class 'PHPPM\Bridges\HttpKernel' not found
--- Worker 5508 stderr ---
Uncaught Error: Class 'PHPPM\Bridges\HttpKernel' not found
--- Worker 5509 stderr ---
Uncaught Error: Class 'PHPPM\Bridges\HttpKernel' not found
Application bootstrap failed. Restarting worker #5501 ...
Application bootstrap failed. Restarting worker #5502 ...
Application bootstrap failed. Restarting worker #5503 ...
Application bootstrap failed. Restarting worker #5505 ...
necrogami commented 4 years ago

Closing this as i had it globally installed and it couldn't find the files if globally installed. However when doing vendor/bin/ppm it worked.