pplog not working in Slacko64

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#11 Post by OscarTalks »

The pplog package has been removed from Slacko 6.3 it would appear.
Copying the pplog files from an earlier Puppy
It works OK in 32bit Slacko 6.3.0

In Slacko64 6.3.0
the hiawatha webserver is running as user "nobody"
disobeying the configuration file instruction to run as user "webuser"
this means the permissions are wrong on the pplog files
I can change those but my browser then tries to download the perl script rather than executing it, so there may be some other problem of the perl program not being compatible with this script.

EDIT:- Figured it out.
Hiawatha is reading the configuration file from /usr/etc/hiawatha
(not /etc/hiawatha)
Edit the config file
Add the files from earlier Puppy (or .pet?)
Make sure files and directories are owned by webuser:webgroup
WORKS.


Maybe someone would wish to try compiling the latest hiawatha for Slacko64
If so I would suggest using -DCMAKE_INSTALL_LOCALSTATEDIR=/var
This is not mentioned in the ReadMe, but it works and prevents use of the unconventional /usr/var path which we don't normally use in Puppy.

I recently compiled hiawatha 10.4 in Wheezy. It is much more recent than the 8.6 in Slacko and it appears to work well.
Attachments
pplog-slacko64.jpg
edit the config file in /usr/etc/hiawatha NOT /etc/hiawatha
(55.3 KiB) Downloaded 167 times
Oscar in England
Image

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#12 Post by rockedge »

excellent work! glad you got it going. It really does a good job and is so fast and light.

pagestep007
Posts: 37
Joined: Tue 13 Jan 2015, 15:20
Location: colombia

pplog not working in Slacko64

#13 Post by pagestep007 »

(just repeating an answer to a post here, but for those who might be searching for an answer as I did, and had trouble finding the appropriate thread)

EXCELLENT ! Thank you.
I installed pplog- 1.1.3.pet and then pasted the following into the config file in usr/etc/hiawatha, and it all suddenly worked.



ServerId = webuser
ConnectionsTotal = 150
ConnectionsPerIP = 10
SystemLogfile = /var/log/hiawatha/system.log
GarbageLogfile = /var/log/hiawatha/garbage.log

Binding {
Port = 80
# Interface = 127.0.0.1
}
Hostname = 127.0.0.1
WebsiteRoot = /root/Web-Server
StartFile = index.html
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log

#add this stuff to get a perl script working (pplog)...
#QUISP has a binary executable CGI named 'quisp.bin'...
MimetypeConfig = /etc/mime.types
#CGIhandler = /usr/bin/perl:pl
CGIextension = pl,bin
ExecuteCGI = yes
#QUISP puts %0D, %0A (carriage-return, line-feed) chars in the url
#(v128), to allow chars below ascii 32 need this...
SecureURL = no


I did not get any joy yet with pe_pplog nor sjpplog but will give them a go. I like pup_pplog, as it has the menu entry and starts Hiawatha from there. Thank you once again.

Post Reply