]> git.pld-linux.org Git - packages/php-pecl-apcu.git/commitdiff
add apache alias and apc panel config files auto/th/php-pecl-apcu-4.0.4-2
authorElan Ruusamäe <glen@delfi.ee>
Sat, 3 May 2014 16:18:45 +0000 (19:18 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 3 May 2014 16:18:57 +0000 (19:18 +0300)
apache.conf [new file with mode: 0644]
config.patch [new file with mode: 0644]
config.php [new file with mode: 0644]

diff --git a/apache.conf b/apache.conf
new file mode 100644 (file)
index 0000000..6392471
--- /dev/null
@@ -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 (file)
index 0000000..b0df955
--- /dev/null
@@ -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 (file)
index 0000000..871d42e
--- /dev/null
@@ -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');
This page took 0.092244 seconds and 4 git commands to generate.