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

Does PHP-PM works on eventloop? #540

Open
arunnabraham opened this issue Jun 30, 2021 · 1 comment
Open

Does PHP-PM works on eventloop? #540

arunnabraham opened this issue Jun 30, 2021 · 1 comment

Comments

@arunnabraham
Copy link

arunnabraham commented Jun 30, 2021

As reading Issues section in Readme
"Does not work with ExtEventLoop. (So don't install php70-event, but you can try LibEventLoop php56-libevent)"

But seems like when I tried with PHP 7.4 with EventLoop it shows that works.

image

image

@hsa599
Copy link

hsa599 commented Sep 1, 2021

If you are using a nginx web server, make these config:

server {
    root /path/to/symfony/web/;
    server_name servername.com;
    location / {
        try_files $uri @ppm;
    }
    location @ppm {
        proxy_set_header Host $http_host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_pass http://127.0.0.1:8080;
    }
}

Use PPM directly

Since PPM has also a static file server (which isn't quite as fast as nginx, but works for basic usage, see Performance section), you can use PPM directly on your server or local. Do not run ppm as root (to get port like 80 working), as it does not set a new UID of the current process and would run all the time as root, which is highly unrecommended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants