[pve-devel] r5938 - in dab-pve-appliances/trunk: . debian-6.0-mediawiki
svn-commits at proxmox.com
svn-commits at proxmox.com
Mon May 9 11:50:14 CEST 2011
Author: dietmar
Date: 2011-05-09 11:50:14 +0200 (Mon, 09 May 2011)
New Revision: 5938
Added:
dab-pve-appliances/trunk/debian-6.0-mediawiki/
dab-pve-appliances/trunk/debian-6.0-mediawiki/Makefile
dab-pve-appliances/trunk/debian-6.0-mediawiki/dab.conf
dab-pve-appliances/trunk/debian-6.0-mediawiki/mediawiki.conf
dab-pve-appliances/trunk/debian-6.0-mediawiki/robots.txt
Log:
Added: dab-pve-appliances/trunk/debian-6.0-mediawiki/Makefile
===================================================================
--- dab-pve-appliances/trunk/debian-6.0-mediawiki/Makefile (rev 0)
+++ dab-pve-appliances/trunk/debian-6.0-mediawiki/Makefile 2011-05-09 09:50:14 UTC (rev 5938)
@@ -0,0 +1,30 @@
+
+
+BASEDIR:=$(shell dab basedir)
+
+all: info/init_ok
+ dab bootstrap
+ dab task mysql --password admin
+ dab install apache2-mpm-prefork apache2
+ dab task php --memlimit 64
+ dab install php5-xcache
+ sed -e 's/^\s*xcache.var_size\s*=\s*0M/xcache.var_size = 16M/' -i ${BASEDIR}/etc/php5/conf.d/xcache.ini
+ dab install mediawiki mediawiki-extensions
+ install -m 0644 mediawiki.conf ${BASEDIR}/etc/mediawiki/apache.conf
+ install -m 0644 robots.txt ${BASEDIR}/var/www/robots.txt
+ dab exec a2dissite default
+ dab finalize
+
+info/init_ok: dab.conf
+ dab init
+ touch $@
+
+.PHONY: clean
+clean:
+ dab clean
+ rm -f *~
+
+.PHONY: dist-clean
+dist-clean:
+ dab dist-clean
+ rm -f *~
Added: dab-pve-appliances/trunk/debian-6.0-mediawiki/dab.conf
===================================================================
--- dab-pve-appliances/trunk/debian-6.0-mediawiki/dab.conf (rev 0)
+++ dab-pve-appliances/trunk/debian-6.0-mediawiki/dab.conf 2011-05-09 09:50:14 UTC (rev 5938)
@@ -0,0 +1,19 @@
+Suite: squeeze
+CacheDir: ../cache
+#Source: http://ftp.debian.org/debian SUITE main contrib
+#Source: http://ftp.debian.org/debian SUITE-updates main contrib
+#Source: http://security.debian.org SUITE/updates main contrib
+Architecture: i386
+Name: mediawiki
+Version: 1.15-5
+Depends: mediawiki (= 1:1.15.5-2squeeze1)
+Section: www
+Maintainer: Proxmox Support Team <support at proxmox.com>
+Infopage: http://pve.proxmox.com/wiki/MediaWiki
+ManageUrl: http://__IPADDRESS__/
+Description: MediaWiki
+ MediaWiki is a wiki engine (a program for creating a collaboratively
+ edited website). It is designed to handle heavy websites containing
+ library-like document collections, and supports user uploads of
+ images/sounds, multilingual content, TOC autogeneration, ISBN links,
+ etc.
Added: dab-pve-appliances/trunk/debian-6.0-mediawiki/mediawiki.conf
===================================================================
--- dab-pve-appliances/trunk/debian-6.0-mediawiki/mediawiki.conf (rev 0)
+++ dab-pve-appliances/trunk/debian-6.0-mediawiki/mediawiki.conf 2011-05-09 09:50:14 UTC (rev 5938)
@@ -0,0 +1,47 @@
+ServerAdmin webmaster at localhost
+ServerSignature Off
+ServerTokens Prod
+
+<IfModule mpm_prefork_module>
+ StartServers 2
+ MinSpareServers 1
+ MaxSpareServers 2
+ MaxClients 50
+ MaxRequestsPerChild 100
+</IfModule>
+
+<VirtualHost *:80>
+
+DocumentRoot /var/lib/mediawiki/
+
+<Directory />
+ Options FollowSymLinks
+ AllowOverride None
+</Directory>
+
+<Directory /var/lib/mediawiki/>
+ Options +FollowSymLinks
+ AllowOverride All
+ order allow,deny
+ allow from all
+</Directory>
+
+# some directories must be protected
+<Directory /var/lib/mediawiki/config>
+ Options -FollowSymLinks
+ AllowOverride None
+</Directory>
+<Directory /var/lib/mediawiki/upload>
+ Options -FollowSymLinks
+ AllowOverride None
+</Directory>
+
+ErrorLog /var/log/apache2/error.log
+
+# Possible values include: debug, info, notice, warn, error, crit,
+# alert, emerg.
+LogLevel warn
+
+CustomLog /var/log/apache2/access.log combined
+
+</VirtualHost>
Added: dab-pve-appliances/trunk/debian-6.0-mediawiki/robots.txt
===================================================================
--- dab-pve-appliances/trunk/debian-6.0-mediawiki/robots.txt (rev 0)
+++ dab-pve-appliances/trunk/debian-6.0-mediawiki/robots.txt 2011-05-09 09:50:14 UTC (rev 5938)
@@ -0,0 +1,9 @@
+User-agent: *
+Disallow: /index.php?diff=
+Disallow: /index.php?oldid=
+Disallow: /index.php?title=Help
+Disallow: /index.php?title=Image
+Disallow: /index.php?title=MediaWiki
+Disallow: /index.php?title=Special:
+Disallow: /index.php?title=Template
+Disallow: /skins
More information about the pve-devel
mailing list