[Trac] trac problem

Erik Álvarez Vázquez edav.listas at acan.com.mx
Wed Aug 17 10:41:29 CDT 2005


Hi, I'm having trouble running trac on dreamhost.com.

I get this error when trying to run it as fastcgi:

  [error]  FastCGI: comm with (dynamic) server "trac.fcgi" aborted:  
(first read) idle timeout (120 sec)
  [error]  FastCGI: incomplete headers (0 bytes) received from server  
"trac.fcgi"
  [error]  File does not exist: internal_error.html

and this one when running as normal cgi:

  [error] Premature end of script headers: trac.cgi
  [error] File does not exist: internal_error.html

Because of dreamhost apache suexec I made a script with permissions  
755 that calls tracs cgi script
the script has this as its contents:
#!/bin/bash
export LD_LIBRARY_PATH=$HOME/root/lib
export PYTHONPATH=$HOME/root/lib/python2.3/site-packages
export TRAC_ENV=$HOME/trac/project
exec $HOME/root/share/trac/cgi-bin/trac.fcgi

I can run trac-admin without problems.

Has anybody been succesful installing trac on his dreamhost account?

These are the steps I made to install trac

contents of .bashrc and .bash_profile:
export PATH=$HOME/root/bin:$PATH
export LD_LIBRARY_PATH=$HOME/root/lib
export PYTHONPATH=$HOME/root/lib/python2.3/site-packages

I made python links in $HOME/root/bin pointing to python2.3, this way  
configure scripts will pick up python2.3 instead of dreamhost /usr/ 
bin/python that is version 2.1.3
ln -s /usr/bin/python2.3 python
ln -s /usr/bin/python2.3 python2

for swig 1.3.24
./configure --prefix=$HOME/root --with-python=/usr/bin/python2.3
make && make install

for subversion 1.2.1
./configure --prefix=$HOME/root --without-berkeley-db --with-zlib -- 
with-ssl --with-swig=$HOME/root
make && make install
make swig-py
make install-swig-py
made links in $HOME/root/lib/python2.3/site-packages  to point to svn  
python bindings
ln -s ../../svn-python/svn svn
ln -s ../../svn-python/libsvn libsvn

for sqlite 3.2.2
./configure --prefix=$HOME/root
make && make install

for pysqlite 1.1.6
python2.3 setup.py install --prefix=$HOME/root/

for clearsilver 0.10.1
./configure --disable-perl --disable-ruby --disable-java --disable- 
csharp  --prefix=$HOME/root  --with-python=/usr/bin/python2.3
make && make install


Thanks

Erik Álvarez



More information about the Trac mailing list