From df2655ff58317ed80c2364becbaf6181ff1f046b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 18 Dec 2017 12:22:29 +0100 Subject: fix apache configuration when mod_php is not used --- glpi-fusioninventory-httpd.conf | 7 ++++++- glpi-fusioninventory-user.ini | 1 + glpi-fusioninventory.spec | 9 ++++++++- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 glpi-fusioninventory-user.ini diff --git a/glpi-fusioninventory-httpd.conf b/glpi-fusioninventory-httpd.conf index ae9694d..dbeef15 100644 --- a/glpi-fusioninventory-httpd.conf +++ b/glpi-fusioninventory-httpd.conf @@ -9,5 +9,10 @@ - php_admin_flag allow_url_fopen On + + php_admin_flag allow_url_fopen On + + + php_admin_flag allow_url_fopen On + diff --git a/glpi-fusioninventory-user.ini b/glpi-fusioninventory-user.ini new file mode 100644 index 0000000..dd10626 --- /dev/null +++ b/glpi-fusioninventory-user.ini @@ -0,0 +1 @@ +allow_url_fopen=On diff --git a/glpi-fusioninventory.spec b/glpi-fusioninventory.spec index bbf28ee..9643ffd 100644 --- a/glpi-fusioninventory.spec +++ b/glpi-fusioninventory.spec @@ -17,7 +17,7 @@ Name: glpi-fusioninventory # New version schema : 2.4.0 = 0.80+1.0 < 0.80+1.1 < 0.83+1.0 Epoch: 1 Version: %{glpi_min}.0.%{plug_version} -Release: 1%{?dist} +Release: 2%{?dist} Summary: FusionInventory Server embedded as a GLPI plugin Summary(fr): Serveur FusionInventory en extension pour GLPI @@ -27,6 +27,8 @@ URL: http://fusioninventory.org/ Source0: https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/%{gh_tag}/glpi-fusioninventory-%{glpi_version}.%{plug_version}.tar.bz2 Source1: %{name}-httpd.conf +# Override PHP configuration for php-fpm +Source2: %{name}-user.ini BuildArch: noarch @@ -78,6 +80,7 @@ mv %{pluginname}/PICTURES . # .htaccess replaced by a httpd config file rm %{pluginname}/install/mysql/.htaccess \ %{pluginname}/scripts/.htaccess +cp %{SOURCE2} %{pluginname}/.user.ini #Fix rpmlint warnings chmod +x %{pluginname}/scripts/createSNMPWalks.php @@ -140,11 +143,15 @@ done | tee %{name}.lang %{_datadir}/glpi/plugins/%{pluginname}/pics %{_datadir}/glpi/plugins/%{pluginname}/report %{_datadir}/glpi/plugins/%{pluginname}/scripts +%{_datadir}/glpi/plugins/%{pluginname}/.user.ini # Data %attr(750,apache,root) %{_localstatedir}/lib/glpi/files/_plugins/%{pluginname} %changelog +* Mon Dec 18 2017 Remi Collet - 1:9.2.0.1.0-2 +- fix apache configuration when mod_php is not used + * Tue Sep 26 2017 Remi Collet - 1:9.2.0.1.0-1 - update to 9.2+1.0 -- cgit