Why PHP5 FPM is not available in default repositories

New to Debian (Or Linux in general)? Ask your questions here!

Why PHP5 FPM is not available in default repositories

Postby aliweb » 2017-08-07 08:59

Hi,

I tried to install PHP FPM on Debian 8 using `apt-get` but got message that package is not available. Upon searching I found the following article which talks about it:

https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-debian-8

It says:
These packages aren't available in the default repositories due to licensing issues, so we'll have to modify the repository sources to pull them in.


But I see that this package is available
https://packages.debian.org/jessie/php/php5-fpm

So if it is available, why you cannot install and why that article is saying there is some licensing issue?

Thanks

EDIT
By the way my sources are ftp.debian.org and security.debian.org (off the top of my head as I don't have access to VPS right now)
aliweb
 
Posts: 22
Joined: 2017-08-04 05:54

Re: Why PHP5 FPM is not available in default repositories

Postby debiman » 2017-08-08 06:10

i happen to use debian jessie and nginx with php5-fpm, and i can tell you it IS in the repos and works.
so we need your sources, and also just run an extra
Code: Select all
sudo apt-get update
sudo apt-get upgrade
for us.
User avatar
debiman
 
Posts: 1086
Joined: 2013-03-12 07:18

Re: Why PHP5 FPM is not available in default repositories

Postby aliweb » 2017-08-08 12:30

debiman wrote:i happen to use debian jessie and nginx with php5-fpm, and i can tell you it IS in the repos and works.
so we need your sources, and also just run an extra
Code: Select all
sudo apt-get update
sudo apt-get upgrade
for us.



sources.list
deb http://ftp.debian.org/debian jessie main contrib non-free
deb-src http://ftp.debian.org/debian jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
deb http://ftp.debian.org/debian jessie-updates main contrib non-free
deb-src http://ftp.debian.org/debian jessie-updates main contrib non-free


apt-get update
root@sf-vm:~# apt-get update
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
Ign http://ftp.debian.org jessie InRelease
Get:2 http://ftp.debian.org jessie-updates InRelease [145 kB]
Hit http://security.debian.org jessie/updates/main Sources
Hit http://security.debian.org jessie/updates/contrib Sources
Hit http://security.debian.org jessie/updates/non-free Sources
Hit http://ftp.debian.org jessie Release.gpg
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://ftp.debian.org jessie-updates/main Sources
Hit http://security.debian.org jessie/updates/contrib amd64 Packages
Hit http://ftp.debian.org jessie-updates/contrib Sources
Hit http://security.debian.org jessie/updates/non-free amd64 Packages
Hit http://ftp.debian.org jessie-updates/non-free Sources
Hit http://security.debian.org jessie/updates/contrib Translation-en
Get:3 http://ftp.debian.org jessie-updates/main amd64 Packages/DiffIndex [8392 B]
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://ftp.debian.org jessie-updates/contrib amd64 Packages
Hit http://security.debian.org jessie/updates/non-free Translation-en
Get:4 http://ftp.debian.org jessie-updates/non-free amd64 Packages/DiffIndex [736 B]
Hit http://ftp.debian.org jessie-updates/contrib Translation-en
Get:5 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [3196 B]
Get:6 http://ftp.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
Hit http://ftp.debian.org jessie Release
Hit http://ftp.debian.org jessie/main Sources
Hit http://ftp.debian.org jessie/contrib Sources
Hit http://ftp.debian.org jessie/non-free Sources
Hit http://ftp.debian.org jessie/main amd64 Packages
Hit http://ftp.debian.org jessie/contrib amd64 Packages
Hit http://ftp.debian.org jessie/non-free amd64 Packages
Hit http://ftp.debian.org jessie/contrib Translation-en
Hit http://ftp.debian.org jessie/main Translation-en
Hit http://ftp.debian.org jessie/non-free Translation-en
Fetched 221 kB in 4s (52.5 kB/s)
Reading package lists... Done
root@sf-vm:~#


apt-get upgrade
root@sf-vm:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@sf-vm:~#
aliweb
 
Posts: 22
Joined: 2017-08-04 05:54

Re: Why PHP5 FPM is not available in default repositories

Postby bryanmc » 2017-08-08 13:44

What is the result of
Code: Select all
sudo apt-get install php5-fpm
bryanmc
 
Posts: 22
Joined: 2016-11-18 12:21

Re: Why PHP5 FPM is not available in default repositories

Postby aliweb » 2017-08-08 14:13

bryanmc wrote:What is the result of
Code: Select all
sudo apt-get install php5-fpm


Strangely I tried it and now it worked. ٰ I don't know why it didn't work before. May be I was just writing php-fpm and not php5-fpm.
aliweb
 
Posts: 22
Joined: 2017-08-04 05:54

Re: Why PHP5 FPM is not available in default repositories

Postby aliweb » 2017-08-08 14:16

In fact I think I know what happened. When it didn't install before then as per article above I changed sources then ran `apt-get update` and it downloaded it. Then I ran this install command with php5-fpm but when it asks (Y/n) to install, I chose 'n'. Then later I changed sources back to debian ones so may be that's why I am able to install it now as it must have been downloaded/updated at that time.
aliweb
 
Posts: 22
Joined: 2017-08-04 05:54

Re: Why PHP5 FPM is not available in default repositories

Postby sunrat » 2017-08-09 10:50

Hmmm, head asplody.

aliweb wrote:In fact I think I know what happened. When it didn't install before then as per article above I changed sources then ran `apt-get update` and it downloaded it.
That updated your package lists.
Then I ran this install command with php5-fpm but when it asks (Y/n) to install, I chose 'n'.
It didn't download if you chose "n".
Then later I changed sources back to debian ones so may be that's why I am able to install it now as it must have been downloaded/updated at that time.

It downloaded and installed when you ran the install command and answered "Y".
It's only a 2MB package so you may have blinked and missed it downloading. ;)
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 1959
Joined: 2006-08-29 09:12
Location: Melbourne, Australia


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable