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?