pe_pplog v2.1b bufixes!

Browsers, email, chat, etc.
Message
Author
efiabruni
Posts: 69
Joined: Tue 18 Oct 2011, 15:55

pe_pplog v2.1b bufixes!

#1 Post 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]
Attachments
pe_pplogv2.1b_GER_lampp.pet
For the lampp server, German
(140.49 KiB) Downloaded 553 times
pe_pplogv2.1b_GER_hiawatha.pet
For the hiawatha server, German
(142.44 KiB) Downloaded 489 times
pe_pplogv2.1b_GER.zip
zip file for a live server, German
(156.07 KiB) Downloaded 509 times
pe_pplogv2.1b_EN_lampp.pet
For the lampp server, English
(131.95 KiB) Downloaded 529 times
pe_pplogv2.1b_EN_hiawatha.pet
For the hiawatha server, English
(133.17 KiB) Downloaded 526 times
pe_pplogv2.1b_EN.zip
zip file for a live server, English
(149.52 KiB) Downloaded 517 times
Last edited by efiabruni on Wed 04 Dec 2013, 16:29, edited 8 times in total.

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#2 Post by jamesbond »

Checked your site - it's a cool blog :)
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

efiabruni
Posts: 69
Joined: Tue 18 Oct 2011, 15:55

added features!

#3 Post 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;.
Attachments
contact.pl.gz
"contact me" page as a separate page
(1.12 KiB) Downloaded 694 times
newGallery.patch.gz
gallery script, for pe_admin.pl; gunzip to use
(1.5 KiB) Downloaded 695 times
contact_page.patch.gz
"contact me" page integrated in the pe_pplog, gunzip to use
(1.07 KiB) Downloaded 705 times

efiabruni
Posts: 69
Joined: Tue 18 Oct 2011, 15:55

see previous post

#4 Post 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;.

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

I could use some documetation on pplog

#5 Post 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

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

#6 Post 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?

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

third

#7 Post 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?

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

4th

#8 Post 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?

efiabruni
Posts: 69
Joined: Tue 18 Oct 2011, 15:55

set up pplog as localhost

#9 Post 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 :)

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

#10 Post 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!

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

How to edit links?

#11 Post 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?

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

403 forbidden

#12 Post 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

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

access denied via filesystem

#13 Post 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

???

efiabruni
Posts: 69
Joined: Tue 18 Oct 2011, 15:55

re: access forbidden

#14 Post 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]

efiabruni
Posts: 69
Joined: Tue 18 Oct 2011, 15:55

pe_admin file

#15 Post 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.
Attachments
pe_admin.pl.gz
(6.73 KiB) Downloaded 652 times

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

Working!!!

#16 Post 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.

efiabruni
Posts: 69
Joined: Tue 18 Oct 2011, 15:55

pagekite

#17 Post 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

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

#18 Post 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!

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

pet for Crolina?

#19 Post 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.

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

Internal server error in Carolina

#20 Post 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

Post Reply