Robotino3 wiki local install

From RobotinoWiki
Jump to: navigation, search

Contents

Packages

apt-get install mysql-server php5-mysql php5-cgi

Mysql

mysql -uroot -pdorp6 -e "DROP DATABASE IF EXISTS wikidb"
mysql -uroot -pdorp6 -e "CREATE DATABASE wikidb"
mysql -uroot -pdorp6 wikidb < usr_web310_5_2013_11_29_02_00.sql

LocalSettings.php

$wgScriptPath       = "/wiki.openrobotino.org";

$wgServer           = "";

## Database settings
$wgDBtype           = "mysql";
$wgDBserver         = "localhost";
$wgDBname           = "wikidb";
$wgDBuser           = "root";
$wgDBpassword       = "dorp6";

/etc/lighttpd/lighttpd.conf

server.modules = (
        "mod_access",
        "mod_alias",
        "mod_compress",
        "mod_redirect",
        "mod_rewrite",
        "mod_fastcgi",
        "mod_cgi"
)

server.document-root        = "/var/www"
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
server.errorlog             = "/var/log/lighttpd/error.log"
server.pid-file             = "/var/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"

index-file.names            = ( "index.php", "index.html",
                                "index.htm", "default.htm",
                               " index.lighttpd.html" )

url.access-deny             = ( "~", ".inc" )

fastcgi.server = ( ".php" =>
                   ( "localhost" =>
                     (
                       "host" => "127.0.0.1",
                       "port" => 1026,
                       "bin-path" => "/usr/bin/php-cgi"
                     )
                   )
                )

url.rewrite-once = (
                    #"^/wiki/upload/(.+)" => "/wiki/upload/$1",
                    #"^/$" => "/wiki.openrobotino.org/index.php",
                    "^/wiki" => "/wiki.openrobotino.org/index.php?title=Main_Page",
                    #"^/wiki/([^?]*)(?:\?(.*))?" => "/wiki.openrobotino.org/index.php?title=$1&$2"
                  )

#url.redirect = ( "^/(?!w|wiki|robots\.txt|favicon\.ico)(.*)" => "/wiki/$1" )


static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

## Use ipv6 if available
#include_shell "/usr/share/lighttpd/use-ipv6.pl"

dir-listing.encoding        = "utf-8"
server.dir-listing          = "enable"

compress.cache-dir          = "/var/cache/lighttpd/compress/"
compress.filetype           = ( "application/x-javascript", "text/css", "text/html", "text/plain" )

include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox