Re: Can't Display Python

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



It's possible you need somewhere in your configuration:
AddHandler python-program .py

If it's not already there.  But without knowing anything about what
you're doing...  Try Googling for mod_python for the documentation.
-Alan


Victor Subervi wrote:
> Well, apparently it threw the same error for test.py as well on the
> second test! I've added this:
>
> <VirtualHost *:80>
> ServerAdmin me@xxxxxxxxxxx <mailto:me@xxxxxxxxxxx>
> DocumentRoot /var/www/html/angrynates.com <http://angrynates.com>
> ServerName angrynates.com <http://angrynates.com>
> Options +ExecCGI -IncludesNoExec
> </VirtualHost>
>
> but the options line didn't seem to help any. Ideas?
> V
>
> On Fri, Nov 6, 2009 at 2:12 PM, Victor Subervi
> <victorsubervi@xxxxxxxxx <mailto:victorsubervi@xxxxxxxxx>> wrote:
>
>     That's my answer? You sure? Those errors are for index.py. As I
>     mentioned in my last email, I decided to test for test.py which
>     imports nothing, no cgi, nothing. Please try again.
>     V
>
>
>     On Fri, Nov 6, 2009 at 1:39 PM, <m.roth@xxxxxxxxx
>     <mailto:m.roth@xxxxxxxxx>> wrote:
>
>         Victor wrote:
>         <snip>
>         > log files about that. It doesn't import anything or do any
>         calculation,
>         > just prints. Here's the tail:
>         >
>         > [root@13gems global_solutions]# tail /etc/httpd/logs/error_log
>         <snip>
>         > [Fri Nov 06 10:05:16 2009] [error] [client 66.248.168.98]
>         Options ExecCGI
>         > is off in this directory:
>         /var/www/html/angrynates.com/global_solutions/index.py
>         <http://angrynates.com/global_solutions/index.py>, referer:
>         http://angrynates.com/global_solutions/
>         <snip>
>         And that's your answer: you don't have ExecCGI for the
>         directory that the
>         python scripts are in.
>
>               mark
>
>         _______________________________________________
>         CentOS mailing list
>         CentOS@xxxxxxxxxx <mailto:CentOS@xxxxxxxxxx>
>         http://lists.centos.org/mailman/listinfo/centos
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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