Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am trying to figure out what to do.
I have to pin my php version to php5.6+ on my server.
All is good in the world until I try to install aegir3. It wants me to download php5.
Here is what it looks like but I do have the 5.6 versions of all the requested modules enabled already:
sudo apt-get install aegir3
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
aegir3-hostmaster aegir3-provision libapache2-mod-php5 mysql-client php5
php5-cli php5-common php5-gd php5-json php5-mysql php5-readline
Suggested packages:
php5-user-cache
The following NEW packages will be installed:
aegir3 aegir3-hostmaster aegir3-provision libapache2-mod-php5 mysql-client
php5 php5-cli php5-common php5-gd php5-json php5-mysql php5-readline
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/5,188 kB of archives.
After this operation, 22.0 MB of additional disk space will be used.
1) can I have multiple php versions actually working under apache2? I have done this:
sudo a2dismod php5
Module php5 already disabled
~$ sudo a2enmod php5.6
Considering dependency mpm_prefork for php5.6:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Considering conflict php5 for php5.6:
Module php5.6 already enabled
Comment | File | Size | Author |
---|---|---|---|
#11 | support-additional-packages-2791095-11.patch | 4.95 KB | NWOM |
Comments
Comment #2
bgm CreditAttribution: bgm at Coop SymbioTIC commentedIs this Ubuntu 16.04 ? Ondrej's PPA for packages of older PHP versions ?
Aegir currently supports the version of PHP officially supported by Ubuntu 16.04, which is PHP 7.
I suspect the Debian control file will need the attached patch. However, I have no way to test this.
Can you test using the following instructions?
http://docs.aegirproject.org/en/3.x/community/release-process/debian-pac...
Comment #3
helmo CreditAttribution: helmo as a volunteer and at Initfour websolutions for Aegir Cooperative commentedI'm hesitant to add this ... now it's 5.6 but what's next .... special packages for 5.7, 7.1, 7.2 8.*
That list would become hard to maintain.
Isn't there a meta package we can depend on that the ppa also offers?
Alternatively there are ways to create a dummy package for the dependencies yourself to make this work.
Comment #4
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedok. I figured it out.
Comment #5
helmo CreditAttribution: helmo as a volunteer and at Initfour websolutions for Aegir Cooperative commentedI don't see how applying that patch helps in #4. After applying it you'd need to build new Debian packages for it to have any effect.
You've effectively done a manual upgrade ... :) I think Debian will still complain.
Comment #6
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedand the patch is not right.it still has php5-mysql instead of php5.6-mysql
Edit: delete last comment
Comment #7
NWOM CreditAttribution: NWOM commentedPHP 7.1 is also now officially released, which currently does not work with Aegir3. #3 sounds like a good option:
Comment #8
helmo CreditAttribution: helmo as a volunteer and at Initfour websolutions for Aegir Cooperative commentedI haven't been able to find a suitable meta package.
This issue seems to be related ... https://github.com/gplessis/dotdeb-php/issues/102
Maybe you their ask his advise on how to handle this.
Comment #9
NWOM CreditAttribution: NWOM commentedJust as a workaround, here is a new patch for both provision and hostmaster for php7.2, php5.x-mysqlnd, and php7.x-mysqlnd support.
Comment #10
NWOM CreditAttribution: NWOM commentedComment #11
NWOM CreditAttribution: NWOM commentedHere is a new patch that includes the php socket changes for both php7.1 and php7.2. It also appears I had forgotten to add php5.6 from the previous patch into my patch.
Comment #13
colanThanks for working on this, but there are some problems with #11:
My commit handles these issues. You still deserve credit though; don't worry. ;)
What's missing is the php5.6 addition from above. Do we still need that? If so, please provide a patch.
Comment #14
NWOM CreditAttribution: NWOM commentedThanks for updating the patch. Yeah, I wasn't a fan of hard coding it either, but since I don't know PHP, it was the best I could do by using other pieces of code as a reference :P
My patch also updated the package to contain php*-mysqlnd. Has this been updated as well?
Comment #15
colanGood catch! I missed that entirely as I didn't even know about it.
Yes, would be good to add support for that (and php5.6 if we still need it) as well.
Comment #16
NWOM CreditAttribution: NWOM commentedYeah, php*-mysqlnd works great with Asynchronous Prefetch Database Query Cache. Should a new patch be created in this issue, or are you guys committing it in a different way?
Comment #17
colanI'm fine with doing it here as it should just be a one or two line change.
Comment #18
helmo CreditAttribution: helmo as a volunteer and at Initfour websolutions for Aegir Cooperative commentedComment #19
helmo CreditAttribution: helmo as a volunteer and at Initfour websolutions for Aegir Cooperative commentedAfter discussing in IRC this seems fixed with the exception of phpx.x-mysqlnd
It would be better to create a new issue to focus on that... however I don't see php7 related mysqlnd packages in Debian. Is this still relevant?
Comment #20
NWOM CreditAttribution: NWOM commented@helmo I've been working on other projects as of late, so that is fine. I'll try and whip up a new patch in a new issue soon, once I go back to that original project.
@colan Thanks for committing the rest. :)