mod_python

Status
Not open for further replies.

Veridis

New Member
Messages
16
Reaction score
0
Points
0
I had heard that mod_python was installed but when I try and add the handler to the .htaccess file it gives an 500 Internal Server Error. I'm also wondering where I can find the error log.


.htaccess file additions:

AddHandler mod_python .py
PythonHandler test.py
PythonDebug On


PS: I'm quite new to mod_python and web programming in general.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
You can access the error log from your cPanel.

Post back what it says here.

-Corey
 

Veridis

New Member
Messages
16
Reaction score
0
Points
0
Sorry it's taken so long to reply. I had subscribed to this thread and thought it would send me an email when the thread was updated.

The error log has several listings of:

[Mon Mar 31 00:57:36 2008] [alert] [client 89.241.182.57] /home/veridis/public_html/.htaccess: Invalid command 'PythonHandler', perhaps misspelled or defined by a module not included in the server configuration
 

Veridis

New Member
Messages
16
Reaction score
0
Points
0
I assume that the server doesn't have mod_python, is this a correct assumption?
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
I just checked around and it looks like it was removed a while ago when we upgraded to Apache2. I've put in a note to add it on on next Apache compile but it might be a little bit before that happens.
 
Status
Not open for further replies.
Top