Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Unable to install php5-memcache for PHP 5.6 due to /etc/php5/conf.d/ symlink #33

Open
dol opened this issue Jan 14, 2016 · 0 comments
Open

Comments

@dol
Copy link
Contributor

dol commented Jan 14, 2016

During the installation of PHP 5.6 a symlink from /etc/php5/mods-available/ to /etc/php5/conf.d/ is created.

When installing php5-memcache the memcache.ini under /etc/php5/mods-available/ is wiped during the postinstallation phase of the Debian/Ubuntu package installation. I created a script to reproduce the problem: https://gist.github.com/dol/b75122d2c2bbcac70179

The postinstallation is performing the following steps:

dpkg-maintscript-helper mv_conffile /etc/php5/conf.d/memcache.ini \
    /etc/php5/mods-available/memcache.ini 3.0.6-4 -- "$@"
rm -f /etc/php5/conf.d/memcache.ini

[ "$1" = "configure" ] && php5enmod memcache

Due to the symlink from /etc/php5/conf.d/ to /etc/php5/mods-available/ the file under /etc/php5/mods-available/memcache.ini is removed. This file is required for the step php5enmod memcache to enable the extension.
The same issue applies to the package php5-geoip.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant