Modify ↓
Opened 15 years ago
Closed 15 years ago
#8512 closed defect (worksforme)
Problem uploading attachements multi-project enviroment using mod_python on Linux
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | attachment | Version: | 0.11.1 |
Severity: | major | Keywords: | mod_python linux |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
When I try to upload a image (png) or other kinds of attachments (.txt) it doesn't bring up any errors and I the attachment isn't uploaded. The permissions of files are set to www-data user.
Btw this a Ubuntu Server 9.04 with apache2.
Info about mod_python:
Package: libapache2-mod-python State: installed Automatically installed: no Version: 3.3.1-6build2
My virtual host configuration:
<VirtualHost *:80> ServerName trac.domain.com <Directory /var/www/trac> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> <Location /> SetHandler mod_python PythonInterpreter main_interpreter PythonHandler trac.web.modpython_frontend PythonOption TracEnvParentDir /var/www/trac PythonOption TracUriRoot / AuthType Basic AuthName "Development Server Authentication" AuthUserFile /etc/apache2/trac-access/htpasswd AuthGroupFile /etc/apache2/trac-access/groups Require valid-user Require group development </Location> <Location /projectname> AuthType Basic AuthName "Development Server Authentication" AuthUserFile /etc/apache2/trac-access/htpasswd AuthGroupFile /etc/apache2/trac-access/groups Require valid-user Require group projectname </Location>
From trac.ini:
[attachment] max_size = 5200000 render_unsafe_content = false
Attachments (0)
Note:
See TracTickets
for help on using tickets.
I assume you are using Python 2.6? You should upgrade to 0.11.5, as some 2.6-related issues have been fixed since 0.11.1.