From: Metabox Date: Sat, 23 Mar 2019 20:27:53 +0000 (+1100) Subject: updated with full instructions for install of thttpd web server. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=2725a62909764a2a7bea6b26943ec5409b57c7e3;p=LifeLog.git updated with full instructions for install of thttpd web server. --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e27c0bd --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +log/thttpd.log +thttpd-2.29/ +thttpd-2.29/* +startDevWebServer.sh +thttpd.conf diff --git a/Installation.txt b/Installation.txt index fbfc10f..71dc947 100644 --- a/Installation.txt +++ b/Installation.txt @@ -2,6 +2,16 @@ https://acme.com/software/thttpd/ +wget https://acme.com/software/thttpd/thttpd-2.29.tar.gz +tar -xvzf thttpd-2.29.tar.gz +cd thttpd-2.29/ +sudo groupadd www +make +make install + +#rm thttpd-2.29.tar.gz +#rm -rf thttpd-2.29 + Create an mkdir ~/thttpd_dev directory. Run server using this config file, where {user} is your home login location. @@ -22,8 +32,18 @@ host=0.0.0.0 charset=utf-8 cgipat=**.cgi +After modifying the thttpd.conf +you'll have to modify the startDevWebServer.sh to reflect your setup before running the script. + +The full URL to the LifeLog is the following link (if not working try without cgi-bin, and proceed with further installation): +# +# + http://localhost:8080/cgi-bin/ +# +# -#Install cpanm to make installing other modules easier (you'll thank us later). You need to type these commands into a Terminal emulator (Mac OS X, Win32, Linux) +#Install cpanm to make installing other modules easier (you'll thank us later). +You need to type these commands into a Terminal emulator (Mac OS X, Win32, Linux) sudo apt install cpanminus #Install DBI module diff --git a/run/thttpd.pid b/run/thttpd.pid index a222952..59b6a99 100644 --- a/run/thttpd.pid +++ b/run/thttpd.pid @@ -1 +1 @@ -1507 +5775 diff --git a/startDevWebServer.sh b/startDevWebServer.sh index 7a20870..c267228 100755 --- a/startDevWebServer.sh +++ b/startDevWebServer.sh @@ -1,5 +1,5 @@ #!/bin/bash export DB_USER="db" export DB_PASS="db_pass" -cd /home/will/thttpd_dev +cd /home/will/dev/LifeLog thttpd -C thttpd.conf& diff --git a/thttpd-2.29.tar.gz b/thttpd-2.29.tar.gz new file mode 100644 index 0000000..0e800c4 Binary files /dev/null and b/thttpd-2.29.tar.gz differ diff --git a/thttpd.conf b/thttpd.conf index 674f79b..df28136 100644 --- a/thttpd.conf +++ b/thttpd.conf @@ -1,8 +1,8 @@ # This section overrides defaults -dir=/home/will/thttpd_dev/htdocs +dir=/home/will/dev/LifeLog/htdocs user=will -logfile=/home/will/thttpd_dev/log/thttpd.log -pidfile=/home/will/thttpd_dev/run/thttpd.pid +logfile=/home/will/dev/LifeLog/log/thttpd.log +pidfile=/home/will/dev/LifeLog/run/thttpd.pid # This section _documents_ defaults in effect port=8080 nosymlinkcheck # default = !chroot