[packages/php-pecl-apcu] add apache alias and apc panel config files

glen glen at pld-linux.org
Sat May 3 18:19:19 CEST 2014


commit d522c69c68ec58b980d663fd4a56c9191a729475
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat May 3 19:18:45 2014 +0300

    add apache alias and apc panel config files

 apache.conf  | 16 ++++++++++++++++
 config.patch | 10 ++++++++++
 config.php   | 28 ++++++++++++++++++++++++++++
 3 files changed, 54 insertions(+)
---
diff --git a/apache.conf b/apache.conf
new file mode 100644
index 0000000..6392471
--- /dev/null
+++ b/apache.conf
@@ -0,0 +1,16 @@
+# APC Control Panel
+Alias /apcu/ /usr/share/apcu/
+
+<Directory /usr/share/apcu>
+	<IfModule mod_authz_core.c>
+		# Apache 2.4
+		Require local
+	</IfModule>
+	<IfModule !mod_authz_core.c>
+		# Apache 2.2
+		Order Deny,Allow
+		Deny from All
+		Allow from 127.0.0.1
+		Allow from ::1
+	</IfModule>
+</Directory>
diff --git a/config.patch b/config.patch
new file mode 100644
index 0000000..b0df955
--- /dev/null
+++ b/config.patch
@@ -0,0 +1,10 @@
+--- php-pecl-apcu-4.0.4/apc.php~	2014-03-01 09:29:53.000000000 +0200
++++ php-pecl-apcu-4.0.4/apc.php	2014-05-03 18:12:24.418405184 +0300
+@@ -24,6 +24,7 @@
+ 
+ $VERSION='$Id$';
+ 
++require_once '/etc/webapps/apcu/config.php';
+ ////////// READ OPTIONAL CONFIGURATION FILE ////////////
+ if (file_exists("apc.conf.php")) include("apc.conf.php");
+ ////////////////////////////////////////////////////////
diff --git a/config.php b/config.php
new file mode 100644
index 0000000..871d42e
--- /dev/null
+++ b/config.php
@@ -0,0 +1,28 @@
+<?php
+// Use (internal) authentication - best choice if
+// no other authentication is available
+// If set to 0:
+//  There will be no further authentication. You
+//  will have to handle this by yourself!
+// If set to 1:
+//  You need to change ADMIN_PASSWORD to make
+//  this work!
+define('USE_AUTHENTICATION', 1);
+
+// Admin Username
+define('ADMIN_USERNAME', 'apc');
+// Admin Password - CHANGE THIS TO ENABLE!!!
+define('ADMIN_PASSWORD', 'password');
+
+// (beckerr) I'm using a clear text password here, because I've no good idea how to let 
+//           users generate a md5 or crypt password in a easy way to fill it in above
+
+//define('DATE_FORMAT', "d.m.Y H:i:s");	// German
+//define('DATE_FORMAT', "d/m/Y H:i:s");	// French
+//define('DATE_FORMAT', 'Y/m/d H:i:s'); 	// US
+define('DATE_FORMAT', 'Y-m-d H:i:s'); 	// ISO8601
+
+// Image size
+define('GRAPH_SIZE',200);
+
+//define('PROXY', 'tcp://127.0.0.1:8080');
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-apcu.git/commitdiff/d522c69c68ec58b980d663fd4a56c9191a729475



More information about the pld-cvs-commit mailing list