Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-23-2002, 10:53 AM   #1
LQ Newbie
Registered: Dec 2002
Location: Senegal
Distribution: Redhat/SuSe
Posts: 11

Rep: Reputation: 0
Apache with mod_python

Hi there !
I'am using apache with mod_python. But when i start apache (service httpd start) and I try http://localhost/ I only the source code of the test page. Can someone tell me what's happen and how can I solve this.
Thanks in advance.
Old 12-23-2002, 11:48 AM   #2
Registered: Jul 2002
Location: san francisco
Distribution: freebsd
Posts: 102

Rep: Reputation: 17
Based solely on what you've said here, and presuming that you have mod_python correctly installed, you probably need to have a directive like this somewhere [sorry, can't be more specific without clarifying info from you] in your config file:

AddType text/x-script.python .py

and then restart your server and try that localhost/ URL again.

Last edited by leed_25; 12-23-2002 at 11:50 AM.
Old 12-24-2002, 05:24 AM   #3
LQ Newbie
Registered: Dec 2002
Location: Senegal
Distribution: Redhat/SuSe
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks leed_25,

As I said, when I try the url the browser shows me the python code source ( and doesn't try to download the test page). That means the python is known.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with mod_python tiang_ono Linux - Newbie 2 06-20-2005 08:12 PM
mod_python gaddargarson Programming 1 03-29-2005 08:45 AM
mod_python apache configuration gaddargarson Programming 2 03-09-2005 05:14 AM
installing mod_python dominant Linux - Software 0 11-26-2004 06:19 AM
Apache and mod_python not exec python scripts fIREfox Linux - Networking 1 02-11-2003 05:54 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration