Submitted by skelgaard on Wed, 01/06/2016 - 06:44 Pro Licensee
as statet on https://www.virtualmin.com/node/39202#comment-157891
Trying to get it to detect php7, i tried /usr/local, /usr/local/php7 and /usr/local/php7/bin/ in "Additional locations for PHP commands"
Then re runs check configuration and still doesn't seem to detect the php7 with any of the paths.
What am i doing wrong ?
and for @lostandfound's questions
How have you added PHP 7? By a repo? Where is it installed?
manuel compiled from source
If you open a do Virtualmin > Server Configuration > Website Options Then scroll down and click PHP >Information what does PHP versions installed say?
Your system only has PHP version 5.6.14 installed, so selecting a different version for each directory is not possible.
Status:
Closed (fixed)
Comments
Submitted by lostandfound on Wed, 01/06/2016 - 07:06 Comment #1
I used a repo, it found it and allowed me to select it without issue. Would it be helpful if I provided the install locations etc?
Submitted by skelgaard on Wed, 01/06/2016 - 07:22 Pro Licensee Comment #2
its installed in /usr/local/php7 using the scripts from https://github.com/kasparsd/php-7-debian
How did you install it with a repo without getting it to uninstall old version ?
Submitted by lostandfound on Wed, 01/06/2016 - 07:34 Comment #3
I am on CentOS so it is all RPM based and they have a feature called Software collections which lets you add alternative collections of software alongside existing rather than replacing.
Sorry, don't think I can be of any help, hope one of the Virtualmin guys will get back to you.
Submitted by andreychek on Wed, 01/06/2016 - 12:22 Comment #4
Is PHP 7 available in Software Collections now?
Anyhow skelgaard, just to verify -- are you using the new Virtualmin 5.0?
Submitted by skelgaard on Wed, 01/06/2016 - 12:24 Pro Licensee Comment #5
I am... i have updated the servers yes.
Yes, PHP7 is available in SCL.
Submitted by cruiskeen on Thu, 01/07/2016 - 16:34 Comment #7
Well, if only. Actually it's only available in the REMI repository - it's compatible with SCL, but it's not in the SCL repo yet. And the SCL stuff is still more than a tad confusing as it's all migrating to versions done by the sclo interest group rather than rebuilding the Red Hat SCL repo - and the migration path from one to another is still sort of in flux. Not to mention moving servers.
I'm waiting for all of this to settle a little bit before I start offering PHP 7 -- at the moment it's entirely possible that someone might end up using 3 different "SCL repositories". It's a little unfortunate but I suspect will settle down soon.
I'm only bringing this up because if you go to the Software Collections site you're not going to find PHP7 - and that'll probably confuse people.
Submitted by skelgaard on Thu, 01/07/2016 - 16:38 Pro Licensee Comment #8
Stop posting about centos and SCL on a treat about detecting more php versions on Debian it gives no help to the subject at hand... do you own posts about that.
Submitted by cruiskeen on Thu, 01/07/2016 - 16:51 Comment #9
I don't think there's any supported way in VIrtualmin on Debian to have multiple versions of PHP available at the same time - you'd have to build something analogous to the SCL system in CentOS where the packages are actually intended to co-exist on the same server, which isn't really what the instructions you link to are for.
Perhaps the VIrtualmin folks can chime in on this and are aware of something I'm not, but the only docs for Virtualmin for multiple PHP version support is for CentOS - I think on Debian you may just need to decide everyone uses PHP 7.
Submitted by skelgaard on Thu, 01/07/2016 - 16:57 Pro Licensee Comment #10
@cruiskeen please read initial post..... there is a function to detect new php versions installed, which is the part not working and looking for what i'm doing wrong or if there is a fault in this.
Submitted by cruiskeen on Thu, 01/07/2016 - 17:41 Comment #11
Did you try /usr/local/php7/bin/php ??? I think it's asking the complete path to the PHP executable -- though I'm still not at all sure that'll work.
Submitted by skelgaard on Thu, 01/07/2016 - 18:06 Pro Licensee Comment #12
@cruiskeen i did, but i must have done something wrong, cause now it worked on detection.... now i just need to figure out why my page isn't working then, but that i will find out at another time....
Submitted by skelgaard on Mon, 01/11/2016 - 04:02 Pro Licensee Comment #13
Just a small sitenote if others try this... it needs to be /usr/local/php7/bin/php-cgi but else it works and can now change php versions