|
S C
sameerc1 at grandecom.net
Sun Feb 29 04:12:10 EST 2004
David McNab wrote:
> Do you have anywhere in your apache configs the line:
>
> LoadModule python_module /usr/lib/apache2/modules/mod_python.so
>
> ?
>
In my mods-enabled directory under /etc/apache2, I have a symbolic link
to file mod_python.load which exists in directory mods-available. The
single line in mod_python.load is: LoadModule python_module
/usr/lib/apache2/modules/mod_python.so.
Even in my apache error log it says Apache/2.0.48 mod_python/3.0.4
Python/2.3.3 configured - resuming normal operations when I restart
apache.
I think as far as apache knows, it's running mod_python, just not
executing my .py file!
Any more suggestions?
Thanks in advance!!
> (change the path to wherever your mod_python.so is)
>
> Cheers
> David
>
>
> S C wrote:
>
>> platform: Debian Linux
>> Apache/2.0.48, mod-python/3.0.4 and Python/2.3.3
>>
>> I installed mod_python, and it's loading correctly.
>>
>> Tried the standard hello world app, placing the following in my
>> sites-enabled default file with the correct directory path:
>>
>> <Directory /var/www/apache2-default/python>
>>
>> AddHandler mod_python .py
>> PythonHandler mptest
>> PythonDebug On
>> </Directory>
>>
>>
>> in my python directory (/var/www/apache2-default/python), I created
>> the file mptest.py which contains the following lines:
>>
>> from mod_python import apache
>>
>> def handler(req):
>> req.write("Hello World!")
>> return apache.OK
>>
>> The file is set as executable.
>>
>> When I go look at this path from my web browser, it asks me if I want
>> to save mptest.py? How can I make the file execute?
>>
>> Thanks in advance!!
>>
>>
>>
>> _______________________________________________
>> Mod_python mailing list
>> Mod_python at modpython.org
>> http://mailman.modpython.org/mailman/listinfo/mod_python
>>
>
> --
>
> leave this line intact so your email gets through my junk mail filter
>
>
>
|