1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
| root@vps316707:~# apt-get remove --purge php5-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
php-pear* php5-cli* php5-readline* pkg-php-tools*
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 11.9 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 62152 files and directories currently installed.)
Removing pkg-php-tools ...
Removing php-pear ...
Purging configuration files for php-pear ...
Removing php5-readline ...
php5_invoke prerm: Disable module readline for cgi SAPI
php5_invoke prerm: Disable module readline for apache2 SAPI
php5_invoke prerm: Disable module readline for cli SAPI
Purging configuration files for php5-readline ...
Removing php5-cli ...
php5_invoke prerm: Disable module mcrypt for cli SAPI
php5_invoke prerm: Disable module pdo_mysql for cli SAPI
php5_invoke prerm: Disable module pdo for cli SAPI
php5_invoke prerm: Disable module imap for cli SAPI
php5_invoke prerm: Disable module memcache for cli SAPI
php5_invoke prerm: Disable module opcache for cli SAPI
php5_invoke prerm: Disable module mysqli for cli SAPI
php5_invoke prerm: Disable module intl for cli SAPI
php5_invoke prerm: Disable module curl for cli SAPI
php5_invoke prerm: Disable module gd for cli SAPI
php5_invoke prerm: Disable module mysql for cli SAPI
Purging configuration files for php5-cli ...
Processing triggers for man-db ...
Processing triggers for libapache2-mod-php5 ...
root@vps316707:~# php -v
-bash: php: command not found
root@vps316707:~# apt-get install php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@vps316707:~# php -v
-bash: php: command not found
root@vps316707:~# apt-get remove --purge php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
php5*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 29.7 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 61948 files and directories currently installed.)
Removing php5 ...
root@vps316707:~# apt-get remove --purge php5-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'php5-cli' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@vps316707:~# echo "deb http://packages.dotdeb.org wheezy-php55 all" >> /etc/apt/sources.list
root@vps316707:~# echo "deb-src http://packages.dotdeb.org wheezy-php55 all" >> /etc/apt/sources.list
root@vps316707:~# wget http://www.dotdeb.org/dotdeb.gpg
--2016-09-16 03:33:16-- http://www.dotdeb.org/dotdeb.gpg
Resolving www.dotdeb.org (www.dotdeb.org)... 195.154.242.153, 2001:bc8:21eb:100::1
Connecting to www.dotdeb.org (www.dotdeb.org)|195.154.242.153|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5299 (5.2K) [application/octet-stream]
Saving to: `dotdeb.gpg.1'
100%[======================================>] 5,299 --.-K/s in 0s
2016-09-16 03:33:16 (272 MB/s) - `dotdeb.gpg.1' saved [5299/5299]
root@vps316707:~# apt-key add dotdeb.gpg
OK
root@vps316707:~# apt-get update
Ign http://ppa.launchpad.net wheezy Release.gpg
Hit http://packages.dotdeb.org wheezy-php55 Release.gpg
Ign http://ppa.launchpad.net wheezy Release
Hit http://packages.dotdeb.org wheezy-php55 Release
Hit http://ftp.debian.org wheezy Release.gpg
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://ftp.debian.org wheezy Release
Hit http://security.debian.org wheezy/updates Release
Hit http://packages.dotdeb.org wheezy-php55/all Sources
Hit http://packages.dotdeb.org wheezy-php55/all amd64 Packages
Err http://ppa.launchpad.net wheezy/main Sources
404 Not Found
Err http://ppa.launchpad.net wheezy/main amd64 Packages
404 Not Found
Hit http://ftp.debian.org wheezy/main amd64 Packages
Hit http://ftp.debian.org wheezy/main Translation-en
Ign http://packages.dotdeb.org wheezy-php55/all Translation-en_GB
Hit http://security.debian.org wheezy/updates/main amd64 Packages
Ign http://ppa.launchpad.net wheezy/main Translation-en_GB
Ign http://packages.dotdeb.org wheezy-php55/all Translation-en
Ign http://ppa.launchpad.net wheezy/main Translation-en
Hit http://security.debian.org wheezy/updates/main Translation-en
W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/wheezy/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/wheezy/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
root@vps316707:~# apt-get install php5 php5-mysql php5-common php5-mcrypt php5-dev php5-gd
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-common is already the newest version.
php5-dev is already the newest version.
php5-gd is already the newest version.
php5-mcrypt is already the newest version.
php5-mysql is already the newest version.
The following NEW packages will be installed:
php5
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,204 B of archives.
After this operation, 29.7 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Selecting previously unselected package php5.
(Reading database ... 61946 files and directories currently installed.)
Unpacking php5 (from .../php5_5.5.38-1~dotdeb+7.1_all.deb) ...
Setting up php5 (5.5.38-1~dotdeb+7.1) ...
W: Duplicate sources.list entry http://packages.dotdeb.org/ wheezy-php55/all amd64 Packages (/var/lib/apt/lists/packages.dotdeb.org_dists_wheezy-php55_all_binary-amd64_Packages)
W: Duplicate sources.list entry http://packages.dotdeb.org/ wheezy-php55/all amd64 Packages (/var/lib/apt/lists/packages.dotdeb.org_dists_wheezy-php55_all_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems
root@vps316707:~# php .v
-bash: php: command not found
root@vps316707:~# php -v
-bash: php: command not found
root@vps316707:~# |
Partager