Errin when executing a cgi script that sets a cookie in the browser

Νικόλαος Κούρας nikos.gr33k at gmail.com
Sat Jun 8 02:53:00 EDT 2013


Τη Παρασκευή, 7 Ιουνίου 2013 11:47:58 μ.μ. UTC+3, ο χρήστης MRAB έγραψε:
> On 07/06/2013 19:24, Νικόλαος Κούρας wrote:
> 
> > Τη Παρασκευή, 7 Ιουνίου 2013 5:32:09 μ.μ. UTC+3, ο χρήστης MRAB έγραψε:
> 
> >>>Can find what? koukos.py is there inside the cg-bin dir with 755 perms.
> 
> >
> 
> >> It's looking for '/home/nikos/public_html/cgi-bin/koukos.py'.
> 
> >
> 
> > Its looking for its self?!?!
> 
> >
> 
> >> Have a look in '/home/nikos/public_html/cgi-bin'. Is 'koukos.py' in
> 
> >> there?
> 
> > Yes it is.
> 
> >
> 
> >
> 
> > nikos at superhost.gr [~/www/cgi-bin]# ls -l
> 
> > total 56
> 
> > drwxr-xr-x 2 nikos nikos   4096 Jun  6 20:29 ./
> 
> > drwxr-x--- 4 nikos nobody  4096 Jun  5 11:32 ../
> 
> > -rwxr-xr-x 1 nikos nikos   1199 Apr 25 15:33 convert.py*
> 
> > -rwxr-xr-x 1 nikos nikos   5434 Jun  7 14:51 files.py*
> 
> > -rw-r--r-- 1 nikos nikos    170 May 30 15:18 .htaccess
> 
> > -rwxr-xr-x 1 nikos nikos   1160 Jun  6 06:27 koukos.py*
> 
> > -rwxr-xr-x 1 nikos nikos   9356 Jun  6 09:13 metrites.py*
> 
> > -rwxr-xr-x 1 nikos nikos  13512 Jun  6 09:13 pelatologio.py*
> 
> > nikos at superhost.gr [~/www/cgi-bin]#
> 
> >
> 
> The prompt says "~/www/cgi-bin".
> 
> 
> 
> Is that the same as "/home/nikos/public_html/cgi-bin"?
> 
> 
> 
> Try:
> 
> 
> 
> ls -l /home/nikos/public_html/cgi-bin

Good day MRAB, yes '~/www' its a symlink to '~/public_html'

nikos at superhost.gr [~/www/data/apps]# ls -ld /home/nikos/www/
drwxr-x--- 4 nikos nobody 4096 Jun  5 11:32 /home/nikos/www//
nikos at superhost.gr [~/www/data/apps]# ls -ld /home/nikos/public_html/
drwxr-x--- 4 nikos nobody 4096 Jun  5 11:32 /home/nikos/public_html//
nikos at superhost.gr [~/www/data/apps]# ls -l /home/nikos/public_html/cgi-bin
total 56
drwxr-xr-x 2 nikos nikos   4096 Jun  6 20:29 ./
drwxr-x--- 4 nikos nobody  4096 Jun  5 11:32 ../
-rwxr-xr-x 1 nikos nikos   1199 Apr 25 15:33 convert.py*
-rwxr-xr-x 1 nikos nikos   5793 Jun  8 09:39 files.py*
-rw-r--r-- 1 nikos nikos    170 May 30 15:18 .htaccess
-rwxr-xr-x 1 nikos nikos   1160 Jun  6 06:27 koukos.py*
-rwxr-xr-x 1 nikos nikos   9356 Jun  6 09:13 metrites.py*
-rwxr-xr-x 1 nikos nikos  13512 Jun  6 09:13 pelatologio.py*
nikos at superhost.gr [~/www/data/apps]# ls -l /home/nikos/www/cgi-bin/
total 56
drwxr-xr-x 2 nikos nikos   4096 Jun  6 20:29 ./
drwxr-x--- 4 nikos nobody  4096 Jun  5 11:32 ../
-rwxr-xr-x 1 nikos nikos   1199 Apr 25 15:33 convert.py*
-rwxr-xr-x 1 nikos nikos   5793 Jun  8 09:39 files.py*
-rw-r--r-- 1 nikos nikos    170 May 30 15:18 .htaccess
-rwxr-xr-x 1 nikos nikos   1160 Jun  6 06:27 koukos.py*
-rwxr-xr-x 1 nikos nikos   9356 Jun  6 09:13 metrites.py*
-rwxr-xr-x 1 nikos nikos  13512 Jun  6 09:13 pelatologio.py*
nikos at superhost.gr [~/www/data/apps]#



More information about the Python-list mailing list