PHPNG / php 7 installed in sapi/cli/php how to replace the php in virtualmin?

PHPNG / php 7 installed in sapi/cli/php how to replace the php in virtualmin?

I would like to replace the default php 5.3 with sapi/cli/php (phpng / php7)

how can i do this? what’s the proper way? please help. thanks

I’ve already installed php7 so now two copies of php is running 7 and 5.3

Howdy,

Hmm, unfortunately, there probably isn’t a super-simple way to do something like that.

You may be able to take advantage of Virtualmin’s ability to use two PHP versions:

https://www.virtualmin.com/documentation/web/multiplephp

But since phpng isn’t available as a package from the SCL repository, you would need to manually compile it, and install it into the same paths that SCL uses.

-Eric

I have compiled PHP for use with Virtualmin before but I have never heard of phpng. I am going to research it and see if I can help you with compiling it. I’ll report back in a few hours.

yum --enablerepo=remi,remi-test install php70

Virtualmin can see php 5.5 and and php 5.6 but not php7

“PHPNG” is simply PHP Next Generation, which at the moment is PHP 7. At the moment it is not available as an official Software Collection from https://www.softwarecollections.org but can be installed from Remi (as dealnest says). There is some information available at http://blog.famillecollet.com/post/2015/03/25/PHP-7.0-as-Software-Collection regarding this.

It is really (really,really,really,really) fast so there will probably be a lot of interest in this topic over the next few months.

Howdy,

What is the name and path of the binary for that PHP version?

-Eric

/opt/remi/php70

but
/opt/remi/php55
/opt/remi/php56

Are installed installed and are detected by Virtualmin

php70 is actually running, using command php -v shows php7.0, but only not detected by Virtualmin

/opt/remi/php70

but
/opt/remi/php55
/opt/remi/php56

Are installed and are detected by Virtualmin

php70 is actually running, using command php -v shows php7.0, but only not detected by Virtualmin

/opt/remi/php70

but
/opt/remi/php55
/opt/remi/php56

Are installed and are detected by Virtualmin

php70 is actually running, using command php -v shows php7.0, but only not detected by Virtualmin

http://php7.zend.com/repo.php

Now we need a solution to make virtualmin know and work with 7

Howdy,

We haven’t had support for development PHP versions in the past, however, I’ll talk to Jamie about perhaps adding one for this. It shouldn’t be hard to just add detection for that PHP version.

-Eric

Hi Eric,
would be great to have that possibility.
As ZEND declare, the PHP 7 will be official released before the end of the year.
And the performances are really impressive :slight_smile: I have a big itch to configure a test server.

By now PHP 7 has been released and is still not detected.
Any suggestions on how to detect PHP 7 in the current version of Virtualmin?

Howdy,

PHP 7 will be out soon I’m sure, but at this time it does not appear that PHP 7 has been released.

Only the release candidates have been released so far. On php.net, the latest version they show there is release candidate 8.

But this functionality will be included in Virtualmin soon.

-Eric

Zend Announcement: Today, we’re pleased to announce that PHP 7.0 - the fastest and most efficient PHP ever - is officially released!

I brought this up at our Virtualmin meeting yesterday, and Jamie tells me the next Virtualmin version will indeed have support for this. It should be out soon!

-Eric

I think you should properly document installing PHP 7 version. 5.5 is already documented, but I had to make symlinks for 5.6.

Will PHP version 7 - NG be available in the normal repository like 5.5? And what about extensions?

The next Virtualmin version fixes the issue with PHP 5.6, so that a symlink is no longer necessary.

The issue there is that they went and changed the default paths being used, so Virtualmin had to be told to look in a new location.

As far as PHP 7 goes – we’re figuring they will be adding that to the SCL repository. Though we don’t know when that will happen.

However, Virtualmin will also make it easier in the next update to detect custom installed PHP versions, even if it’s not from the SCL repo.

-Eric

Thank you for quick reply.
This is ok to me. Will there be an option to define you own path?

Kind regards,
Luka

I was just looking on the internet for php 7.0 software collection and I found this…
http://blog.remirepo.net/post/2015/12/11/PHP-version-5.6.17RC1-and-7.0.1RC1

It’s PHP 7.0 RC1

Kind regards,
Luka