Questions tagged [mod-python]

36 questions
1
vote
1 answer

How do I install newer python on CentOS with minimal effort?

I would like to install Python 2.6 and mod_python on CentOS 5 (x64). The system is delivered with old python 2.4 and I want the new one with minimal maintenance effort (compiling and having a different installation seams to be suboptimal…
sorin
  • 7,668
  • 24
  • 75
  • 100
0
votes
1 answer

freeradius rlm_python tagged attributes

I've created python auth module. When trying to perform testing with radtest reply is: User-Password = "testing123" NAS-IP-Address = 127.0.1.1 NAS-Port = 0 Message-Authenticator = 0x00 Cleartext-Password = "testing123" Received…
Marcus
  • 1
  • 2
0
votes
1 answer

Apache graceful restart, reduces the max process count

I have configured apache with "Worker" MPM module. See the worker module settings: StartServers 4 ServerLimit 20 MaxClients 1280 MinSpareThreads 64 MaxSpareThreads …
Ahsan
  • 151
  • 1
  • 1
  • 6
0
votes
3 answers

multiple django mod_python performance issue

I have two server with two version of django 0.9.6 and 1.0.2. both are used, for some older sites(where migration is still pending) and now ppl have started using 1.0.2. I have apache 2.2.9 and mod_python 3.3.1 on a RHEL 4 32 bit server. In one…
debajit Kataki
0
votes
2 answers

How to run python script which required root privilage for execution in apache with mod_python at openbsd

I am trying to run python script in Apache 2.x with mod_python. I edited httpd.conf with publisher LoadModule python_module /usr/local/apache2/modules/mod_python.so SetHandler…
0
votes
1 answer

apache file permissions using mod_python

I'm running apache with mod_python, and I'm having trouble reading files from a specific directory. Previously the directory had 0777 permissions but I've decided to change it to 0770 (not quite happy with having other RW access). So I changed the…
Benjamin K.
  • 133
  • 2
0
votes
1 answer

mod_wsgi.so: Cannot load mod_wsgi.so into server: libpython2.5.so.1.0: cannot open shared object file: No such file or directory

I get the following error: when i try to restart the server: [root@lts5srv1 mod_wsgi-2.3]# service httpd restart Stopping httpd: [FAILED] Starting httpd: httpd: Syntax error on line 202 of…
Kreshnik
  • 145
  • 1
  • 3
  • 9
0
votes
1 answer

Python with mamp

I have a MAMP 1.9 install on Lion and would like to start using python with it. Mainly to learn and develop django sites. I am very new to python in general. In my research I found that I either need mod_python or mod_wsgi to make it work. But found…
applechief
  • 125
  • 4
0
votes
2 answers

python new install showing error while loading shared libraries

i installed python2.6 before in /ust/local/bin but now i removed it and installed a new python2.6.4 in /opt/python2.6 i installed from the article but on mid way only where they say to check python it says [root@domain ~]# python …
Astha
  • 243
  • 2
  • 6
  • 15
0
votes
1 answer

'gcc' failed with exit status 1 - MySQL-python-1.2.3

I am installing MySQL db for python2.6. I installed it from here but when I am on the line I extracted the file and when I did python2.6 setup.py build it gives a lot of errors and warring and end with some of the lines _mysql.c: At top…
Astha
  • 243
  • 2
  • 6
  • 15
0
votes
1 answer

Multiple virtual hosts support for apache with scgi quixote backend for some host

I'm trying to add a domain with quixote as its backend. I searched google and found that there are servaral choices to glue quixote and apache together. I chose scgi because it seems like the choice with the best performace. So, I installed…
David
  • 101
  • 2
0
votes
1 answer

Apache + mod_python - can't configure server

I have got Ubuntu 10.04 (XEN) VPS. I want to set up Django server. I use apt-get to install django packages, apache, apache-mpm-prefork. Before using this configuration I saw "It works!" title, when I use ip/domain to get access to the server. After…
Dracontis
  • 125
  • 1
  • 2
  • 7
0
votes
1 answer

mod_wsgi/3.2 mixing interpreters context with django on Apache2 using mod_rewrite .. why?

Long story tl;dr: With the configuration below Apache gets confused with Python interpreter context. I have three demo sites deployed using this setup and if you refresh them often a race condition occurs and some texts/images coming from the DB…
h3.
  • 189
  • 3
  • 9
0
votes
1 answer

Errors related to python version added to error log when I start apache2

When I start apache I am getting those errors: [Tue Jun 14 02:28:58 2011] [error] python_init: Python version mismatch, expected '2.6.5', found '2.6.6'. [Tue Jun 14 02:28:58 2011] [error] python_init: Python executable found '/usr/bin/python'. [Tue…
jnbdz
  • 897
  • 5
  • 22
  • 43
0
votes
1 answer

How to set up Apache server via an FTP account

I have developed a web application in Django and would like to go online i have an FTP access to the hosting server I am a beginner to "setting up a website" i would like to know how to install apache on that server and have my application working…
user80569
  • 1
  • 1