LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 12-23-2002, 10:53 AM   #1
mbayeb
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/test.py 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
leed_25
Member
 
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/test.py URL again.

Last edited by leed_25; 12-23-2002 at 11:50 AM.
 
Old 12-24-2002, 05:24 AM   #3
mbayeb
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:31 AM.

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