| OK, apparently apache2 was NOT installed itself.  (I did see some packages with apache2 in their names be installed for sure.) 
 So, I've installed apache2.  (I had to reboot for the service to be able to start, but it works now.)  Then, I was getting a "404" error instead of the one above.  (Progress...)  Checking /etc/apache2/conf-enabled, there was no dokuwiki, but it was available at /etc/apache2/conf-available.  So, I've linked them:
 
 
       Code: 
root@debian[/etc/apache2/conf-enabled]# ll -s /etc/apache2/conf-available/
 total 28
 4 -rw-r--r-- 1 root root  221 Sep 29 06:03 apache2-doc.conf
 4 -rw-r--r-- 1 root root  315 Sep 29 06:03 charset.conf
 0 lrwxrwxrwx 1 root root   25 Oct 23 08:19 dokuwiki.conf -> /etc/dokuwiki/apache.conf
 4 -rw-r--r-- 1 root root  127 Jul 29  2013 javascript-common.conf
 4 -rw-r--r-- 1 root root 3224 Sep 29 06:03 localized-error-pages.conf
 4 -rw-r--r-- 1 root root  189 Sep 29 06:03 other-vhosts-access-log.conf
 4 -rw-r--r-- 1 root root 2174 Sep 29 06:03 security.conf
 4 -rw-r--r-- 1 root root  455 Sep 29 06:03 serve-cgi-bin.conf
 root@debian[/etc/apache2/conf-enabled]# ll -s /etc/apache2/conf-enabled/
 total 0
 0 lrwxrwxrwx 1 root root 34 Oct 23 07:34 apache2-doc.conf -> ../conf-available/apache2-doc.conf
 0 lrwxrwxrwx 1 root root 30 Oct 23 07:34 charset.conf -> ../conf-available/charset.conf
 0 lrwxrwxrwx 1 root root 31 Oct 23 08:15 dokuwiki.conf -> ../conf-available/dokuwiki.conf
 0 lrwxrwxrwx 1 root root 44 Oct 23 07:34 localized-error-pages.conf -> ../conf-available/localized-error-pages.conf
 0 lrwxrwxrwx 1 root root 46 Oct 23 07:34 other-vhosts-access-log.conf -> ../conf-available/other-vhosts-access-log.conf
 0 lrwxrwxrwx 1 root root 31 Oct 23 07:34 security.conf -> ../conf-available/security.conf
 0 lrwxrwxrwx 1 root root 36 Oct 23 07:34 serve-cgi-bin.conf -> ../conf-available/serve-cgi-bin.conf
 
 
 Now, I get when I try "localhost/dokuwiki" (or "localhost/dokuwiki/index.php"):
 
 
       Code: 
*/ if(php_sapi_name() != 'cli-server') { header("Location: doku.php"); exit; } # ROUTER starts below # avoid path traversal $_SERVER['SCRIPT_NAME'] = str_replace('/../', '/', $_SERVER['SCRIPT_NAME']); # routing aka. rewriting if(preg_match('/^\/_media\/(.*)/', $_SERVER['SCRIPT_NAME'], $m)) { # media dispatcher $_GET['media'] = $m[1]; require $_SERVER['DOCUMENT_ROOT'] . '/lib/exe/fetch.php'; } else if(preg_match('/^\/_detail\/(.*)/', $_SERVER['SCRIPT_NAME'], $m)) { # image detail view $_GET['media'] = $m[1]; require $_SERVER['DOCUMENT_ROOT'] . '/lib/exe/detail.php'; } else if(preg_match('/^\/_media\/(.*)/', $_SERVER['SCRIPT_NAME'], $m)) { # exports $_GET['do'] = 'export_' . $m[1]; $_GET['id'] = $m[2]; require $_SERVER['DOCUMENT_ROOT'] . '/doku.php'; } elseif($_SERVER['SCRIPT_NAME'] == '/index.php') { # 404s are automatically mapped to index.php if(isset($_SERVER['PATH_INFO'])) { $_GET['id'] = $_SERVER['PATH_INFO']; } require $_SERVER['DOCUMENT_ROOT'] . '/doku.php'; } else if(file_exists($_SERVER['DOCUMENT_ROOT'] . $_SERVER['SCRIPT_NAME'])) { # existing files # access limitiations if(preg_match('/\/([\._]ht|README$|VERSION$|COPYING$)/', $_SERVER['SCRIPT_NAME']) or preg_match('/^\/(data|conf|bin|inc)\//', $_SERVER['SCRIPT_NAME']) ) { die('Access denied'); } if(substr($_SERVER['SCRIPT_NAME'], -4) == '.php') { # php scripts require $_SERVER['DOCUMENT_ROOT'] . $_SERVER['SCRIPT_NAME']; } else { # static files return false; } } # 404
 
 
 Any ideas?
 |