john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Trac error apache php www data can't write python eggs

trac-error-apache-php-www-data-can't-write-python-eggs

IF you run into this error (e.g. run trac-admin as the www-data user)...

[Errno 13] Permission denied: '/var/www/.python-eggs/Genshi-0.5.1-py2.5-linux-i686.egg-tmp

The Python egg cache directory is currently set to:

/var/www/.python-eggs

Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment variable to point to an accessible directory.

You can solve it:

In your python script you can do:

BEFORE python setup.py (for trac installations)

Code:

import os os.environ['PYTHON_EGG_CACHE'] = '/tmp'

??import MySQLdb

OR try /mytmpdir if for some reason /tmp is mounted with "nosuexec".

putenv('PYTHON_EGG_CACHE=/trac-root/webadmin/tmp'); passthru('trac-admin /path/trac/projectname permission add username groupORpermission');

note trac-admin is the default "everything" admin permission...

?http://us2.php.net/proc_open would help too?


  • « Linux vsftpd sharing files mount bind local umask
  • Slackware install packages add remove programs »

Published

Feb 6, 2010

Category

linux

~113 words

Tags

  • apache 13
  • can't 1
  • data 6
  • eggs 1
  • error 14
  • linux 249
  • php 82
  • python 180
  • trac 8
  • write 10
  • www 1