]> lifelog.hopto.org Git - LifeLog.git/commitdiff
Upd.
authorwbudic <redacted>
Sun, 12 Dec 2021 13:02:43 +0000 (00:02 +1100)
committerwbudic <redacted>
Sun, 12 Dec 2021 13:02:43 +0000 (00:02 +1100)
Installation.txt
install_modules.sh
lighttpd.conf

index f5c675f819c6144e17a46a0dd091e1666267382d..e01e647b736bc358ffe6cceee340764a6ceb673b 100644 (file)
@@ -46,6 +46,15 @@ $ sudo make install
 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
 ##
@@ -123,6 +132,7 @@ perl -MCPAN -e 'install Crypt::Blowfish'
 ###
 # since 1.8 switched to:
 # before was -> sudo cpanm Try::Tiny;
+sudo cpan Exception::Class
 sudo cpan Log::Log4per
 sudo cpan Syntax::Keyword::Try
 
@@ -132,7 +142,6 @@ sudo cpan DateTime::Format::SQLite;
 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;
@@ -146,6 +155,8 @@ sudo cpan IO::Compress::Gzip;
 sudo cpan IO::Prompter;
 sudo cpan IO::Interactive;
 sudo cpan -T DBD::Pg;
+sudo cpan CGI CGI::Session;
+
 
 
 
index c3f2ebd5504315a433c308f8b9f3583dea3d3ff4..545a216e94d711898462168e91459cfa23c6c6d9 100755 (executable)
@@ -18,7 +18,7 @@ echo -e "Perl language not detected please install latest version, ideally (as s
 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 c674ba55e552d6d86bcbb253c35421bd3c9a5342..a9ee492faecdc611f9c97e79fa7a4af6e22fffc4 100644 (file)
@@ -30,7 +30,7 @@ server.modules = (
 
 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"
 
 
@@ -38,11 +38,12 @@ $SERVER["socket"] == ":443" {
 #
 #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" }