Quantcast
Channel: Admins Goodies » python
Browsing latest articles
Browse All 10 View Live

Image may be NSFW.
Clik here to view.

Running apache + mod_wsgi as different user

I have a django project, which I am moving from the dev-server to apache. I have managed to get it server with mod_wsgi, but it runs as apache. Mod_wsgi documentation says, that if apache is run as...

View Article



Image may be NSFW.
Clik here to view.

How do I install psycopg2 for multiple python interpreters on a CentOS box?

I have a CentOS 5.5 box, which comes preloaded with Python 2.4. I wanted 2.6, so used yumto get it from the EPEL repository. I also used yum to install the psycopg2 package, but it installed it for...

View Article

Image may be NSFW.
Clik here to view.

IPv6 Address Switch

I have IPv6 addresses on a Linux based server. How can I switch the current address to a new one? Is there a way to do it using shell commands? How about using Python? Thanks. Asked by Austin Modo...

View Article

Image may be NSFW.
Clik here to view.

Python SVN Bindings – ImportError: No module named svn

I have recently updated my server using apt-get upgrade and then suddenly trac started showing the following error message: Warning: Can't synchronize with repository "(default)" (Unsupported version...

View Article

Image may be NSFW.
Clik here to view.

Django LDAP – How to map description field to Django group

I’m trying to set up LDAP authentication with my Django app using Django-Auth The basic idea I want to do is any LDAP user with “IT – Help Desk” in the description would get mapped to a certain Django...

View Article


Image may be NSFW.
Clik here to view.

Installing mod_wsgi with python 2.7 on ubuntu

I tried to install mod_wsgi on my ubuntu server using the package manager, but noticed it depends on python 2.6. I’m using python 2.7, and would rather avoid installing 2.6… Does mod_wsgi really...

View Article

Image may be NSFW.
Clik here to view.

How do I rotate old log files to long-term backup?

I have logrotate set up to archive logs for 30 days; how do I set up my cron job to rotate them automatically from /var/log/net to the long-term storage I have mounted on /mnt/backup? I do not need to...

View Article

Image may be NSFW.
Clik here to view.

NFS volume file permissions

I have a Redhat 6.0 system (SELinux enabled), with a NFS volume mounted at /myvolume. The command ls -la /myvolume says it has owner “nobody” and group “nobody”. On this system I have Apache running...

View Article


Image may be NSFW.
Clik here to view.

uwsgi nginx web.py interal server error: application not found

Within my nginx sites-available/default this is the relevant portion for my app: location /app/ { include uwsgi_params; uwsgi_pass unix:///tmp/uwsgi.socket; } My app.xml file within the...

View Article


Image may be NSFW.
Clik here to view.

CherryPy 3 with Apache 2 using ModWSGI: stack traces?

I am trying to show stack traces or at least some sort of errors rendered to the HTML response while using a WSGI script. A ModuleNotFound exception is raised when I tried to import a module the...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images