-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
Change php5-cgi to php-cgi #124
Conversation
I've checked my Stretch Pi and both php5-cgi and php7-cgi is still available. Not sure where php-cgi points to on Jessie, but if Jessie points to php5-cgi and Stretch points to php7.0-cgi, we might get unexpected behaviour because of the different PHP versions... |
Looks like Jessie doesn't even have a php-cgi package. |
I just created a completely new Stretch Pi with the latest (September) 'lite' Raspbian image and there is no package php5-cgi to install. Do you have extra repositories set up? And are there significant differences between 5 and 7 that will cause problems? I'm afraid I'm not a PHP developer so I don't know how much the versions change. |
I didn't have any extra Repos. I installed it straight via the script, however Raspbian may have updated package availability between when I installed it and now. Are we going to keep supporting Jessie with the install script? If so, perhaps we just have some logic in there to install php5-cgi for Jessie and php-cgi for Stretch |
I faced the same issue today on Raspbian Stretch (9.1):
|
Update: I changed the script in |
I just tried this (OK, so I should have done this before creating the PR - sorry) and I got this:
I'm just having a look to see what is going on. |
As long as there is no generic solution available, I changed php5-cgi to php7.0-cgi. Installation and AP runs. |
@cool2man Thanks for letting us know |
I did get the interface working with php7 but encountered other (non-PHP related) problems so I cannot say for certain that there are no incompatibilities. |
@jrmhaig curious what sort of non-PHP problems you found? If you have logs maybe I can debug. |
I didn't get much of a chance to look at it but essentially the wireless access point wouldn't start and failed silently. I was using a Raspberry Pi 2 with a usb wireless adapter. |
@jrmhaig hostapd will not start if wpa_supplicant is started...Can you check to see if you had the issue while wpa_supplicant was started? |
Just tested the install script on a Jessie RPi3 and it worked fine, hostapd was started on bootup. |
Installs cleanly on Stretch, will validate on a fresh install of Jessie shortly... unless someone beats me to it 😉 |
Nice work @billz. |
Tested successfully on fresh installs of Jessie & Stretch on an RPi2. Thanks @jrmhaig @michalfita @cool2man @SirLagz for your valuable input. |
Debian Stretch (and so also the latest Raspbian) has replaced php5 with php7.0 and so the installer will not work any more. I have changed it to use the generic php-cgi instead so that it will pick up the latest version. Is this the behaviour we want or do we want to fix the version and risk seeing it break again at the next upgrade?
Also, according to https://packages.debian.org/stretch/php-cgi we might want to use php-fpm instead. I do not know enough about the different versions of PHP. What are your thoughts.