Apache and suexec issue that wont let me run my python script

Νικόλαος Κούρας nikos.gr33k at gmail.com
Wed Jun 5 01:11:35 EDT 2013


Τη Τετάρτη, 5 Ιουνίου 2013 7:59:31 π.μ. UTC+3, ο χρήστης alex23 έγραψε:
> On Jun 5, 2:40 pm, Νικόλαος Κούρας <nikos.gr... at gmail.com> wrote:
> 
> > Of course '/home/nikos/public_html/cgi-bin' = '/home/nikos/www/cgi-bin'
> 
> > What this has to do with what i asked?
> 
> 
> 
> You display an error of "No such file or directory" and you wonder why 
> I'm trying to confirm the two locations are the same.
> 

> Can you finally admit you're trolling now?

I'm not trolling, you are the one that do not understand.

Here i swicthed the code from:

# Compute a set of current fullpaths
fullpaths = set()
path = "/home/nikos/www/data/apps/"

for root, dirs, files in os.walk(path):
	for fullpath in files:
		fullpaths.add( os.path.join(root, fullpath) )

to this since '/home/nikos/public_html/cgi-bin' = '/home/nikos/www/cgi-bin' as i said:

# Compute a set of current fullpaths
fullpaths = set()
path = "/home/nikos/public_html/data/apps/"

for root, dirs, files in os.walk(path):
	for fullpath in files:
		fullpaths.add( os.path.join(root, fullpath) )


--------------------------
nikos at superhost.gr [~/www/cgi-bin]# [Wed Jun 05 08:09:14 2013] [error] [client 46.12.95.59] (2)No such file or directory: exec of '/home/nikos/public_html/cgi-bin/koukos.py' failed
[Wed Jun 05 08:09:14 2013] [error] [client 46.12.95.59] Premature end of script headers: koukos.py
[Wed Jun 05 08:09:14 2013] [error] [client 46.12.95.59] File does not exist: /home/nikos/public_html/500.shtml

Same error.



More information about the Python-list mailing list