Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add INSTALL files

  • Loading branch information...
commit cba1e0285520d520587a886b176a4d713c650b7d 1 parent a80c21b
@SnarkyClark authored
Showing with 66 additions and 11 deletions.
  1. +19 −11 README.debian → INSTALL.debian
  2. +47 −0 INSTALL.freebsd
View
30 README.debian → INSTALL.debian
@@ -1,24 +1,32 @@
-** NOTE: debian build is broken with current commit,
-please use https://github.com/STPeters/luafcgid/tarball/4b8e76a393c75a6f26631ae9e9ae0499aa368193
+-- Install the build dependencies
+# apt-get install build-essential liblua5.1-0-dev libfcgi-dev
-## Install the build dependencies
+-- Configure build
-apt-get install build-essential liblua5.1-0-dev libfcgi-dev
+# sh configure
-## Build luafcgid
+Ident: Linux
+Configuring for Debian...
+Makefile.debian -> Makefile
-make -f Makefile.debian
+-- Build luafcgid
-## Install luafcgid
+# make
-make -f Makefile.debian install
+-- Install luafcgid
-This operation requires superuser privileges.
+**this operation requires superuser privileges**
-## Install a basic init script
+# make install
-make -f Makefile.debian install-init
+Config file will be placed at /etc/luafcgid/config.lua
+
+-- Install a basic init script
+
+**this operation requires superuser privileges**
+
+# make install-init
A basic init script is provided for convenience. It runs luafcgid under the
system user www-data. Due to the fact that (for the moment?) luafcgid does not
View
47 INSTALL.freebsd
@@ -0,0 +1,47 @@
+-- Install the build dependencies
+
+Using packages:
+
+# pkg_add -r lua
+# pkg_add -r fcgi-devkit
+
+Using ports:
+
+# cd /usr/ports/www/fcgi && make install clean
+# cd /usr/ports/lang/lua && make install clean
+
+-- Configure build
+
+# sh configure
+
+Ident: FreeBSD
+Configuring for FreeBSD...
+Makefile.freebsd -> Makefile
+
+-- Build luafcgid
+
+# make
+
+-- Install luafcgid
+
+**this operation requires superuser privileges**
+
+# make install
+
+A rc.d script will be installed, see rc.conf entries below. Config file will be
+placed at /usr/local/etc/luafcgid/config.lua
+
+/var/run/luafcgid.pid - the location of the PID file
+/var/tmp/luafcgid.sock - the location of the listening UNIX socket
+
+The log file is placed here:
+
+/var/log/luafcgid/luafcgid.log
+
+-- Enable daemon
+
+Add folling line(s) to rc.conf:
+
+luafcgid_enable="YES"
+luafcgid_user="www"
+
Please sign in to comment.
Something went wrong with that request. Please try again.