Ubuntu 16.04 come up with PHP7

5 posts / 0 new
Last post
#1 Sun, 09/25/2016 - 15:18
just_me

Ubuntu 16.04 come up with PHP7

Any chance gettiong 5.3.x instead?

Thanks and best

From reading here i heared, that ubuntu /debian is not so easy to deal with on behalf of 2 php veresions.

Best

Mon, 09/26/2016 - 16:56
Jason at eROI

Ondrej has a launchpad site for ubuntu. There are several older versions of php that can be installed, though he doesn't do 5.3 anymore. Using the following repository entry, I was able to install php 5.5 alongside the 7.0 version.

--jason

deb http://ppa.launchpad.net/ondrej/php/ubuntu xenial main

Tue, 09/27/2016 - 00:58
just_me

Thank you for pointing this out. My Ubuntu won't let me use that repo, claiming it is not signed and therfore insecure. I tried to get over this, with --allow-unauthenticated; which didn't work either. It is also claiming weak key of virtualmin repos (SHA1),

W: GPG error: http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4F4EA0AAE5267A6C

I googled around, but only found that --allow-unauthenticated option, which won't change things. Then i would have just to do a apt-get install php5 and then could select it in virtualmin or are there other things to do beforehand?

W: http://software.virtualmin.com/gpl/ubuntu/dists/virtualmin-xenial/Release.gpg                       : Signature by key 31D2B18872EAF68EFB81F81DE8DD3FA0A0BDBCF9 uses weak digest alg                       orithm (SHA1)
W: http://software.virtualmin.com/gpl/ubuntu/dists/virtualmin-universal/Release.                       gpg: Signature by key 31D2B18872EAF68EFB81F81DE8DD3FA0A0BDBCF9 uses weak digest                        algorithm (SHA1)

@Eric: Could you fix that please?

Best

Fri, 11/04/2016 - 11:55 (Reply to #3)
Jason at eROI

Hello Just_me,

Sorry for taking so long: I don't get notifications things have been updated here...

I honestly can't recall how I got ubuntu16.04 lts to accept the gpg key. I think it asked me if I really wanted to use it, and I said yes. it looks like I got it running on 13 September, but I don't see anything in my history file after "add apt-repository"...

I think I used synaptic afterwards as a gui. Maybe it asked me...

Sorry I can't help more.

--jason

Tue, 09/27/2016 - 02:02
just_me

Looks like this keyproblem can be fixed like this:

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C

Oh, another one: if you just enter

apt-get install php5

this won't be found. you have to do

apt-get install php5.6

or whatever version you want to install.

i have to admit, that i also did this, before fixing the key, am not sure, whether this was helping as well:

apt-get install python-software-properties

Just in case.

Topic locked