john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

cherokee webserver php phpmyadmin

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

  1. extensions php
  2. file exists (match any - all checkboxes checked) = list and send (all checkboxes unchecked except I/O)
  3. 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


  • « exceptions classes try catch throw suppress
  • mock unit test py test attribute method side effect assert »

Published

Jun 27, 2014

Category

cherokee

~202 words

Tags

  • cherokee 7
  • php 82
  • phpmyadmin 1
  • webserver 2