Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 Oct 2014, 00:27
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
pe_pplog v2.1b bufixes!
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 5 [70 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Author Message
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Fri 14 Jun 2013, 05:54    Post subject: Working!!!  

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.
Back to top
View user's profile Send private message 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Fri 14 Jun 2013, 15:42    Post subject: pagekite  

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 Smile

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
Back to top
View user's profile Send private message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Sat 15 Jun 2013, 04:29    Post subject:  

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!
Back to top
View user's profile Send private message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Sat 15 Jun 2013, 04:41    Post subject: pet for Crolina?  

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.
Back to top
View user's profile Send private message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Mon 17 Jun 2013, 02:55    Post subject: Internal server error in Carolina  

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
Back to top
View user's profile Send private message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Mon 17 Jun 2013, 03:15    Post subject: same hiawatha, same config  

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.

???
Back to top
View user's profile Send private message 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Mon 17 Jun 2013, 15:00    Post subject: server error  

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 Smile

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
Back to top
View user's profile Send private message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Tue 18 Jun 2013, 09:12    Post subject: I don't think this works  

Hi efiabruni,

Are you sure that is the right command? (see attachement)
pe_pplog.jpg
Description 
jpg

 Download 
Filename  pe_pplog.jpg 
Filesize  88.26 KB 
Downloaded  285 Time(s) 
Back to top
View user's profile Send private message 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Tue 18 Jun 2013, 12:42    Post subject: command  

Yes, it is Smile (see screenshot)
Screenshot-6.png
 Description   
 Filesize   110.07 KB
 Viewed   260 Time(s)

Screenshot-6.png

Back to top
View user's profile Send private message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Wed 19 Jun 2013, 05:24    Post subject: output you needed  

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>#
Back to top
View user's profile Send private message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Wed 19 Jun 2013, 05:42    Post subject: compared to lucid  

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
Back to top
View user's profile Send private message 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Wed 19 Jun 2013, 15:48    Post subject: re: compared to lucid  

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) Smile Your first output is the blog running ok, the second one:

Quote:
<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?
Back to top
View user's profile Send private message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Thu 20 Jun 2013, 05:06    Post subject:  

Quote:
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?
Back to top
View user's profile Send private message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Thu 20 Jun 2013, 05:15    Post subject: error redirecting stdout  

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?
Back to top
View user's profile Send private message 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Fri 21 Jun 2013, 02:20    Post subject: error redirecting stdout  

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

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)
Screenshot.png
Description 
png

 Download 
Filename  Screenshot.png 
Filesize  139.26 KB 
Downloaded  245 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 5 [70 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1163s ][ Queries: 12 (0.0092s) ][ GZIP on ]