Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Why PHP5 FPM is not available in default repositories

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
aliweb
Posts: 35
Joined: 2017-08-04 05:54
Has thanked: 1 time

Why PHP5 FPM is not available in default repositories

#1 Post by aliweb »

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/ ... n-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)

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Why PHP5 FPM is not available in default repositories

#2 Post by debiman »

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.

aliweb
Posts: 35
Joined: 2017-08-04 05:54
Has thanked: 1 time

Re: Why PHP5 FPM is not available in default repositories

#3 Post by aliweb »

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:~#

bryanmc
Posts: 122
Joined: 2016-11-18 12:21
Has thanked: 2 times

Re: Why PHP5 FPM is not available in default repositories

#4 Post by bryanmc »

What is the result of

Code: Select all

sudo apt-get install php5-fpm

aliweb
Posts: 35
Joined: 2017-08-04 05:54
Has thanked: 1 time

Re: Why PHP5 FPM is not available in default repositories

#5 Post by aliweb »

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: 35
Joined: 2017-08-04 05:54
Has thanked: 1 time

Re: Why PHP5 FPM is not available in default repositories

#6 Post by aliweb »

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.

User avatar
sunrat
Administrator
Administrator
Posts: 6458
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 472 times

Re: Why PHP5 FPM is not available in default repositories

#7 Post by sunrat »

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!

Post Reply