Last active
June 4, 2016 20:15
-
-
Save Cyken-Zeraux/aecf0e3a9b30e2ae40968781c371e450 to your computer and use it in GitHub Desktop.
Airship install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@ubuntu-512mb-nyc2-01:~# # Let's get, and verify, the correct PGP public key | |
root@ubuntu-512mb-nyc2-01:~# gpg --fingerprint 6572BBEF1B5FF28B28B706837E3F070089DF5277 | |
pub 4096R/89DF5277 2010-07-11 | |
Key fingerprint = 6572 BBEF 1B5F F28B 28B7 0683 7E3F 0700 89DF 5277 | |
uid Guillaume Plessis <gui@dotdeb.org> | |
sub 4096R/3D624A3B 2010-07-11 | |
sub 4096R/A2098A6E 2010-07-11 | |
root@ubuntu-512mb-nyc2-01:~# if [ $? -ne 0 ]; then | |
> echo -e "\033[33mDownloading PGP Public Key...\033[0m" | |
> gpg --recv-keys 6572BBEF1B5FF28B28B706837E3F070089DF5277 | |
> # http://pgp.mit.edu/pks/lookup?op=vindex&fingerprint=on&search=0x6572BBEF1B5FF28B28B706837E3F070089DF5277 | |
> # DotDeb Signing Key | |
> gpg --fingerprint 6572BBEF1B5FF28B28B706837E3F070089DF5277 | |
> if [ $? -ne 0 ]; then | |
> echo -e "\033[31mCould not download PGP public key for verification\033[0m" | |
> exit | |
> fi | |
> fi | |
root@ubuntu-512mb-nyc2-01:~# gpg -a --export 6572BBEF1B5FF28B28B706837E3F070089DF5277 | sudo apt-key add - | |
OK | |
root@ubuntu-512mb-nyc2-01:~# | |
root@ubuntu-512mb-nyc2-01:~# # Install PHP from DotDeb | |
root@ubuntu-512mb-nyc2-01:~# sudo apt-get -y install php7.0 php7.0-cli php7.0-fpm php7.0-json php7.0-pgsql php7.0-curl php7.0-dev | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
E: Unable to locate package php7.0 | |
E: Couldn't find any package by regex 'php7.0' | |
E: Unable to locate package php7.0-cli | |
E: Couldn't find any package by regex 'php7.0-cli' | |
E: Unable to locate package php7.0-fpm | |
E: Couldn't find any package by regex 'php7.0-fpm' | |
E: Unable to locate package php7.0-json | |
E: Couldn't find any package by regex 'php7.0-json' | |
E: Unable to locate package php7.0-pgsql | |
E: Couldn't find any package by regex 'php7.0-pgsql' | |
E: Unable to locate package php7.0-curl | |
E: Couldn't find any package by regex 'php7.0-curl' | |
E: Unable to locate package php7.0-dev | |
E: Couldn't find any package by regex 'php7.0-dev' | |
root@ubuntu-512mb-nyc2-01:~# sudo wget https://pear.php.net/go-pear.phar | |
--2016-06-04 16:14:31-- https://pear.php.net/go-pear.phar | |
Resolving pear.php.net (pear.php.net)... 109.203.101.62 | |
Connecting to pear.php.net (pear.php.net)|109.203.101.62|:443... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 3566292 (3.4M) [text/plain] | |
Saving to: ‘go-pear.phar.2’ | |
go-pear.phar.2 100%[====================================================>] 3.40M 2.66MB/s in 1.3s | |
2016-06-04 16:14:33 (2.66 MB/s) - ‘go-pear.phar.2’ saved [3566292/3566292] | |
root@ubuntu-512mb-nyc2-01:~# | |
root@ubuntu-512mb-nyc2-01:~# # The PEAR team doesn't provide a GPG signature, so we have to do this: | |
root@ubuntu-512mb-nyc2-01:~# echo "8322214a6979a0917f0068af924428a80ff7083b94343396b13dac1d0f916748025fab72290af340d30633837222c277 go-pear.phar" | sha384sum -c | |
go-pear.phar: OK | |
root@ubuntu-512mb-nyc2-01:~# if [ $? -eq 0 ]; then | |
> php go-pear.phar | |
> fi | |
-bash: php: command not found | |
root@ubuntu-512mb-nyc2-01:~# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment