-
Notifications
You must be signed in to change notification settings - Fork 268
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
Yaws: bad conf: Invalide php_handler configuration at line 129: /usr/bin/php7-cgi is not a regular file terminating #319
Comments
Can you provide more context for the error, perhaps copying and pasting the exact errors you're seeing? |
Hi, This means "/usr/bin/php-cgi7.0" is not a regular file :) It is probably a symlink. The "terminating" part does not come from Yaws. The workaround is to use the regular file pointed by the symlink. Note this is not supported yet by Yaws, but it is possible to follow the symlink, at least on 1 time. |
@vinoski The subject is the exact error message, More context:
@capflam From my Dockerfile:
It is not a symlink:
|
@kklepper, the errors you have are about "/usr/bin/php5-cgi" and "/usr/bin/php7-cgi". In your listing, these files do not exist. |
And my bad. "terminating" comes from Yaws. |
@capflam Well, funny enough. It is the Yaws error message talking about php7-cgi. There is no such thing in the PHP7 version. Maybe the mechanism is like this -- Yaws reads
and interprets this as a user error, silently changing it into
There is no error message with
The word |
You're right, the whole message is from Yaws. But Yaws will not silently change anything. Here, in the code, we call Could you share your configuration file ? (don't forget to remove all sensitive data). |
Well, I really would've been surprised if Yaws would have acted the way I sketched :-) Yaws is started by
The configuration file
There is not much of interest in the
Usually, the Yaws container will be started together with a couple of others by So I can say this: just by toggling the PHP version, I can produce this error. Interestingly, the container with PHP 7 is 10 MB smaller than the other:
I'm really curious what kind of mechanism is behind this behavior. Most probably we would never have guessed. Of course, there is always a big chance of me turning out to be the great idiot :-) But even if so, I don't mind, it wouldn't be the first case that I don't see the obvious. |
@vinoski Great! :-) |
Fixed the issue with a dirty trick: added
to the Dockerfile.... Now this still does not answer why Yaws looks for
when the directive in yaws.conf reads
|
Hello!
No Google results to this one yet. In yaws.conf
ok:
error:
The naming convention for version 7 is funny; this is from debian. The general form
will be redirected to the above.
This is no real problem for me -- I live well with PHP 5, but in some not so distant future this might be a problem.
Question is: what happens here? What does the error message
is not a regular file terminating
mean? How to get around it?Regards
Karl
The text was updated successfully, but these errors were encountered: