Python is a dynamically and strongly typed programming language that encourages readability.

learn more… | top users | synonyms

5
votes
2answers
2k views

Has anyone used uwsgi nginx and django for a high-load environment?

I was wondering if anyone has used uwsgi with nginx to serve a high-load django site before. If so, did they have any problems?
1
vote
1answer
2k views

Problems installing MySQL-python via yum / missing dependency / incompatibility problem?

I have come up against problems installing MySQL-python via yum. Our server is running Centos 5.5 and MySQL Version 5.1.45, Python-dev is installed. Yum complains about the missing dependency ...
0
votes
2answers
207 views

what do I need to run python on my webserver?

what do I need to run python on my webserver ? Should I enable some Apache module ? Thanks
4
votes
6answers
12k views

How can I check whether a volume is mounted where it is supposed to be using Python?

I've got a backup script written in Python which creates the destination directory before copying the source directory to it. I've configured it to use /external-backup as the destination, which is ...
3
votes
1answer
981 views

SYN flooding still a threat to servers?

Well recently I've been reading about different Denial of Service methods. One method that kind of stuck out was SYN flooding. I'm a member of some not-so-nice forums, and someone was selling a python ...
25
votes
3answers
4k views

Shinken - Anyone using it? [closed]

I've recently discovered Shinken, which is a new implementation of Nagios using python. Shinken "divides" Nagios in 5 different types of daemons, each one performing separated tasks. I haven't tried ...
0
votes
2answers
1k views

Running Python scripts in a browser

I want to start learning Python - and I'm having trouble getting scripts to load up in a browser (using Wamp). So far I've tried the following: 1: add the following lines to httpd.conf: AddHandler ...
1
vote
4answers
2k views

Making python run on my webserver

im getting a bit stuck regarding options for running python scripts on my server. From the research ive done so far, i can see i need to modify apache slightly to run python scripts, by using either ...
4
votes
1answer
1k views

how to configure ISPConfig for mod_python or mod_wsgi? [closed]

how to configure ISPConfig for mod_python or mod_wsgi for django like apps deployement?
0
votes
2answers
481 views

Install Python 2.6 on Debian Linux

I want to install Python 2.6, but as it's still experimental for Debian Linux, I'm wondering what my best course of action is. Is the right idea to install it into /usr/local for my system and then ...
1
vote
4answers
523 views

mod _python and Python 2.6

Is there anyway of getting mod python to run on the latest version of python, or do i have to downgrade my python installation to 2.5.5?
1
vote
2answers
1k views

Server with multiple IP addresses?

just wondering how it is actually possible to have a server with multiple IPs I have a python script, and would like to be able to use different IP addresses for different requests. Is this ...
4
votes
3answers
4k views

Nginx fastcgi problems with django (double slashes in url?)

I'm deploying my first django app. I'm familiar with nginx and fastcgi from deploying php-fpm. I can't get python to recognize the urls. I'm also at a loss on how to debug this further. I'd welcome ...
1
vote
1answer
217 views

How to keep a pylons web-application server running on windows server 2003

We have a pylons web application running on a windows server 2003 machine. There is a startup script that runs in a "dos box". From time to time the script crashes and the server is then down. How ...
3
votes
4answers
284 views

Probelms Intstalling Trac using apt-get Ubuntu Jaunty

I'm having some issues getting apt to install trac correctly on my Ubuntu Jaunty Box. Using the command 'apt-get install trac' I get the following output: root@myserver:~# apt-get install trac ...
0
votes
3answers
196 views

Making Python scripts more user friendly?

I have a bunch of python scripts I've put together that cut down on busy work, but I'd like to be able to share them in an easier-to-use format for others to be used internally. The scripts aren't ...
0
votes
2answers
242 views

Writing your own Makefile for OpenBSD ports

I have an OpenBSD box running Python 2.6. I want to install py-setuptools, but that package is built against 2.5. I was curious as to what the Makefile for py-setuptools looks like, to see if it ...
3
votes
3answers
1k views

Accessing MySQL server via VPN in python

Hi I have a MySQL server that I need access through a VPN. I use MySQLdb package to access MySQL server in Python. When I can access the server without VPN, it works fine, but when I'm at certain ...
0
votes
2answers
660 views

How do I set up my own proxy server?

This website (abc.com) slowed access from our original IP address. How do I implement my own proxy server to hide my IP while browsing abc.com? Do I need special hardware/software combo to achieve ...
6
votes
3answers
6k views

Configure FastCGI for Python

I have nginx running on a VM and I want to run a Trac site. I need to run a python FastCGI server, but I cannot tell which is the server to use. I have found the following: Lighttpd spawn-fcgi But ...
1
vote
0answers
515 views

Python server does not excecute PHP script: permission denied

I am trying to execute a PHP file through a Python server. However, I get the following error: File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/CGIHTTPServer.py", line ...
1
vote
4answers
7k views

Installing a clean Python 2.6 on SuSE (SLES) 11 using system-wide libraries

I've spent most of the day on this, and it is driving me absolutely insane. On all other Unixes I've used, this is a walk in the park, but SLES 11 has me dumbfounded. I need to build Zope on SLES 11 ...
1
vote
1answer
359 views

fedora apache/nginx pylons

I'm trying to wrap my head around Pylons and how it works. So far... it's been confusing... I'm using EC2 with Fedora8. Everything is working so far (i.e. I have Pylons/python et al installed and ...
1
vote
1answer
814 views

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 ...
1
vote
2answers
800 views

Python Profiling not installed in Ubuntu? How do I get it in a virtualenv and without apt-get?

According to the Python documentation, the "profile" module is part of the standard library. But I can't find it. On my home machine, I was able to add it using apt-get install. (ie. it's split out ...
2
votes
1answer
646 views

FCGI & recompiling python code without restarting apache

At one hosting company, they used to run python projects with fcgi. They had set it up so that when i changed django.fcgi file, which put django & my project on pythonpath, my project code was ...
5
votes
5answers
4k views

Secure method of changing a user's password via Python script/non-interactively

Questions Is there a more secure/better way for setting a user's password non-interactively via a Python script? My current solution uses chpasswd from a Fabric script. Another option would be to ...
1
vote
1answer
702 views

How can I install Satchmo?

I am trying to install Satchmo 0.9 on an Ubuntu 9.10 32-bit guest off of the instructions at http://bitbucket.org/chris1610/satchmo/downloads/Satchmo.pdf. I run into difficulties at 2.1.2: pip ...
1
vote
2answers
558 views

Can't seem to get python to work

I'm just starting out in Python. The Python interpreter works from the command line (I have 2.4.3), but I can't seem to get Apache to execute Python scripts. All I end up with is a blank screen and ...
0
votes
3answers
106 views

Apache: Use Specific Applicaion for CGI scripts

I have two servers, one in production and one for development. The production server is Solaris, dev is FreeBSD. Because of this, python is installed in different directories. I'm using Python right ...
2
votes
2answers
483 views

Process limit for user in Linux

This is the standard question, "How do I set a process limit for a user account in Linux to prevent fork-bombing," with an additional twist. The running program originates as a root-owned Python ...
0
votes
1answer
129 views

How can I install php and mysql on ubuntu

How can I install php with mod_python and mysql on ubuntu 9 64bit if I have ALREADY apache2 installed? Best Regards,
3
votes
1answer
3k views

Django, wsgi, py. what's the difference?

I'm trying to get a django application up and running on my cpanel system. I've installed mod_wsgi, and am following the guide here: ...
1
vote
4answers
3k views

What is the best way to install python 2.6 on a CentOs server?

CentOS 5.4 comes with python 2.4 standard. Yum doesn't seem to know python 2.6. What is the best way to install python 2.6, so it will be available for scripts and Apache HTTPd without breaking ...
2
votes
2answers
2k views

Apache using wrong Python version, 2.4 script working, 2.5 script failing

Using CentOS5, I have Apache configured with the following directives. Alias /pscript/ /var/www/pscript/ <Directory "/var/www/pscript/"> Options +ExecCGI DirectoryIndex thetest.py ...
0
votes
1answer
1k views

Apache2 Modpython : IOError: Write failed, client closed connection

This is the error : [Mon Mar 01 12:19:50 2010] [error] [client XXX.XXX.248.60] mod_python (pid=9528, interpreter='realpage.com', phase='PythonHandler', handler='django.core.handlers.modpython'): ...
1
vote
1answer
673 views

How to install mod_wsgi 3.1 on Ubuntu 9.10

I have a Python 3 web app so mod_wsgi < 3.1 doesn't cut it for me. However, on my Ubuntu 9.10 installation there doesn't seem to be a package for mod_wsgi 3.1. Is there an alternative repository ...
1
vote
3answers
5k views

Apache not handling python scripts (*.py) via browser

Edit: OS is CentOS 5 I installed Python 2.5.5 and am trying to run some Python scripts via the browser. Honestly, I have not worked with Python before. I attempted to load the python module into ...
2
votes
4answers
585 views

Cron not running my Python statement

I have the following entry in crontab: * * * * * python -c "import datetime; datetime.datetime.now()" >> /home/myname/pythoncron1.log The pythoncron1.log file is being created but has nothing ...
2
votes
1answer
4k views

“python_init: Python version mismatch” logged in Apache error.log

Installed the BitNami Trac Stack on a new Windows 2003 R2 Virtual Server to replace an aging Subversion/Trac installation on a rapidly failing physical server. I am adapting the default installation a ...
0
votes
2answers
667 views

Installing Nose into my home directory (without sudo)?

Is it possible to install Nose (http://somethingaboutorange.com/mrl/projects/nose/0.11.1/) into a subdirectory of my home directory on a Linux machine? (I'm not on the sudoers list for that machine.) ...
0
votes
2answers
7k views

How do I install PyYAML into local install of Python?

I've installed Python 2.6.4 into (a subdirectory in) my home directory on a Linux machine with Python 2.3.4 pre-installed, because I need to run some code that I've decided would require too much work ...
2
votes
1answer
2k views

django mod_wsgi memory problem

I have my django application on a VPS server (128mb ram) When i start it with python manage.py runserver, it works perfectly, but if I try to use it over apache/mod_wsgi it causes major slowdown very ...
4
votes
3answers
17k views

How do I install Python 2.6 on Debian 5.0 (lenny) using apt-get?

After some digging and experimentation, I figured out how to install Python 2.6 on Debian 5.0 using apt-get. So I thought it best to post on SF as a question and answer. I know this can be manually ...
1
vote
3answers
620 views

UK-based web hosting with Django support [closed]

I'm planning to set up a personal website in the near future, and I'd like to use Django on the site. I haven't yet made any decisions about hosting and I was thinking of going with Fasthosts, who ...
1
vote
5answers
3k views

How do I find the Python executable that my server is using?

I'm new to Linux. I'm managing a (Linux - Apache - mod_wsgi - Django) server, where there are multiple installations of Python. The site is currently working, but I want to find out which executable ...
0
votes
1answer
1k views

Getting modified year of file via FTP

I want to compare the modified date of a local file and the equivalent file on a remote FTP site (via FTP, no SSH access). I'm using Python's ftplib btw. The only way I can find to get the remote ...
1
vote
2answers
353 views

Is it a good idea to chmod my Python site-packages directory to 777?

I use Python on Linux and OS X, and I'm trying to think of a good reason not to chmod my Python site-packages directory to 777. It seems like that is better to do than sudoing every time I want to ...
1
vote
1answer
1k views

How can I check integrity of the builtin windows 2003 software raid from a script

I want to write a script (using python or windows batch) to check if in the raid system on a winows 2003 server all disks are online, alive and synced. This is the builtin windows 2003 software raid ...
0
votes
2answers
862 views

Is there a log file generated from python setup.py install?

When I am installing a python module, I use python setup.py install I see all of the output on the command line, but is all of this output saved to a log file somewhere? I'm asking because I ...