From Fedora Project Wiki

(add installation)
 
(add mediawiki installation)
Line 32: Line 32:
$ su -c "systemctl status lighttpd.service"
$ su -c "systemctl status lighttpd.service"
     </pre>
     </pre>
  </li>
</ol>
== MediaWiki Installation ==
<ol>
  <li>
    Download the MediaWiki package from the official web site: [http://mediawiki.org]
  </li>
  <li>
    Decompress the package into the home directory of lighttpd:
    <pre>
su -c "tar zxvf mediawiki-<n.v.r>.tar.gz /var/www/lighttpd/"
    </pre>
  </li>
  <li>
    Rename the decompressed directory into "wiki" and change the owner and group for everything. For example:
    <pre>
su -c "mv /var/www/lighttpd/mediawiki-<n.v.r> /var/www/lighttpd/wiki"
su -c "chmod root:root /var/www/lighttpd/wiki -R"
    </pre>
  </li>
  <li>
    Grant read, write, execute permissions for the PHP session directory. Such as changing the group ownership to be "lighttpd":
    <pre>
su -c "chgrp lighttpd /var/lib/php/session"
    </pre>
  </li>
  <li>
    Create a directory for the storage of SQLite database files and grant permissions for the server:
    <pre>
su -c "mkdir -p /var/www/data"
su -c "chmod a+w"
    </pre>
  </li>
  <li>
    Open the wiki home page and following the instructions: [http://localhost/wiki/]
   </li>
   </li>
</ol>
</ol>

Revision as of 17:45, 14 August 2012

Introduction

This is the quickest & lightest deployment procedures of MediaWiki. Lighttpd, PHP, SQLite are used and the aim is set the MediaWiki available with the shortest time with minimum burden to the system. Recommend as a secure personal note taking tool, which everything is kept locally rather than cloud synchronized on the Internet somewhere you have no idea.


Server Preparation

  1. Install lighttpd & PHP. Please refer to DeployLighttpdPHPServer.
  2. Install SQLite package:
    $ su -c "yum install sqlite"
        
  3. Install PDO modules of PHP, to let PHP supports SQLite:
    $ su -c "yum install php-pdo"
        
  4. Restart lighttpd service:
    $ su -c "systemctl restart lighttpd.service"
        
  5. Check if lighttpd is running by browsing "http://localhost/" and the following command:
    $ su -c "systemctl status lighttpd.service"
        

MediaWiki Installation

  1. Download the MediaWiki package from the official web site: [1]
  2. Decompress the package into the home directory of lighttpd:
    su -c "tar zxvf mediawiki-<n.v.r>.tar.gz /var/www/lighttpd/"
        
  3. Rename the decompressed directory into "wiki" and change the owner and group for everything. For example:
    su -c "mv /var/www/lighttpd/mediawiki-<n.v.r> /var/www/lighttpd/wiki"
    su -c "chmod root:root /var/www/lighttpd/wiki -R"
        
  4. Grant read, write, execute permissions for the PHP session directory. Such as changing the group ownership to be "lighttpd":
    su -c "chgrp lighttpd /var/lib/php/session"
        
  5. Create a directory for the storage of SQLite database files and grant permissions for the server:
    su -c "mkdir -p /var/www/data"
    su -c "chmod a+w"
        
  6. Open the wiki home page and following the instructions: [2]