mod_python and updated files

A

Aaron Scott

I have mod_python running on my server, but when I chance a Python
file on the server, Apache needs to be restarted in order to have the
changes take effect. I assume this is so mod_python can run
persistently, but it's becoming quite a headache for development. Is
there a way to turn off the persistence, or a way to force mod_python
to compile and run the new version of the file?
 
D

Daniel Klein

I have mod_python running on my server, but when I chance a Python
file on the server, Apache needs to be restarted in order to have the
changes take effect. I assume this is so mod_python can run
persistently, but it's becoming quite a headache for development. Is
there a way to turn off the persistence, or a way to force mod_python
to compile and run the new version of the file?

Add this to your Apache httpd.conf:

MaxRequestsPerChild 1

Not something you want to leave set on a production server.

Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top