commit 94e6814329bfb4c839d1077e8a886c3d6d3622f8
Author: Jan Rękorajski <[email protected]>
Date:   Thu May 16 20:54:54 2013 +0200

    - migrated to apache 2.4

 moodle-http.conf => moodle-apache.conf |  0
 moodle-httpd.conf                      | 46 ++++++++++++++++++++++++++++++++++
 moodle.spec                            | 12 +++++----
 3 files changed, 53 insertions(+), 5 deletions(-)
---
diff --git a/moodle.spec b/moodle.spec
index 55b9a6a..fc80a63 100644
--- a/moodle.spec
+++ b/moodle.spec
@@ -7,14 +7,15 @@ Summary:      Learning management system
 Summary(pl.UTF-8):     System zarządzania nauczaniem
 Name:          moodle
 Version:       2.0.2
-Release:       0.1
+Release:       1
 License:       GPL v2
 Group:         Applications/Databases/Interfaces
 Source0:       http://download.moodle.org/stable20/%{name}-%{version}.tgz
 # Source0-md5: c9ff3ca4aa6f8470993e331c3e59ed33
 Source1:       http://www.forkosh.com/mimetex.zip
 # Source1-md5: 56e66e59c0c78ca824ac0a2c54565539
-Source2:       %{name}-http.conf
+Source2:       %{name}-apache.conf
+Source3:       %{name}-httpd.conf
 Patch0:                %{name}-config.patch
 URL:           http://moodle.org/
 BuildRequires: unzip
@@ -32,6 +33,7 @@ Suggests:     php-mbstring
 Suggests:      php-openssl
 Suggests:      php-tokenizer
 Suggests:      php-xmlrpc
+Conflicts:     apache-base < 2.4.0-1
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _moodledir      %{_datadir}/%{name}
@@ -131,8 +133,8 @@ for d in $RPM_BUILD_ROOT%{_moodledir}/theme/* ; do
        ln -sf %{_sysconfdir}/themes/$i 
$RPM_BUILD_ROOT%{_moodledir}/theme/$i/data
 done
 
-install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 
 # Final cleanup:
 %{__rm} $RPM_BUILD_ROOT%{_moodledir}/{*.txt,tags}
@@ -149,10 +151,10 @@ rm -rf $RPM_BUILD_ROOT
 %triggerun -- apache1 < 1.3.37-3, apache1-base
 %webapp_unregister apache %{_webapp}
 
-%triggerin -- apache < 2.2.0, apache-base
+%triggerin -- apache-base
 %webapp_register httpd %{_webapp}
 
-%triggerun -- apache < 2.2.0, apache-base
+%triggerun -- apache-base
 %webapp_unregister httpd %{_webapp}
 
 %triggerpostun -- moodle < 1.6.3
diff --git a/moodle-http.conf b/moodle-apache.conf
similarity index 100%
rename from moodle-http.conf
rename to moodle-apache.conf
diff --git a/moodle-httpd.conf b/moodle-httpd.conf
new file mode 100644
index 0000000..c2682da
--- /dev/null
+++ b/moodle-httpd.conf
@@ -0,0 +1,46 @@
+Alias /moodle /usr/share/moodle/
+
+<Directory /usr/share/moodle/>
+       Options +FollowSymLinks
+       AllowOverride None
+       Require all granted
+       AcceptPathInfo on
+
+       ### Thirdly, set up some PHP variables that Moodle needs
+
+       php_flag magic_quotes_gpc        1
+       php_flag magic_quotes_runtime    0
+       php_flag file_uploads            1
+       php_flag short_open_tag          1
+       php_flag session.auto_start      0
+       php_flag session.bug_compat_warn 0
+
+       ### Fourthly, sometimes Apache limits the size of uploaded files
+       ### (this is a separate limit to the one in PHP, see below).
+       ### The setting here turns off this limitation
+
+       LimitRequestBody 0
+
+       ### These are optional - you may not want to override php.ini 
+       ### To enable them, remove the leading hash (#)
+
+       #php_value upload_max_filesize 2M
+       #php_value post_max_size 2M
+       #php_value session.gc_maxlifetime 7200
+
+
+       ### You can change the following line to point to the 
+       ### error/index.php file in your Moodle distribution.  
+       ### It provides a form which emails you (the admin) 
+       ### about 404 errors (URL not found).
+
+       #ErrorDocument 404 http://example.org/moodle/error/index.php
+
+
+       ### People have reported that these can help in some cases
+       ### (unusual) when you see errors about undefined functions
+
+       #php_value auto_prepend_file none
+       #php_value include_path .
+</Directory>
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/moodle.git/commitdiff/94e6814329bfb4c839d1077e8a886c3d6d3622f8

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to