[opensuse] How to permanently disable apache2-mod_php7?
Since I use PHP7-FPM, I do not need the Apache/PHP module apache2-mod_php7. But there are some dependencies to apache2-mod_php7, so I get apache2-mod_php7 automatically: # rpm -e --test apache2-mod_php7 error: Failed dependencies: apache2-mod_php7 is needed by (installed) mythweb-29-1.2.noarch mod_php_any >= 7.0.0 is needed by (installed) nextcloud-16.0.4-81.1.noarch mod_php_any < 7.4.0 is needed by (installed) nextcloud-16.0.4-81.1.noarch I installed apache2-mod_php7 and disabled it with "a2dismod php7". Unfortunately the RPM postinstall script re-enables apache2-mod_php7 after every update of this package. # rpm -q --scripts apache2-mod_php7 #some distro versions does not have this tool. if [ -x /usr/sbin/a2enmod ]; then if a2enmod -q php5 && ! a2enmod -q php7; then a2dismod php5 a2enmod php7 fi fi [...] My work-around is this: # zypper dup; a2dismod php7 Are there better solutions? Greetings, Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09/02/2019 03:33 PM, Bjoern Voigt wrote:
My work-around is this:
# zypper dup; a2dismod php7
Are there better solutions?
Greetings, Björn
Decent reading: https://wiki.archlinux.org/index.php/Apache_HTTP_Server -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
David C. Rankin wrote:
Decent reading:
https://wiki.archlinux.org/index.php/Apache_HTTP_Server Oh, I have no problems to setup PHP-FPM on openSUSE, but Zypper updates of package apache2-mod_php7 always break my setup.
Greetings, Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Bjoern Voigt <bjoernv@arcor.de> [09-07-19 18:37]:
David C. Rankin wrote:
Decent reading:
https://wiki.archlinux.org/index.php/Apache_HTTP_Server Oh, I have no problems to setup PHP-FPM on openSUSE, but Zypper updates of package apache2-mod_php7 always break my setup.
zypper -v al apache2-mod_php7 -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Patrick Shanahan wrote:
zypper -v al apache2-mod_php7 Yes, I use this lock since several month. The problem is that a lock for apache2-mod_php7 causes that PHP7 will not be updated anymore and Zypper shows conflicts if there is an update. So I tested another work-around, if I see this conflict.
# zypper in --download-only apache2-mod_php7 # rpm -Uvh --nodeps --justdb /var/cache/zypp/.../apache2-mod_php7...rpm # zypper dup Unfortunately this workaround can not be automated so easily. My other work-around is easier: zypper dup; a2dismod php7 Greetings, Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Bjoern Voigt
-
David C. Rankin
-
Patrick Shanahan