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

23 posts / 0 new
Last post
#1 Fri, 12/05/2014 - 01:47
hwongcom

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

Fri, 12/05/2014 - 08:31
andreychek

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

Fri, 12/05/2014 - 10:08
ReArmedHalo

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.

Sat, 04/18/2015 - 08:31
dealnest

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

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

Tue, 04/21/2015 - 06:51
lostandfound

"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-Collec... 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.

Tue, 04/21/2015 - 13:06
andreychek

Howdy,

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

-Eric

Tue, 04/21/2015 - 13:31
dealnest

/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

Tue, 04/21/2015 - 13:31
dealnest

/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

Tue, 04/21/2015 - 13:31
dealnest

/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

Thu, 05/14/2015 - 02:06
chiareu

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

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

Thu, 05/14/2015 - 09:28
andreychek

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

Thu, 05/14/2015 - 11:08
chiareu

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 :) I have a big itch to configure a test server.

Thu, 12/03/2015 - 08:48
bvansomeren

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?

Thu, 12/03/2015 - 09:14
andreychek

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

Fri, 12/04/2015 - 01:27
chiareu

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

Fri, 12/04/2015 - 09:24
andreychek

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

Fri, 12/11/2015 - 13:40
lukakovacic

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?

Fri, 12/11/2015 - 15:50
andreychek

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

Sat, 12/12/2015 - 02:12
lukakovacic

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

Kind regards, Luka

Sat, 12/12/2015 - 03:01
lukakovacic

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

Wed, 12/16/2015 - 11:48
Cloud4G

Remi announced RC8 as Gold:

PHP Version 7.0.0 is released! By Remi Thursday, December 3, 2015, 9:20 p.m

I've read on PHPv7 vs HHVM including benchmarks. These two developments are pursuing similar technology and the performance is achieving similar step-wise improvements. At this point, the two camps are trading off benchmarks to show one side leading the other. I view that as mostly irrelevant as the gains over previous generations renders the differences between current gens mostly irrelevant. Benchmarks for most recent release of HHVM show up better than PHP7, however, PHP7 is expected to show continued improvement that at least catches up. Thus the relative differences are minor and probably will converge on the same end points. I suppose that greater gains might be had from optimizations made to the various applications such as CMS platforms including Joomla, Wordpress and eCommerce platforms Magento, etc.

Wed, 12/16/2015 - 18:19 (Reply to #21)
Cloud4G

A word of caution: some applications may not be compatible with PHP v7. For example, Joomla 3.4.6, the latest version, is not compatible without workarounds. Release of Joomla 3.5 is scheduled to fix this soon.

Fri, 12/18/2015 - 11:19
lukakovacic

Will the update be out before christmas? So 25/12/2015?

I really need this answer or confirmation.