<div dir="ltr"><div><div><div>So Nick, I am top posting because I don't think you read your replies. I replied yesterday.<br><br></div>Read this line below. Read the line below. READ it. READ IT.. each letter. READ it:<br>
<br>[Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173]
FileNotFoundError: [Errno 2] \\u0394\\u03b5\\u03bd
\\u03c5\\u03c0\\u03ac\\u03c1\\<blockquote class="gmail_quote">u03c7\\u03b5\\u03b9 \\u03c4\\u03ad\\u03c4\\u03bf\\u03b9\\u03bf \\u03b1\\u03c1\\u03c7\\u03b5\\u03af\\u03bf \\u03ae \\u03ba\\u03b1\\u03c4\\u03ac\\u03bb\\u03bf\\u03b3\\u03bf\\u03c2: '/home/nikos/public_html//home/dauwin/public_html/index.html', referer: <a href="http://superhost.gr/" target="_blank">http://superhost.gr/</a><br>
[/code]<br>
</blockquote>DO YOU SEE THIS PART:<br> '/home/nikos/public_html//home/dauwin/public_html/index.html', referer: <a href="http://superhost.gr/" target="_blank">http://superhost.gr/</a><br><br></div>Do you see that it prepends your nikos path the your dauwin path and file name. It isn't replacing one with the other. Somewhere in your SFBI mess of code you perhaps have set the nikos path as the start of a filename. Check that out<br>
<br><br></div>DID YOU READ THIS? DID YOU THINK ABOUT IT. Also look up SFBI. It is a good name for you<br><div><div><blockquote class="gmail_quote">
[/code]<br>
</blockquote><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 12, 2013 at 4:35 PM, Joel Goldstick <span dir="ltr"><<a href="mailto:joel.goldstick@gmail.com" target="_blank">joel.goldstick@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Wed, Jun 12, 2013 at 1:33 PM, Νικόλαος Κούρας <span dir="ltr"><<a href="mailto:support@superhost.gr" target="_blank">support@superhost.gr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">======================<br>
RewriteEngine Off<br>
RewriteCond %{REQUEST_FILENAME} -f<br>
RewriteRule ^/?(.+\.html) /cgi-bin/metrites.py?file=%{<u></u>REQUEST_FILENAME} [L,PT,QSA]<br>
======================<br>
<br>
[code]<br>
file = form.getvalue('file')<br>
page = form.getvalue('page')<br>
<br>
if not page and os.path.exists( file ):<br>
# it is an html template<br>
page = file.replace( '/home/dauwin/public_html/', '' )<br>
elif page or form.getvalue('show'):<br>
# it is a python script<br>
page = page..replace( '/home/dauwin/public_html/cgi-<u></u>bin/', '' )<br>
else:<br>
#when everything else fails fallback<br>
page = "index.html"<br>
<br>
....<br>
....<br>
<br>
if page.endswith('.html'):<br>
with open( '/home/dauwin/public_html/' + page, encoding='utf-8' ) as f:<br>
htmlpage = f.read()<br>
htmlpage = htmlpage % (quote, music)<br>
template = htmlpage + counter<br>
elif page.endswith('.py'):<br>
pypage = subprocess.check_output( '/home/dauwin/public_html/cgi-<u></u>bin/' + page )<br>
pypage = pypage.decode('utf-8').<u></u>replace( 'Content-type: text/html; charset=utf-8', '' )<br>
template = pypage + counter<br>
<br>
print( template )<br>
[/code]<br>
<br>
Everything as you see point to 'dauwin' username, yet the error still says:<br>
<br>
[code]<br>
[Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173] File "/home/nikos/public_html/cgi-<u></u>bin/metrites.py", line 219, in <module>, referer: <a href="http://superhost.gr/" target="_blank">http://superhost.gr/</a><br>
[Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173] with open( '/home/nikos/public_html/' + page, encoding='utf-8' ) as f:, referer: <a href="http://superhost.gr/" target="_blank">http://superhost.gr/</a><br>
[Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173] FileNotFoundError: [Errno 2] \\u0394\\u03b5\\u03bd \\u03c5\\u03c0\\u03ac\\u03c1\\<u></u>u03c7\\u03b5\\u03b9 \\u03c4\\u03ad\\u03c4\\u03bf\\<u></u>u03b9\\u03bf \\u03b1\\u03c1\\u03c7\\u03b5\\<u></u>u03af\\u03bf \\u03ae \\u03ba\\u03b1\\u03c4\\u03ac\\<u></u>u03bb\\u03bf\\u03b3\\u03bf\\<u></u>u03c2: '/home/nikos/public_html//<u></u>home/dauwin/public_html/index.<u></u>html', referer: <a href="http://superhost.gr/" target="_blank">http://superhost.gr/</a><br>
[/code]<br>
<br>
<br></blockquote></div></div><div>Notice that you have the file path you want concatenated to your /home/nikos/... stuff in the line above. Look in your code to find out why. Fix that. Lather, rinse, repeat <br></div><div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Why is pointing to /home/nikos isntead of /home/dauwin ?<br>
<br>
this is what a smash my head to the wall to understand.<span><font color="#888888"><br>
-- <br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/python-list</a><br>
</font></span></blockquote></div></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div dir="ltr"><div>Joel Goldstick<br></div><a href="http://joelgoldstick.com" target="_blank">http://joelgoldstick.com</a><br>
</div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div>Joel Goldstick<br></div><a href="http://joelgoldstick.com" target="_blank">http://joelgoldstick.com</a><br></div>
</div>