pe_pplog v2.1b bufixes!

Browsers, email, chat, etc.
Message
Author
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

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

same hiawatha, same config

#21 Post by Dromeno »

I have just compared the hiawatha settings in lucid puppy 528005 (there both pplog and efiabruni's version work) to the situation in carolina. The hiawatha's are the same, the config file is also the same. Same for permissions and the contents of the /root/Web Server folder.

but in carolina I get the internal server error while in lucid it works fine.

???

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

server error

#22 Post by efiabruni »

Could you run the pe_pplog.pl files in a terminal for me and copy paste the result?

I guess you know how to run a file in a terminal, if not how to:
Open the terminal and type in /..path../to../pe_pplog.pl (In your case it is probably /root/Web-Server/pe_pplog.pl) press enter.

It would give me an idea of what is wrong :)

Possible outputs:
Can't locate... @lib -> either the path of sub.pl or pe_Config.pl is not correct
Bad name after... -> Syntax error in the script
Permission denied -> Permissions

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

I don't think this works

#23 Post by Dromeno »

Hi efiabruni,

Are you sure that is the right command? (see attachement)
Attachments
pe_pplog.jpg
(88.26 KiB) Downloaded 561 times

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

command

#24 Post by efiabruni »

Yes, it is :) (see screenshot)
Attachments
Screenshot-6.png
(110.07 KiB) Downloaded 371 times

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

output you needed

#25 Post by Dromeno »

ah. I see. "terminal here"(in rox) differs from simply opening a terminal. I didn't know that.


Here is the output of the terminal in Carolina you needed:

# /root/Web-Server/pe_pplog.pl
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_showLatestCommentsLimit" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 211.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_metaRevisitAfter" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 87.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_customHTMLhead" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 100.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_adminPass" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 476.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_blogHeader" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 121.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_commentsSecurityQuestion" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 678.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_showLatestComments" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 196.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_menuShowLinks" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 228.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_menuEntriesLimit" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 148.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_metaKeywords" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 88.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_commentsSecurityAnswer" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 463.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_gmt" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 438.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_commentsForbiddenAuthors" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 472.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_allowComments" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 634.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_blogFooter" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 818.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_sendMailWithNewCommentMail" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 552.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_lightboxOpt" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 105.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_usersOnlineTimeout" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 256.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_ipBan" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 318.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_sendMailWithNewComment" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 548.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_bannedMessage" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 322.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_enableJQuery" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 94.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_customMenuHTMLbottom" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 224.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_customMenuHTMLtop" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 128.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Name "main::config_currentStyleFolder" used only once: possible typo at /root/Web-Server/pe_pplog.pl line 117.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Use of uninitialized value in string eq at /root/Web-Server/pe_pplog.pl line 37.
Content-Type: text/html; charset=utf-8

<!DOCTYPE html>
<html>
<head>
<meta http-equiv=Content-Type content="text/html" />
<meta name="Name" content="blog" />
<meta name="Revisit-After" content="1" />
<meta name="Keywords" content="post, perl, blog" />
<meta name="Description" content="pe_pplog" />
<title>blog - Powered by pe_pplog</title> <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script> $(document).ready(function(){$(".hide").hide();
$(".article .hide ").before("<div id='flip'><a href='' title='Read the article'>Show/Hide Entry</a></div>");
$(".article #flip").click(function(event){$(this).next(".hide").slideToggle("slow");
event.preventDefault(); });
$(".slide #flip").mouseover(function(event){
$(this).next(".hide").toggle("slow");
event.preventDefault();
});
});</script><link rel="stylesheet" href="/js/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto main stylesheet" charset="utf-8" />
<script src="/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto({theme:'dark_rounded',});
});
</script><script language="javascript" type="text/javascript">
// FUNCTION BY SMF FORUMS http://www.simplemachines.org
function surroundText(text1, text2, textarea)
{
// Can a text range be created?
if (typeof(textarea.caretPos) != "undefined" && textarea.createTextRange)
{
var caretPos = textarea.caretPos, temp_length = caretPos.text.length;

caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text1 + caretPos.text + text2 + ' ' : text1 + caretPos.text + text2;

if (temp_length == 0)
{
caretPos.moveStart("character", -text2.length);
caretPos.moveEnd("character", -text2.length);
caretPos.select();
}
else
textarea.focus(caretPos);
}
// Mozilla text range wrap.
else if (typeof(textarea.selectionStart) != "undefined")
{
var begin = textarea.value.substr(0, textarea.selectionStart);
var selection = textarea.value.substr(textarea.selectionStart, textarea.selectionEnd - textarea.selectionStart);
var end = textarea.value.substr(textarea.selectionEnd);
var newCursorPos = textarea.selectionStart;
var scrollPos = textarea.scrollTop;

textarea.value = begin + text1 + selection + text2 + end;

if (textarea.setSelectionRange)
{
if (selection.length == 0)
textarea.setSelectionRange(newCursorPos + text1.length, newCursorPos + text1.length);
else
textarea.setSelectionRange(newCursorPos, newCursorPos + text1.length + selection.length + text2.length);
textarea.focus();
}
textarea.scrollTop = scrollPos;
}
// Just put them on the end, then.
else
{
textarea.value += text1 + text2;
textarea.focus(textarea.value.length - 1);
}
}
</script><link href=/css/style.css rel=stylesheet type=text/css>
</head>
<body><header>
<a href="/pe_admin.pl">» admin</a>
<h1>pe_pplog</h1></header>

<nav>
<h1>Main Menu</h1>
<a href=?page=1>Home</a>
<a href=?do=archive>Archive</a>
<a href="?do=RSS">RSS Feeds <img border="0" src="/images/news-feed.png" /></a><h1>Categories</h1><a href="?viewCat=General">General</a><h1>Search</h1>
<form name="form1" method="post">
<input type="text" name="keyword" style="width:150px"><input type="hidden" name="do" value="search"><br />
By Title <input name="by" type="radio" value="0" checked> By Content <input name="by" type="radio" value="1">
</form>
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Use of uninitialized value in concatenation (.) or string at /root/Web-Server/pe_pplog.pl line 238.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Use of uninitialized value in concatenation (.) or string at /root/Web-Server/pe_pplog.pl line 238.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Use of uninitialized value in concatenation (.) or string at /root/Web-Server/pe_pplog.pl line 238.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Use of uninitialized value in concatenation (.) or string at /root/Web-Server/pe_pplog.pl line 238.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Use of uninitialized value in concatenation (.) or string at /root/Web-Server/pe_pplog.pl line 238.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Use of uninitialized value in concatenation (.) or string at /root/Web-Server/pe_pplog.pl line 238.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Use of uninitialized value in concatenation (.) or string at /root/Web-Server/pe_pplog.pl line 238.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Use of uninitialized value in concatenation (.) or string at /root/Web-Server/pe_pplog.pl line 238.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: readline() on closed filehandle FILE at /root/Web-Server/pe_pplog.pl line 300.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: print() on closed filehandle FILE at /root/Web-Server/pe_pplog.pl line 308.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Use of uninitialized value in string eq at /root/Web-Server/pe_pplog.pl line 320.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Use of uninitialized value in string eq at /root/Web-Server/pe_pplog.pl line 320.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Use of uninitialized value in string ne at /root/Web-Server/pe_pplog.pl line 330.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Use of uninitialized value in string eq at /root/Web-Server/pe_pplog.pl line 417.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Use of uninitialized value in string ne at /root/Web-Server/pe_pplog.pl line 422.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Use of uninitialized value in string ne at /root/Web-Server/pe_pplog.pl line 422.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Use of uninitialized value in string eq at /root/Web-Server/pe_pplog.pl line 699.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Use of uninitialized value in string eq at /root/Web-Server/pe_pplog.pl line 704.
[Wed Jun 19 11:29:09 2013] pe_pplog.pl: Use of uninitialized value in string ne at /root/Web-Server/pe_pplog.pl line 709.
<h1>Entries</h1><div class="slide"><a id="flip" href="">Latest »</a><div style="text-indent:10px" class="hide"></div></div></div></br><h1>Links</h1><a href="'"></a><a href="http://puppylinux.com/">Puppy_Linux</a><a href="'"></a><a href="'"></a><a href="https://code.google.com/p/pplog/">Pup_pplog</a><a href="'"></a><a href="'"></a><a href="http://pplog.scottjarvis.com/">SJPPlog</a><a href="'"></a><a href="'"></a><a href="http://tine.pagekite.me/blog/">pe_pplog</a><a href="'"></a><h1>Stats</h1>Hits: 1</nav><div id="content">No entries created. Why dont you <a href="/pe_admin.pl?do=newEntry">make one</a>?</div><footer></footer></div></body></html>#

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

compared to lucid

#26 Post by Dromeno »

Hi efiabruni,

as you can see, the line "Use of uninitialized value in..." appears a lot. I think is something there. The reported "possible typos" are not a real problem, the same typos are rported in lucid but there pe plog works.

At first I also got this output:

<h1>Software error:</h1>
<pre>Can't locate ./blog/pe_Config.pl in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /root/Web-Server/pe_pplog.pl line 33.

but adding the correct location of Pe_config.pl in line 33 seems not to be critical either since it works fine in lucid with the (wrong) ./blog/pe_Config.pl instead of /root/Web-Server/blog/pe_Config.pl

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

re: compared to lucid

#27 Post by efiabruni »

Have you tried running the blog after changing the path to pe_config.pl? "the use of uninitialized value.." warning is fine, these are values used for adding entries etc, which means they are supposed to be empty (for now) :) Your first output is the blog running ok, the second one:
<h1>Software error:</h1>
<pre>Can't locate ./blog/pe_Config.pl in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /root/Web-Server/pe_pplog.pl line 33.
means it can not find the (required) pe_Config.pl file and therefore would get an internal server error. My question is: after changing the path to pe_Config.pl (and I guess also sub.pl) do you still get an error? and if yes, which?

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

#28 Post by Dromeno »

Have you tried running the blog after changing the path to pe_config.pl?
Yes I did. The "500 - Internal Server Error" persists stubbornly...

perhaps it is some specific for Carolina problem?

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

error redirecting stdout

#29 Post by Dromeno »

One difference between Lucid and Carolina is that Hiawatha gives an error warning in Carolina. When I type hiawatha in the terminal I get the following response:

Warning: error redirecting stdout

can than be the cause?

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

error redirecting stdout

#30 Post by efiabruni »

Yes, this is a problem, the server does not have permission to write in a system file. Or something like that :)

I googled a bit and tried things out in Carolina, here is the solution, change permission in /dev/null to make it writable for everyone.

After this it was working for me.
Screenshot (because I like taking them)
Attachments
Screenshot.png
(139.26 KiB) Downloaded 495 times

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

Working now!

#31 Post by Dromeno »

YES! Thanks again efiabruni! :D :lol:

Hopefully I have the time this weekend to play a bit more with different pplog templates.

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

cool!

#32 Post by efiabruni »

Glad I could help :) There are now pet packages available for the blog (see first post) so there is no need anymore for changing file paths or setting permissions. I also tested in in Carolina and Saluki, but would be grateful for feedback on how it works in other derivatives.

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

pagekite

#33 Post by Dromeno »

Thanks thanks thanks... Pet works indeed (Carolina). It would be great if you (or somebody else) could make a pagekite pet as well. Last year I used Opera Unite for these kind of things, but they dropped the project.

Of course Opera is not open source either, so not the first choice, but so far they have been producing great tools.

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

bugfix version

#34 Post by efiabruni »

There is now a bugfix version (2b) available of the blog, see the first post.

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

new css theme

#35 Post by efiabruni »

I made a new css theme for the blog (darkgrey).

updated 23.11.13 to work with the new css based lightboxes/gallery
Attachments
darkgrey.css.gz
(1.51 KiB) Downloaded 421 times
darkgrey.png
(152.38 KiB) Downloaded 458 times
Last edited by efiabruni on Sat 23 Nov 2013, 19:00, edited 1 time in total.

Post Reply