From 781794ab9845ac89a32d9a573b79541431659d20 Mon Sep 17 00:00:00 2001 From: wbudic Date: Mon, 13 Dec 2021 00:02:43 +1100 Subject: [PATCH] Upd. --- Installation.txt | 13 ++++++++++++- install_modules.sh | 2 +- lighttpd.conf | 9 +++++---- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/Installation.txt b/Installation.txt index f5c675f..e01e647 100644 --- a/Installation.txt +++ b/Installation.txt @@ -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; + diff --git a/install_modules.sh b/install_modules.sh index c3f2ebd..545a216 100755 --- a/install_modules.sh +++ b/install_modules.sh @@ -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 diff --git a/lighttpd.conf b/lighttpd.conf index c674ba5..a9ee492 100644 --- a/lighttpd.conf +++ b/lighttpd.conf @@ -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" } -- 2.34.1