THEORY cherokee-admin is a WebUI for modifying /etc/cherokee/cherokee.conf
all virtual servers are merely lines added such as:
vserver!50!directory_index = index.php,index.html vserver!50!document_root = /var/www/myphpsite vserver!50!nick = john.kittyandbear.net
External redirection is like an html redirect where the new full url is republished to the browser Internal redirection invisibly changes all behavior (for the browser)
sudo apt-get install cherokee apt-get install php5-gd php5-cgi
cd /var/www
sudo cherokee-admin
if using mysql sudo apt-get install php5-mysql mysql-server (maybe mysql-client too?)
PRACTICE
test.kittyandbear.org
- extensions php
- file exists (match any - all checkboxes checked) = list and send (all checkboxes unchecked except I/O)
- default none
kittyandbear.org final 1. Full Path / = Redirection Internal ... blank ... /john/index.php (alternatively Redirection internal ^/$ /index.html - covers the case of root trailing slash) final 2. Extensions php (check local file) = FastCGI Round Robin PHP Interpreter 3. Default = Static Content
http://www.fileformat.info/tool/regex.htm
Easy Redirection
cherokee-admin = Virtual Servers + Maintenance Tasks -> Redirection (just enter the old domain and new target) (creates a /dev/null with Default Redirection (external) /(*.)$ to http://newtarget/$1
phpmyadmin
preferrably first: https://launchpad.net/~nijel/+archive/phpmyadmin ; apt-get update
sudo apt-get install phpmyadmin
sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin sudo chown -R www-data:www-data /usr/share/phpmyadmin
Virtual Servers + Languages -> PHP -> Add -> Next Document root: /var/www/phpmyadmin hostname: phpmyadmin.example.com # must match a DNS record (unless using SSH tunnel proxy magic)
https://phpmyadmin.example.com