Requirements: G++ and gcc compilers, and Gcc-4.8 GNU Compiler
# Install Perl, properly, don't use the distro provided perl interpreter (might be outdated or has missing modules).
+
+This best is explained? If running under sudo and cgi based scripts, you will be using the system wide or provided installation of perl.
+If logged in shell as normal user issue, 'perl -v', you might be getting a different user updated version of it.
+To troubleshoot, you can compare, issue, '/usr/bin/perl -v', best is if both return same, version.
+Solution already provided for this is to use /usr/bin/local/perl executable which should be the latest if installing the latest perl.
+Notice - Most web server configuration files, require cgi settings to point to right perl executable.
+If still experiencing problems, running provided ./install_modules.sh was probably not issued, and could solve requirements.
+
+
##
sudo apt install perlbrew
##
###
# since 1.8 switched to:
# before was -> sudo cpanm Try::Tiny;
+sudo cpan Exception::Class
sudo cpan Log::Log4per
sudo cpan Syntax::Keyword::Try
sudo cpan Text::CSV;
sudo cpan Number::Bytes::Human;
sudo cpan Gzip::Faster;
-sudo cpan CGI::Session;
sudo cpan Number/Bytes/Human.pm;
sudo cpan Regexp::Common;
sudo cpan JSON;
sudo cpan IO::Prompter;
sudo cpan IO::Interactive;
sudo cpan -T DBD::Pg;
+sudo cpan CGI CGI::Session;
+
exit
fi
-LifeLogInstall=install_lifelog_req_modules_2.0.sh
+LifeLogInstall=install_lifelog_req_modules_2.4.sh
sudo cat Installation.txt | grep 'sudo apt install' | awk '{print $0, "-y"}' > $LifeLogInstall
sudo cat Installation.txt | grep 'sudo cpan' >> $LifeLogInstall
sudo chmod +x $LifeLogInstall
index-file.names = ( "index.html" )
server.breakagelog = "/home/will/dev/LifeLog/dbLifeLog/lighttpd_server.log"
-cgi.assign = ( ".pl" => "/usr/bin/perl", ".cgi" => "/usr/bin/perl" )
+cgi.assign = ( ".pl" => "/usr/local/bin/perl", ".cgi" => "/usr/local/bin/perl" )
cgi.x-sendfile = "disable"
#
#ssl.engine = "disable"
## Selfsigned SSL Certificate location created with openssl req -x509 -newkey rsa:4096 -sha256 ...etc...
-ssl.pemfile = "/home/will/dev/elite.net.pem"
-server.name = "elite.net"
+#https://www.interserver.net/tips/kb/how-to-configure-ssl-in-lighttpd/
+ssl.pemfile = "/home/will/dev/nomad.pem"
+server.name = "nomad.net"
}
-# Create under directory link in cgi-bin: to static pages directory.
+# Create soft link in cgi-bin: to desired static pages directory.
# with i.e: ln -s /home/will/dev/LifeLog/htdocs/ static
$HTTP["url"] =~ "^/static($|/)" { server.dir-listing = "enable" }