topic title: php5-fpm install
Posts: 73
zpimp
Joined: 20 Jan 2014
#1
another problem plagues my migration to linux (and antix)
i want to install nginx and php5-fpm
and as i understand antix is jessie without systemd
i installed nginx, but on
sudo apt-get install php5-fpm
it gives me
php5-fpm : Depends: libsystemd0 but it is not installable
cant i use a php version which doesent depend on systemd ?
shoud i try wheezy repository ?

edit
now im running live, and i think it defaults to jessie repos
but i remember when i installed it asked for jessie/wheezy and i selected jessie, will try changing to wheezy repos

2nd edit
after changing jessie to wheezy on sources list i get

$ sudo apt-get install php5-fpm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libice6 : Depends: x11-common but it is not going to be installed
libpulse0 : Depends: libxtst6 but it is not going to be installed
libuuid1 : Depends: passwd but it is not going to be installed
php5-fpm : Depends: libssl1.0.0 (>= 1.0.0) but it is not going to be installed
Depends: php5-common (= 5.4.41-0+deb7u1) but it is not going to be installed
Depends: ucf but it is not going to be installed
Depends: tzdata but it is not going to be installed
PreDepends: dpkg (>= 1.16.1~) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.


3rd edit:
end up running lighttpd

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://wiki.ubuntu.com/Lighttpd%2BPHP"
linktext was:"https://wiki.ubuntu.com/Lighttpd%2BPHP"
====================================
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#2
Go into / etc/prefernces.d/00systemd

That is where systemd is blacklisted to keep AntiX systemd d free.
Change Pin priority line.
(I just add another pin line and comment out the one not being used)

Then apt-get update to load the systemd stuff.
Install php5-fm. When done. If not wanting systemd.

Change / etc/ apt/prefernces.d/00systemd back to how it was before.

sudo apt-get update to remove the systemd who do again.

Go about running running antix as a happy camper again.

Howdy and Happy Trailz, Rok
Posts: 1
mzilikazi
Joined: 12 Jan 2016
#3
This is an old thread sure but still an issue. I found a better answer in changing the control file in the *.deb itself

Code: Select all

$ apt-get download php5-fpm
$ ar x php5-fpm_5.6.27+dfsg-0+deb8u1_i386.deb
$ tar xzf control.tar.gz
$ sed -i 's|libsystemd0, ||' control
$ tar c {post,pre}{inst,rm} md5sums control | gzip -c > control.tar.gz
$ ar rcs php5-fpm_5.6.27+dfsg-0+deb8u1_i386.deb debian-binary control.tar.gz data.tar.xz
$ su
# dpkg -i php5-fpm_5.6.27+dfsg-0+deb8u1_i386.deb