Re: No Such File...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



My bad. I meant index.py and the permissions were the same. Trying to resolve the problem, I have discovered that if I create the files from the command prompt as root they work. I originally ftp'd them to the server as another user. So I chown'd to root.root and chmod to 755 and it *still* doesn't work. Only the test files I create on the server. Why would that be?

[root@13gems global_solutions]# ls -al | grep test.py
-rwxr-xr-x  1 root root    298 Nov  6 12:24 test.py
[root@13gems global_solutions]# ls -al | grep test2.py
-rwxr-xr-x  1 root root   5716 Nov  6 12:25 test2.py
[root@13gems global_solutions]# ls -al | grep index.py
-rwxr-xr-x  1 root root    316 Nov  6 07:05 index.py
[root@13gems global_solutions]# ls -al | grep template.py
-rwxr-xr-x  1 root root   5806 Nov  6 07:06 template.py
-rwxr-xr-x  1 root root   6093 Nov  6 07:06 template.pyc

where test.py is identical to index.py (other than the necessary import) and template is identical to test2.py
TIA,
V

On Fri, Nov 6, 2009 at 3:09 PM, Jacob P <jperkins@xxxxxxxxxxxxx> wrote:
index.py and index.html are different files:

/var/www/html/angrynates.com/global_solutions
[root@13gems global_solutions]# ls
-rwxr-xr-x  1 victor victor 275 Nov  6 07:05 index.html

exec of '/var/www/html/angrynates.com/global_solutions/index.py' failed


Victor Subervi wrote:
Now that I've got the server serving my python pages, I'm getting this error:

[Fri Nov 06 11:50:40 2009] [error] [client 66.248.168.98] (2)No such file or directory: exec of '/var/www/html/angrynates.com/global_solutions/index.py' failed, referer: http://angrynates.com/global_solutions/
[Fri Nov 06 11:50:40 2009] [error] [client 66.248.168.98] Premature end of script headers: index.py, referer: http://angrynates.com/global_solutions/

Now, the file does exist:

[root@13gems global_solutions]# pwd
/var/www/html/angrynates.com/global_solutions
[root@13gems global_solutions]# ls
...
-rwxr-xr-x  1 victor victor 275 Nov  6 07:05 index.html
...
and it serves just fine on another server, so there is no "premature end of script headers". Please advise.
TIA,
Victor

_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos

-- 
Thanks!

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux