FPGARM4ULinux www

From Fpga4u

Jump to: navigation, search

Install a web server

We would like to install a web server for using a wiki (MediaWiki) on the FPGARM4U card.

Install the packages

We are going to use : Lighttpd as the web server, SQLite as the database server, PHP as the scripts "server".

PHP5 works in Lighttpd through FastCGI mode.

# apt-get install lighttpd php5-cgi php5-sqlite3

Configure Lighttpd and PHP

Lighttpd and PHP5 have to be configured for running together correctly.

First, for configuring PHP, we have to edit the php.ini file

# vim /etc/php5/cgi/php.ini

and add at the bottom of the file (or modify) the line below.

cgi.fix_pathinfo = 1

Then, for configuring Lighttpd, we have to edit the lighttpd.conf file

# vim /etc/lighttpd/lighttpd.conf

and the server.modules variable for allowing mod_access, mod_alias, mod_accesslog, mod_fastcgi. Then, add at the end of the file these four lines.

fastcgi.server = (".php" => (("bin-path" => "/usr/bin/php5-cgi",
                              "socket" => "/tmp/php.socket")))

That done, reload the configuration of lighttpd.

# /etc/init.d/lighttpd reload

Configure SQLite

TODO

Install Wikimedia

TODO, take the SQLite version (beta)
Personal tools