html_css_javascript
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| html_css_javascript [2018/12/10 12:06] – external edit 127.0.0.1 | html_css_javascript [2022/04/22 20:30] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ==== Installing a lighttpd webserver without root access ==== | ||
| + | This is not dificult but if a local version of Perl is also being used, it may be tricky to get the local version of Perl modules to run (See [[Perl|Install additional modules locally without root access]]) | ||
| + | |||
| + | This is an example of a lighttpd.conf file that works for me (serving Perl pages from the locally installed Perl) | ||
| + | < | ||
| + | # ============================================================================================================ | ||
| + | # see full config example at | ||
| + | # https:// | ||
| + | # ============================================================================================================ | ||
| + | |||
| + | var.root = "< | ||
| + | var.log_root = root + "/ | ||
| + | var.doc_root = root + "/ | ||
| + | |||
| + | setenv.add-environment = (" | ||
| + | |||
| + | server.modules = ( | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ) | ||
| + | # this assigns the local Perl but does not catch the local value of PERL5LIB, so... cgi.assign | ||
| + | cgi.assign | ||
| + | " | ||
| + | ) | ||
| + | |||
| + | server.document-root = doc_root + "/ | ||
| + | server.port | ||
| + | server.errorlog | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | |||
| + | mimetype.assign = ( | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ) | ||
| + | |||
| + | index-file.names | ||
| + | # | ||
| + | alias.url | ||
| + | url.access-deny | ||
| + | |||
| + | |||
| + | |||
| + | # | ||
| + | # | ||
| + | |||
| + | # | ||
| + | #( | ||
| + | #.method. => " | ||
| + | #.realm. => " | ||
| + | #.require. => " | ||
| + | #) | ||
| + | #) | ||
| + | |||
| + | </ | ||
| + | where execperl.ksh looks like this | ||
| + | < | ||
| + | # | ||
| + | export PERL5LIB=" | ||
| + | export PATH=" | ||
| + | exec perl | ||
| + | </ | ||
| + | |||
| + | === Use the new version of Perl === | ||
| + | < | ||
| + | vi $HOME/ | ||
| + | export PERL5LIB="/ | ||
| + | export PATH=" | ||
| + | </ | ||
| + | |||
| + | === Syntax check the webserver config === | ||
| + | < | ||
| + | cd / | ||
| + | ./lighttpd -tf ../ | ||
| + | </ | ||
| + | === Start the webserver === | ||
| + | < | ||
| + | ./lighttpd -Df ../ | ||
| + | </ | ||
| + | |||
| + | ==== Bootstrap ==== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
html_css_javascript.1544443601.txt.gz · Last modified: 2018/12/10 12:06 by 127.0.0.1
