linux-configure-apache-with-trac
HOPEFULLY you've installed apache2.2, trac 11.6 and you're just itching to put them together
VERIFY YOUR APACHE IS OK http://127.0.0.1 (or your ip address, ALWAYS watch out for firewalls!)
VERIFY YOUR TRAC IS OK trac-admin testproject version list
MAKE A GLOBAL SYMBOLIC LINK
cd / ln -s /trac-root/projects/trac /trac
ENSURE APACHE CAN ACCESS TRAC FILES chown -R www-data:www-data trac
INSTALL ANY REQUIRED MODULES
sudo apt-get install libapache2-mod-python //debian, same for yum/centos?
CONFIGURE APACHE2 TO USE TRAC/PYTHON
DEBIAN/UBUNTU cd /etc/apache2/sites-available/default
CENTOS/REDHAT cd /etc/httpd/conf/httpd.conf
FIRST MAKE A BACKUP! cp default default.bak (or cp httpd.conf httpd.conf.bak)
nano default (or nano httpd.conf)
TEST IF YOU CAN SEE YOUR TRAC PROJECTS! (beware any "require-user" or firewalls blocking it)
http://192.168.1.60/trac
NOTE THAT IT EVEN WARNS ME TO UPGRADE ONE PROJECT FROM 10.4 TO 11.6 trac-admin /trac-root/projects/trac/test upgrade
NOTE THAT A DHRYSTONE 131 IT IS INTOLERABLY SLOW...
NameVirtualHost *
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
the following has been modified, all users accessing apache must be authenticated against productwiki.password
all users in projects.password MUST also be in productwiki.password
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
AuthName "Anders Electronics"
AuthType Basic
AuthUserFile /trac-root/productwiki.password
Require valid-user
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# values include: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature Off
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>