Page 1 of 4
pe_pplog v2.1b bufixes!
Posted: Wed 22 May 2013, 02:52
by efiabruni
I had used the PPLOG v1.1b for a year during my travels when I set out to add a gallery to it (for my travel pictures), fix some bugs I had found (mainly the archive) and change some things that I wanted to tweak for my personal liking.
In the end it turned into a project, with the objective to create a blog that is pretty (updated css, taking advantage of JQuery features), easy to use (mainly by separating the administrator features from the main script) and customise. The result was the pe_pplog (pretty easy pplog).
You can find it on Github under
http://github.com/efiabruni
The newest release is Version 2.1b, which comes in two pets, one for puppys with the hiawatha server installed with /root/Web-Server as the document root and the other for puppys with a lampp installation at /opt/lampp.
It comes in a German and an English version (with documentation being in either language) and Spanish localisation available for either, as well as an incomplete Greek one (taken from the translation of the original PPLOG done by koulaxizis). It is also possible to add your own translation in the pe_Config.pl file.
Packages have been tested in Precise (2.7.1), Slacko (5.6), Lucid(5.2.8-005) Saluki (23) and Carolina (latest) but should work with all other puppys who have the servers installed[url]
Posted: Wed 22 May 2013, 17:36
by jamesbond
Checked your site - it's a cool blog
added features!
Posted: Thu 06 Jun 2013, 00:20
by efiabruni
I wrote a script to create a gallery to my travel blog, the result can be seen
here.
It can display pictures in jpeg/jpg, png and gif format. Thumbnails should be placed into a folder named "thumbs" in the image folder and have the same name as the original photo. If there is no "thumbs" folder the script uses the original photo (resized) as thumbnails, but I would recommend creating thumbnails for high quality pictures for easy loading.
I also made a simple "Contact me" page: either as a separate page (
http://tine.pagekite.me/contact.pl) or integrated in the blog (
http://tine.pagekite.me/pe_pplog.pl/?do=contact). You will have to add our $config_contactAddress= 'Your info'; to pe_Config.pl
jamesbond found a bug in the archive:
jamesbond wrote:
The archiving doesn't work for me (it says "no post in archive"), I made it work by replacing
my @dates = map { split(/"/, $_); @_[2].'|'.@_[4].'|'.@_[0]; } @entries;
with
my @dates = map { my @stuff = split(/"/, $_); @stuff[2].'|'.@stuff[4].'|'.@stuff[0]; } @entries;.
see previous post
Posted: Thu 06 Jun 2013, 00:29
by efiabruni
I wrote a script to create a gallery to my travel blog, the result can be seen
here.
It can display pictures in jpeg/jpg, png and gif format. Thumbnails should be placed into a folder named "thumbs" in the image folder and have the same name as the original photo. If there is no "thumbs" folder the script uses the original photo (resized) as thumbnails, but I would recommend creating thumbnails for high quality pictures for easy loading.
I also made a simple "Contact me" page: either as a
separate page
or
integrated in the blog. You will have to add our $config_contactAddress= 'Your info'; to pe_Config.pl
jamesbond found a bug in the archive:
jamesbond wrote:
The archiving doesn't work for me (it says "no post in archive"), I made it work by replacing
my @dates = map { split(/"/, $_); @_[2].'|'.@_[4].'|'.@_[0]; } @entries;
with
my @dates = map { my @stuff = split(/"/, $_); @stuff[2].'|'.@stuff[4].'|'.@stuff[0]; } @entries;.
I could use some documetation on pplog
Posted: Tue 11 Jun 2013, 11:47
by Dromeno
The infogami site to which the pplog app refers, i.e.
http://pplog.infogami.com/ is dead (and unavailable at the wayback machine). But pplog looks beautiful and I would like to use it. So is there a manual somewhere?
Specifically, how do I need to change the indexfile
~/Web-Server/index.html
or add a link to it (I am using the seamonkey composer for it)
so that it shows the pplog site at localhost?
http://127.0.0.1/blog/pup_pplog.pl?page=1
Posted: Tue 11 Jun 2013, 12:44
by Dromeno
sorry text vanished, let's try again:
The infogami site to which the pplog app refers, i.e.
http://pplog.infogami.com/
is dead (and unavailable at the wayback machine). But pplog looks beautiful and I would like to use it. So is there a manual somewhere?
Specifically, how do I need to change the indexfile
~/Web-Server/index.html
or add a link to it (I am using the seamonkey composer for it)
so that it shows the pplog site at localhost?
third
Posted: Tue 11 Jun 2013, 12:45
by Dromeno
for some reason the text of my post keeps disappearing???
3rd attempt:
The infogami site to which the pplog app refers, i.e.
http://pplog.infogami.com/ is dead (and unavailable at the wayback machine). But pplog looks beautiful and I would like to use it. So is there a manual somewhere?
Specifically, how do I need to change the indexfile
~/Web-Server/index.html
or add a link to it (I am using the seamonkey composer for it)
so that it shows the pplog site at localhost?
4th
Posted: Tue 11 Jun 2013, 12:47
by Dromeno
for some reason the text of my post disappears?? preview looks fine ... 4th attempt
The infogami site to which the pplog app refers, i.e.
http://pplog.infogami.com/ is dead (and unavailable at the wayback machine). But pplog looks beautiful and I would like to use it. So is there a manual somewhere?
Specifically, how do I need to change the indexfile
~/Web-Server/index.html
or add a link to it (I am using the seamonkey composer for it)
so that it shows the pplog site at localhost?
set up pplog as localhost
Posted: Tue 11 Jun 2013, 19:09
by efiabruni
which web server are you using? You have to change the .conf file of the webserver to use pe_pplog.pl (or pup_pplog.pl) as start file
In lampp (xampp) the file can be found at /lampp/etc/httpd.conf
I think for Hiawatha (when included in Puppy) it is: /etc/hiawatha/hiawatha.conf
open the hiawatha.conf or the httpd.conf file
hiawatha.conf looks like something
this
change
StartFile=index.html to
StartFile=pe_pplog.pl (or pup_pplog.pl)
In
httpd.conf (if you are using lampp) you have to set the directory index, there should be a section, which looks like this:
Code: Select all
<IfModule dir_module>
#DirectoryIndex index.html
# XAMPP
DirectoryIndex index.html index.html.var index.php index.php3 index.php4
</IfModule>
add pe_pplog.pl (or pup_pplog.pl) to DirectoryIndex so it looks like:
Code: Select all
<IfModule dir_module>
#DirectoryIndex index.html
# XAMPP
DirectoryIndex pe_pplog.pl index.html index.html.var index.php index.php3 Myblog.pl index.php4
</IfModule>
I don't know which version of the pplog you are using, this setup should work for all though. The original PPLOG is not being developed anymore, there is a
google code page but no other documentation, I think. For the SJPPLOG, documentation/examples can be found at:
http://pplog.scottjarvis.com and it has it's own thread
here.
Documentation for the pe_pplog can be found at
http://tine.pagekite.me/blog
Hope this helped
Posted: Wed 12 Jun 2013, 13:23
by Dromeno
thanx efiabruni!
I use hiawatha
And I just found out what the problem was: the contents of the /root/Web-Server/blog folder needs to be copied to /root/Web-Server/ if you want it to work. And of course
change StartFile=index.html to StartFile=pe_pplog.pl (or pup_pplog.pl)
interesting: all the news about Edward Snowden and the NSA gave me the inspiration to play a bit more with the tor browser bundle and the 'hidden services' in it, like running a website from a computer without revealing the physical location of the machine. It works great with hiawatha & pplog!
How to edit links?
Posted: Wed 12 Jun 2013, 14:17
by Dromeno
OK, I have found out how to change the colors and banner etc. And add/delete entries of course. But... how does one add/remove links in the puppy template, as well as the "Copyright Puppy Personal Blog 2008 - All Rights Reserved" text?
403 forbidden
Posted: Thu 13 Jun 2013, 10:48
by Dromeno
sorry for all there questions... but what am I doing wrong here? From the read me file in the pe_plog.zip:
Installation:
Unzip and extract archive to the root of your webserver (for example /opt/lampp/htdocs)
-Test:(Start your webserver) and point your browser to
http://localhost/pe_pplog.pl, you should see the blog main page with the welcome message
OK.. I have extracted pe_pplog.zip to /root/Web-Server on puppy. I also opened /etc/hiawatha/hiawatha.conf and defined the startpage as follows:
Hostname = 127.0.0.1
WebsiteRoot = /root/Web-Server
StartFile = pe_pplog.pl
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
Then I typed in my browser window:
http://127.0.0.1/blog/pe_pplog.pl
and
http://127.0.0.1/pe_pplog.pl
in both cases I get a black page with "403 Forbidden" on it
access denied via filesystem
Posted: Thu 13 Jun 2013, 11:01
by Dromeno
In /var/log/hiawatha/error.log then I read this text:
Thu 13 Jun 2013 12:51:51 +0200|127.0.0.1|/root/Web-Server/pe_pplog.pl|access denied via filesystem
???
re: access forbidden
Posted: Thu 13 Jun 2013, 17:34
by efiabruni
I like all your questions, it shows me where documentation is missing
sorry it took so long, I had to install hiawatha first. Both the pe_pplg.pl and the pe_admin.pl have to have execute permissions
in the terminal type:
chmod a+x /root/Web-Server/pe_pplog.pl
and
chmod a+x /root/Web-Server/pe_admin.pl
after this it was working for me
[/code]
pe_admin file
Posted: Thu 13 Jun 2013, 18:19
by efiabruni
Somehow there is a difference on how cookies are set between Hiawatha and Apache, the login was not working, please use the attached pe_admin.pl file.
Working!!!
Posted: Fri 14 Jun 2013, 09:54
by Dromeno
YES! Most likely setting the permissions right was the trick. Thanx!
But what about theat PageKite thingy. I will have to learn more about that. For it looks like you need something additional to make sure a blog becomes visible for the world, there needs to be a simple approach to punch a (small) hole in the firewall and WLAN modem without compromising security too much.
Obviosly it works if you make a .onion site with it with Tor, and then visitors can see your website in a normal browser via
http://onion.to/
But in 99.999% percent of the cases the tor&onion secrecy is not needed and PageKite presents itself as a solution. Unfortunately it is a python thingy. Which, so I have learned, usually means 'more bulky than you really want'. I wish there was some kind of dialog or other button which asks "Do you want your blog to be visible for the world? y/n" and then automatically adjusts firewall and other settings.
pagekite
Posted: Fri 14 Jun 2013, 19:42
by efiabruni
I don't know what is considered bulky, but pagekite (only the .py file, without gui) is 160kb and it does a whole lot of stuff and is really easy to use. Of course python has to be installed (I think it is not included in the standard puppy?)
Which reminds me, i always wanted to make a pet out of it, because puppy+pagekite could make any old computer into a web-server in 5 min
until then:
http://pagekite.net/downloads
I have updated the download page for the pe_pplog so now it should be working with Hiawatha following the installation intructions
Posted: Sat 15 Jun 2013, 08:29
by Dromeno
Looks mighty interesting! I will try it out after the weekend when I am back at my puppy laptop!
thanks so far for the ideas!
pet for Crolina?
Posted: Sat 15 Jun 2013, 08:41
by Dromeno
One more idea abut the pet: if you want to make one consider making one for Carolina - as far as I know this currently is the puplet which offers the most out-of-the-box working python apps. Plus, carolina (like wary) is built to run on old machines.
Internal server error in Carolina
Posted: Mon 17 Jun 2013, 06:55
by Dromeno
Now working in Carolina I did the same as I wrote in my '403 forbidden' post. I also set the permissions right. But this time
when I go to
http://127.0.0.1/pe_pplog.pl
I get a "500 - Internal Server Error"
so I went to
/var/log/hiawatha/error.log
which reads:
Mon 17 Jun 2013 08:50:07 +0200|127.0.0.1|/root/Web-Server/pe_pplog.pl|no output
does anyone have any idea what to do now? I am running the hiawatha which is offered for Carolina, the 6.17 version