[CentOS] No Such File...

Victor Subervi victorsubervi at gmail.com
Fri Nov 6 20:31:23 UTC 2009


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 at 13gems global_solutions]# ls -al | grep test.py
-rwxr-xr-x  1 root root    298 Nov  6 12:24 test.py
[root at 13gems global_solutions]# ls -al | grep test2.py
-rwxr-xr-x  1 root root   5716 Nov  6 12:25 test2.py
[root at 13gems global_solutions]# ls -al | grep index.py
-rwxr-xr-x  1 root root    316 Nov  6 07:05 index.py
[root at 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 at hostgator.com> wrote:

>  index.py and index.html are different files:
>
> /var/www/html/angrynates.com/global_solutions
> [root at 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 at 13gems global_solutions]# pwd
> /var/www/html/angrynates.com/global_solutions
> [root at 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 listCentOS at centos.orghttp://lists.centos.org/mailman/listinfo/centos
>
>
> --
> Thanks!
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20091106/a3310b95/attachment.html>


More information about the CentOS mailing list