venerdì 27 agosto 2010

Install Trac on Linux Fedora 13

Hands on how to install Trac on Fedora 13.

From root, install Trac and fcgid module for apache:
# yum install trac 
# yum install mod_fcgid

Create a test project, I take /tmp/test as my project folder:
# trac-admin /tmp/test initenv

And try it: start the server and navigate to http://localhost:8000/:
# tracd --port 8000 /tmp/test

It work, I hope :)
Create the folter for apache:
# trac-admin /srv/trac/zonablog deploy /tmp/test2
# mv /tmp/test2/htdocs/  /tmp/test/
# mv /tmp/test2/cgi-bin/ /tmp/test/
# rm -rf /tmp/test2
# chown apache.apache -R *

Edit this file /etc/httpd/conf.d/trac.conf.
Comment all content or remove and insert the row below:
 <Directory /tmp/test/>  
  Order allow,deny                                                                                      
  Allow from all                                                                                       
 </Directory>  
 ScriptAlias /trac/ /tmp/test/cgi-bin/trac.fcgi/  
 DefaultInitEnv TRAC_ENV /tmp/test/  

Move your logo image in /tmp/test/htdocs/logo.jpg
And modifi the /tmp/test/conf/trac.ini in section [header_logo]:
[header_logo]
...
src = site/logo.jpg*
...

Restart apache:
# /etc/init.d/httpd restart

navigate to http://localhost/trac

I hope you have saved some time :)
Domenico

Nessun commento: