Sysadmin papilusion apcviewer 11 01 2012 - Seizam/seizamcore GitHub Wiki

Session

  • user : root
  • host : papilusion.reverse.seizam.com
  • date : 11/01/12 10:16
  • curpath : /root

Commands

 [email protected]# mkdir /usr/share/php-apc
 [email protected]# cp /usr/share/doc/php-apc/apc.php.gz /usr/share/php-apc/
 [email protected]# cd /usr/share/php-apc/
 [email protected]# gzip -d apc.php.gz
 [email protected]# ls
 [email protected]# cd /etc/apache2/sites-available/
 [email protected]# mv phpmyadmin localhost-admin-tools
 [email protected]# ls -lsa ../sites-enabled/
 [email protected]# a2dissite phpmyadmin
  • Edit /etc/apache2/sites-available/localhost-admin-tools, see [1]
 [email protected]# a2ensite localhost-admin-tools
 [email protected]# cd ../sites-enabled/
 [email protected]# ls
 [email protected]# mv localhost-admin-tools 000-localhost-admin-tools
 [email protected]# /etc/init.d/apache2 reload
 [email protected]# cd /root

Files

[1]\* Edit /etc/apache2/sites-available/localhost-admin-tools

--- old	2012-01-11 10:19:28.000000000 +0100
+++ new	2012-01-11 10:22:26.000000000 +0100
@@ -4,2 +4,5 @@
 
+	# PHPMYADMIN
+	# ----------
+
 	Alias /phpmyadmin /usr/share/phpmyadmin
@@ -44,2 +47,19 @@
 
+
+
+	# APC
+	# ---
+
+	Alias /apc /usr/share/php-apc/apc.php
+
+        <Directory /usr/share/php-apc>
+                Options none
+                DirectoryIndex apc.php
+
+                Order deny,allow
+                Deny from all
+                Allow from 127.0.0.1
+        </directory>
+
+
 </virtualhost>
⚠️ **GitHub.com Fallback** ⚠️