GSA / datagov-wptheme

Data.gov WordPress Theme (obsolete)
https://www.data.gov
Other
1.88k stars 411 forks source link

Update php applications to latest release of php 7.0 #840

Closed philipashlock closed 5 years ago

philipashlock commented 6 years ago
SkipKeats commented 6 years ago

My initial tests have failed. The messages I receive when trying to install per the instructions sent by Philip are as follows: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package php7.0 E: Couldn't find any packages by regex 'php7.0'

A bit more research might be in order. From what I know related to installing php 7.2, it requires this repository: ppa:ondrej/php. It may be that something is not quite right about the deb.sury.org repository.

We need to discuss this more before proceeding. We will decide how to further during the Monday weekly meeting if OK with you, @philipashlock.

philipashlock commented 6 years ago

It looks like sudo apt-get install php7.0 may be all that's needed, but it looks like it might be installing alongside the existing version - or we need to re-alias the PATH for php since I'm still getting this after install:

$ php --version
PHP 7.0.29-1+ubuntu14.04.1+deb.sury.org+1 (cli) (built: Apr  5 2018 10:46:49) ( NTS )

Here's what I installed though.

$ sudo apt-get install php7.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.13.0-139 linux-headers-3.13.0-139-generic
  linux-image-3.13.0-139-generic
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  php7.0
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 53.8 kB of archives.
After this operation, 101 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main php7.0 all 7.0.30-1+ubuntu14.04.1+deb.sury.org+1 [53.8 kB]
Fetched 53.8 kB in 0s (95.7 kB/s)
Selecting previously unselected package php7.0.
(Reading database ... 156142 files and directories currently installed.)
Preparing to unpack .../php7.0_7.0.30-1+ubuntu14.04.1+deb.sury.org+1_all.deb ...
Unpacking php7.0 (7.0.30-1+ubuntu14.04.1+deb.sury.org+1) ...
Setting up php7.0 (7.0.30-1+ubuntu14.04.1+deb.sury.org+1) ...
SkipKeats commented 6 years ago

Sudo apt-get install php7.0 is what my research last weekend had indicated, but I had not been able to get absolute confirmation that it would update it the most recent 7.0 version.

It should replace what is there, unless we have an odd confirmation. I will test and see.

From: Philip Ashlock notifications@github.com Reply-To: "GSA/data.gov" reply@reply.github.com Date: Friday, 4May, 2018 at 17:09 To: "GSA/data.gov" data.gov@noreply.github.com Cc: Skip Keats wilfredk@ekuber.com, Assign assign@noreply.github.com Subject: Re: [GSA/data.gov] Update php applications to latest release of php 7.0 (#840)

It looks like sudo apt-get install php7.0 may be all that's needed, but it looks like it might be installing alongside the existing version - or we need to re-alias the PATH for php since I'm still getting this after install: $ php --version PHP 7.0.29-1+ubuntu14.04.1+deb.sury.org+1 (cli) (built: Apr  5 2018 10:46:49) ( NTS ) Here's what I installed though. $ sudo apt-get install php7.0 Reading package lists... Done Building dependency tree       Reading state information... Done The following packages were automatically installed and are no longer required:   linux-headers-3.13.0-139 linux-headers-3.13.0-139-generic   linux-image-3.13.0-139-generic Use 'apt-get autoremove' to remove them. The following NEW packages will be installed:   php7.0 0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded. Need to get 53.8 kB of archives. After this operation, 101 kB of additional disk space will be used. Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main php7.0 all 7.0.30-1+ubuntu14.04.1+deb.sury.org+1 [53.8 kB] Fetched 53.8 kB in 0s (95.7 kB/s) Selecting previously unselected package php7.0. (Reading database ... 156142 files and directories currently installed.) Preparing to unpack .../php7.0_7.0.30-1+ubuntu14.04.1+deb.sury.org+1_all.deb ... Unpacking php7.0 (7.0.30-1+ubuntu14.04.1+deb.sury.org+1) ... Setting up php7.0 (7.0.30-1+ubuntu14.04.1+deb.sury.org+1) ... — You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or mute the thread.

SkipKeats commented 6 years ago

Hi Philip:

In my local instance, I was able to install PHP 7.0.30 using sudo apt-get install php7.0. However, I received socket bind errors related to Apache2 and port 80. Nonetheless, the version that installed was PHP 7.0.30-1+ubuntu14.04.1+deb.sury.org+1 (cli) (built: May 2 2018 13:00:43) ( NTS ). I need to track down why I got the errors. I need time to trace them.

Skip

From: Philip Ashlock notifications@github.com Reply-To: "GSA/data.gov" reply@reply.github.com Date: Friday, 4May, 2018 at 17:09 To: "GSA/data.gov" data.gov@noreply.github.com Cc: Skip Keats wilfredk@ekuber.com, Assign assign@noreply.github.com Subject: Re: [GSA/data.gov] Update php applications to latest release of php 7.0 (#840)

It looks like sudo apt-get install php7.0 may be all that's needed, but it looks like it might be installing alongside the existing version - or we need to re-alias the PATH for php since I'm still getting this after install: $ php --version PHP 7.0.29-1+ubuntu14.04.1+deb.sury.org+1 (cli) (built: Apr  5 2018 10:46:49) ( NTS ) Here's what I installed though. $ sudo apt-get install php7.0 Reading package lists... Done Building dependency tree       Reading state information... Done The following packages were automatically installed and are no longer required:   linux-headers-3.13.0-139 linux-headers-3.13.0-139-generic   linux-image-3.13.0-139-generic Use 'apt-get autoremove' to remove them. The following NEW packages will be installed:   php7.0 0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded. Need to get 53.8 kB of archives. After this operation, 101 kB of additional disk space will be used. Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main php7.0 all 7.0.30-1+ubuntu14.04.1+deb.sury.org+1 [53.8 kB] Fetched 53.8 kB in 0s (95.7 kB/s) Selecting previously unselected package php7.0. (Reading database ... 156142 files and directories currently installed.) Preparing to unpack .../php7.0_7.0.30-1+ubuntu14.04.1+deb.sury.org+1_all.deb ... Unpacking php7.0 (7.0.30-1+ubuntu14.04.1+deb.sury.org+1) ... Setting up php7.0 (7.0.30-1+ubuntu14.04.1+deb.sury.org+1) ... — You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or mute the thread.

JJediny commented 5 years ago

all php apps have been upgraded to use php7 please see https://github.com/gsa/datagov-deploy for exact implementation.