getting to detect more php versions

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

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?

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.

Is PHP 7 available in Software Collections now?

Anyhow skelgaard, just to verify -- are you using the new Virtualmin 5.0?

I am... i have updated the servers yes.

Joe's picture
Submitted by Joe on Wed, 01/06/2016 - 14:11 Pro Licensee

Yes, PHP7 is available in SCL.

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.

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.

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.

@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.

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.

@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....

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