site  contact  subhomenews

PPLOG in Puppy

July 13, 2008 — BarryK
I have created PET packages for Hiawatha web server version 6.7 and PPLOG blog version 1.1.

I finally got rid of /root/ghttp directory, as that was setup for nullhttpd and Quisp.

Hiawatha and PPLOG now use /root/httpd/hiawatha directory. This is the root web path when Hiawatha server is started, configurable from /etc/hiawatha/httpd.conf.

PPLOG is located at /root/httpd/hiawatha/blog directory.

I also created a menu entry for PPLOG, in the 'Personal' category, with a little GUI to start/stop the web server as well as launch PPLOG. The GUI script launches /usr/local/bin/defaulthtmlviewer http://127.0.0.1/blog/pup_pplog.pl to run PPLOG -- I have not yet figured out how to setup URL redirection to enable "pup_pplog.pl" to be left out of the URL.

Posts and comments are plain text files and are stored in /root/httpd/hiawatha/blog/posts and /root/httpd/hiawatha/blog/comments directories.

Comments

Keen to try this


Re: path to blog
Username: BarryK
"The GUI I wrote for PPLOG explicitly requires Hiawatha. But, yes, could change to some other server in the future. But then, the way web servers work, the Perl scripts and all associated images, data and text files have to be inside the web root directory, and in Hiawatha's case that is /root/httpd/hiawatha -- the web server cannot "see" anything above this. But, I could drop the 'hiawatha' directory name, just make the web-root as /root/httpd -- but I had earlier decided not to do that, in case want to use other web servers that can also have their own separate web-roots under /root/httpd.

PPLOG PETs
Username: BarryK
"growler, Ok, I have uploaded them to here: http://distro.ibiblio.org/pub/linux/distributions/puppylinux/test/unipup-alpha1/ There are three packages, pplog, hiawatha and an updated tiny perl (with CGI module). Note that hiawatha is compiled on Puppy4 so may not work in older puppies. It will be in 4.1alpha4, probably due out in a few days.


Tags: puppy