-
Notifications
You must be signed in to change notification settings - Fork 368
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
Can't bring php-pm to life in Symfony5 #502
Comments
@Sauerbrei the first error is because the Kernel cannot be located. This could be because you have not correctly mounted your current working directory to the Docker container; or depending on what you named the namespace in Re: cgi-path: you have to specify this as the PHP CGI bin file is not in a consistent location across OSs (macOS brew is: /usr/local/bin/php-cgi, Alpine is: /usr/bin/php-cgi7, CentOS is: /usr/bin/php-cgi etc etc). Depending on your OS you may have to install php-cgi explicitly as it is sometimes packaged separately. |
Hi @Sauerbrei any more info about this? |
Hey @acasademont I tried what was written above but stumbled upon more errors. After considering the documentation twice and also now, I have had no progress, so I abandon my project with php-pm. Sorry for that. |
@Sauerbrei now the error seems more clear, by default php-pm searches for the main symfony kernel at \App\Kernel or \AppKernel. If you have a custom Kernel or in a different namespace you have the So where does your Kernel class live? |
@acasademont ok, lets give it a last shot. So, I am using the default symfony kernel, no changes within the symfony skeleton. My Symfony version is 5.1.2. That means my Kernel lives at
Now, the following happens:
Here is my Repo: https://github.com/Sauerbrei/ppm-test Thank you for your help :) |
If you're using the default kernel location in App\Kernel you should not need to use those env variables, those are only for non-standard Kernel locations/names. Your repo is fine, very similar to our Symfony 5 project. I believe there must be a problem with the docker image and the folder structure & autoloading...could you try it without docker? |
Hm, this is strange...
What am I doing wrong? |
Regarding this tutorial my php tells me, PCNTL is already loaded |
Basically, I did these steps:
symfony new ppm-test
cd ppm-test
docker run -v
pwd:/var/www -p 8080:80 phppm/nginx --static-directory=public/
Output:
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:
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 :)
The text was updated successfully, but these errors were encountered: