-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
[MacOS] FPM crashes with: unknown entry 'systemd_interval' #16
Comments
A self-compiled version of the 'php-versions' branch starts the server without problems: ~/Development/rymfony/target/release/rymfony server:start
INFO - Starting PHP...
INFO - Running native PHP server with PID 65263
[Tue Aug 25 19:32:22 2020] PHP 7.4.8 Development Server (http://127.0.0.1:65535) started
INFO - PHP server is ready
INFO - PHP started with module CLI
INFO - Starting HTTP server...
INFO - Configured document root: /Users/kevin/public/
INFO - PHP entrypoint file: /Users/kevin/public/index.php
INFO - Server listening to http://127.0.0.1:8000 But as soon as I open a URL I run into #11 I don't know if that is intended, but the php-versions branch doesn't create the |
Thanks for reporting this issue! Once the My goal with this is to create the file if it doesn't exist, and if it does, just let it as-is, so the user can freely update it in case of errors. Something that might also be interesting to add is a check of the |
If you work on that, give me a ping and I will happily join the testing crew. Maybe it is simpler to add a platform check around the MacOS for example has AFAIK no support for it, as it uses launchd and not systemd. |
Yep, I don't know how to make such check for now, but this is indeed a good solution 👍 |
My naive idea was harcoding it, so something like
and then defining this replacer with (pseudo code, as I am not sure if that is the correct way to express it in Rust)
and finally
|
That's a good idea, however I'm not sure every linux distribution has systemd support either 😕 |
Well, improving step-by-step then ... at least Mac would be fixed with that 🙈 Do you want me to give it a try in a PR ? |
Seems like it's fixed, isn't it? 😉 |
Not really, none of the PRs was about that one. The It doesn't happen currently on my local machine due to the fact that CLI is always used, which I believe is because of https://github.com/Pierstoval/rymfony/pull/14/files#diff-530e580854f8084c7a22088c99e74e7eR24
While it should use FPM:
So if you help me tackle that one, then I would look into |
Oh, yeah, I didn't read the initial message, I just read your last one about submitting a PR 🤣 Sorry, I'll dig into this later, unless you want to try it out 😄 As said above, we should first try to find a good way to determine whether |
Fixed, closing |
Starting for the first time without changing anything manually:
cat /Users/kevin/.rymfony/fpm-conf.ini
And:
As https://www.php.net/manual/en/install.fpm.configuration.php says:
So it seems my FPM is not compiled with support for systemd. The config line is not simply ignored but FPM crashes.
Also mentioned here.
Unfortunately I cannot change the auto generated fpm config, because it will be overwritten upon the next start.
When changing the config and removing write permissions rymfony crashes, as it can't write the config.
My complete Dev setup is installed via Brew, so I assume this error will happen to most users with a current PHP 7.4.8 setup on macOS Catalina 10.15.6 (19G2021).
Anything I can do to help debugging/fixing this issue?
All I could find to check for systemd support is the compile flag
--with-fpm-systemd
that activates it.Therefor
php -i|grep with-fpm-systemd
shows nothing here.The text was updated successfully, but these errors were encountered: