aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavi Antônio da Silva Santos <antoniossdavi@gmail.com>2023-03-03 14:36:20 +0000
committerDavi Antônio da Silva Santos <antoniossdavi@gmail.com>2023-03-04 01:24:15 +0000
commit55dbd0e43d4744aa5e1eb4f4f7c8a9cbc68df581 (patch)
tree6303024a6e4300f9094ed3a4d51eff2ca8488a7f
parentd73ed8c16a6eaf84a8a40d529668534edb38b443 (diff)
downloadboca-55dbd0e43d4744aa5e1eb4f4f7c8a9cbc68df581.tar.gz
boca-55dbd0e43d4744aa5e1eb4f4f7c8a9cbc68df581.zip
Conflict with mod_php instead of disabling it
The boca-web package will not try to disable Apache's php8.1 module (mod_php for PHP 8.1) anymore. It will conflict with the package that provides the offending module for the distribution's current PHP version, libapache2-mod-php.
-rw-r--r--debian/boca-web.postinst3
-rw-r--r--debian/control1
2 files changed, 1 insertions, 3 deletions
diff --git a/debian/boca-web.postinst b/debian/boca-web.postinst
index 824654c..5191e34 100644
--- a/debian/boca-web.postinst
+++ b/debian/boca-web.postinst
@@ -9,9 +9,6 @@ chmod -R go-rwx /var/www/boca/src/private
# Stop the apache2 server before changing enabled modules
systemctl stop apache2
-# Ensure that apache's embedded php module is not loaded
-a2dismod php8.1
-
# Configure HTTPS in Apache
# See https://www.arubacloud.com/tutorial/how-to-enable-https-protocol-with-apache-2-on-ubuntu-20-04.aspx
# Enable SSL module
diff --git a/debian/control b/debian/control
index c7af64c..7ea2089 100644
--- a/debian/control
+++ b/debian/control
@@ -32,6 +32,7 @@ Description: BOCA - database
Package: boca-web
Architecture: all
Depends: ${misc:Depends}, ${shlibs:Depends}, boca-common, apache2, php8.1-fpm, php8.1
+Conflicts: libapache2-mod-php
Description: BOCA - WEB files
BOCA is a software created to control a contest with the ACM International
Collegiate Programming Contest rules. It has been developed in PHP and the