#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Location
    France
    Posts
    154
    Rep Power
    142

    Question Problem with gpg key during PHP installation


    Hi,

    I want to install PHP on ubuntu 17.04 (64 bits). On the download page there is a link to
    public keys in order to check the signature:

    PHP: Downloads

    I saved the content for the PHP 7.1 section in a text file named KEYS:
    Code:
    pub   4096R/7BD5DCD0 2016-05-07
          Key fingerprint = A917 B1EC DA84 AEC2 B568 FED6 F50A BC80 7BD5 DCD0
    uid                  Davey Shafik <davey@php.net>
    
    pub   2048R/31CBD89E 2016-12-08
          Key fingerprint = 5289 95BF EDFB A719 1D46  839E F9BA 0ADA 31CB D89E
    uid                  Joe Watkins <krakjoe@php.net>
    Then I run:
    Code:
    gpg --import KEYS
    Which gave me the following error
    Code:
    gpg: no valid OpenPGP data found.
    gpg: Total number processed: 0
    Could you tell me what am I doing wrong?

    Thanks in advance.
    Regards,
    Dariyoosh
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Posts
    4,350
    Rep Power
    630
    Those are finger prints not keys. You need to import the actual public keys. This explains how.

    However, that being said why are you not using 'apt-get' to install the LAMP stack?
    Last edited by gw1500se; October 16th, 2017 at 07:49 AM.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.
  4. #3
  5. Lazy Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,436
    Rep Power
    9645
    Originally Posted by gw1500se
    However, that being said why are you not using 'apt-get' to install the LAMP stack?
    It might be intentional: Ubuntu 17.04 is still on PHP 7.0 and OP wants 7.1. But using 7.0 may very well be sufficient, and it certainly would be easier...
  6. #4
  7. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Location
    France
    Posts
    154
    Rep Power
    142
    Many thanks for your replies. I managed to find the public key by using the provided email address in the following public key server

    https://pgp.key-server.io

    And to answer the question why I don't use LAMP, actually this configuration is aimed just for training & exercice. I prefer to install each component
    (PHP, PostgreSQL, Apache) separately. It's just a matter of taste.

    Thanks a lot for your attention to my question

IMN logo majestic logo threadwatch logo seochat tools logo