summaryrefslogtreecommitdiffstats
path: root/pykolab/setup/setup_php.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/setup/setup_php.py')
-rw-r--r--pykolab/setup/setup_php.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pykolab/setup/setup_php.py b/pykolab/setup/setup_php.py
index 7eed80d..942d09f 100644
--- a/pykolab/setup/setup_php.py
+++ b/pykolab/setup/setup_php.py
@@ -84,6 +84,13 @@ def execute(*args, **kw):
else:
# Search and destroy
php_ini = "/etc/php.ini"
+
+ if not os.path.isfile(php_ini):
+ php_ini = "/etc/php/7.2/apache2/php.ini"
+
+ if not os.path.isfile(php_ini):
+ php_ini = "/etc/php/7.0/apache2/php.ini"
+
if not os.path.isfile(php_ini):
php_ini = "/etc/php5/apache2/php.ini"