[Trac] Re: installing trac 0.12 in fastcgi mod. Apache configuration issue
Matthew, thanks a lot, it works now! On 30 jan, 19:24, Matthew Caron wrote: > On 01/30/2012 01:09 PM, simo wrote: > > >> If it's new, you may need to sudo updatedb. > > > Did it but it doesn't change anything ! > > Then it's not in any other place, and that could be part of your issue. > Where are all your trac "guts"? The attachments, trac.ini, etc? Without > them, this won't work. > > >> Firstly, it doesn't look like you turned on the RewriteEngine, so those > >> lines aren't doing anything, and I'd leave them commented out until you > >> have the rest of it working. > > Yes, I turned it on > > Okay. > > >> Also, why are you bothering with fcgi? wsgi is faster, and it's actually > >> what I'm using... I just have old fcgi config around. > > > Ok for me to use wsgi. I installed and enabled the apache module. > > I had a glance on that page (http://trac.edgewall.org/wiki/TracModWSGI > > ), but I'm not familiar with python environnement and don't really > > know what to do, specifically regarding the script. > > > I'm willing to follow your instructions. > > Okay. firstly, I apologize - I pasted the wrong file originally. I sent > the .wsgi script, not the .fcgi script. This is the .fcgi script: > > {{{ > (mattc@eng) /opt/trac/eng/static-htdocs/cgi-bin$ less trac.fcgi > #!/usr/bin/python > # -*- coding: utf-8 -*- > # > # Copyright (C) 2003-2009 Edgewall Software > # Copyright (C) 2003-2004 Jonas Borgstr m > # All rights reserved. > # > # This software is licensed as described in the file COPYING, which > # you should have received as part of this distribution. The terms > # are also available athttp://trac.edgewall.org/wiki/TracLicense. > # > # This software consists of voluntary contributions made by many > # individuals. For the exact contribution history, see the revision > # history and logs, available athttp://trac.edgewall.org/log/. > # > # Author: Jonas Borgstr m > > try: > import os > import pkg_resources > if 'TRAC_ENV' not in os.environ and \ > 'TRAC_ENV_PARENT_DIR' not in os.environ: > os.environ['TRAC_ENV'] = '/opt/trac/eng' > if 'PYTHON_EGG_CACHE' not in os.environ: > if 'TRAC_ENV' in os.environ: > egg_cache = os.path.join(os.environ['TRAC_ENV'], '.egg-cache') > elif 'TRAC_ENV_PARENT_DIR' in os.environ: > egg_cache = os.path.join(os.environ['TRAC_ENV_PARENT_DIR'], > '.egg-cache') > pkg_resources.set_extraction_path(egg_cache) > from trac.web import fcgi_frontend > fcgi_frontend.run() > except SystemExit: > raise > except Exception, e: > print 'Content-Type: text/plain\r\n\r\n', > print 'Oops...' > print > print 'Trac detected an internal error:' > print > print e > print > import traceback > import StringIO > tb = StringIO.StringIO() > traceback.print_exc(file=tb) > print tb.getvalue() > > }}} > > All that said, with wsgi turned on, do: > > trac-admin deploy > > and that will do put all the right bits specified by the trac instance > in into the directory > > Here is my httpd.conf, somewhat munged to remove stuff which is specific > to my company. Comments are in <<< comment >>> so you know to > replace/remove them. > {{{ > > ServerName <<< server name >>> > ServerAlias trac > > # Serve (relatively) static chrome files directly from the > # filesystem. Use trac-admin's deploy command to create the > # static-htdocs directory: > Alias /trac/chrome <<< base trac path >>>/static-htdocs/htdocs > >>/static-htdocs/htdocs"> > Order allow,deny > Allow from all > > > WSGIDaemonProcess trac user=www-data group=www-data threads=50 > WSGIScriptAlias /trac <<< path to wsgi file created by deploy >>> > RewriteEngine on > > # RewriteLog /var/log/apache2/rewrite.log > # RewriteLogLevel 9 > > # It seems mod_fcgid/mod_wsgi includes _only_ the environment values > # specifically set below, so we do need to set LANG here explicitly. > DefaultInitEnv LANG "en_US.UTF-8" > DefaultInitEnv TRAC_ENV "<<< your path to base trac location here >>>" > > # Redirect bare requests to /trac > RewriteCond %{REQUEST_URI} ^/$ > RewriteRule ^(.*)$ <<< your URL here >>>/trac%{REQUEST_URI} > > >>>/static-htdocs/cgi-bin/> > WSGIProcessGroup trac > WSGIApplicationGroup %{GLOBAL} > Order deny,allow > Allow from all > > > > SetEnv TRAC_ENV "<<< your path to base trac location here >>>" > > > > <<< your login credential stuff goes here >>> > > > > }}} > > -- > Matthew Caron > Build Engineer > Sixnet |www.sixnet.com > O +1 518 877 5173 Ext. 138 > F +1 518 602 9209 > matt.ca...@sixnet.com -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to t
Re: [Trac] Re: installing trac 0.12 in fastcgi mod. Apache configuration issue
On 01/30/2012 01:09 PM, simo wrote: If it's new, you may need to sudo updatedb. Did it but it doesn't change anything ! Then it's not in any other place, and that could be part of your issue. Where are all your trac "guts"? The attachments, trac.ini, etc? Without them, this won't work. Firstly, it doesn't look like you turned on the RewriteEngine, so those lines aren't doing anything, and I'd leave them commented out until you have the rest of it working. Yes, I turned it on Okay. Also, why are you bothering with fcgi? wsgi is faster, and it's actually what I'm using... I just have old fcgi config around. Ok for me to use wsgi. I installed and enabled the apache module. I had a glance on that page ( http://trac.edgewall.org/wiki/TracModWSGI ), but I'm not familiar with python environnement and don't really know what to do, specifically regarding the script. I'm willing to follow your instructions. Okay. firstly, I apologize - I pasted the wrong file originally. I sent the .wsgi script, not the .fcgi script. This is the .fcgi script: {{{ (mattc@eng) /opt/trac/eng/static-htdocs/cgi-bin$ less trac.fcgi #!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2003-2009 Edgewall Software # Copyright (C) 2003-2004 Jonas Borgström # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.edgewall.org/wiki/TracLicense. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision # history and logs, available at http://trac.edgewall.org/log/. # # Author: Jonas Borgström try: import os import pkg_resources if 'TRAC_ENV' not in os.environ and \ 'TRAC_ENV_PARENT_DIR' not in os.environ: os.environ['TRAC_ENV'] = '/opt/trac/eng' if 'PYTHON_EGG_CACHE' not in os.environ: if 'TRAC_ENV' in os.environ: egg_cache = os.path.join(os.environ['TRAC_ENV'], '.egg-cache') elif 'TRAC_ENV_PARENT_DIR' in os.environ: egg_cache = os.path.join(os.environ['TRAC_ENV_PARENT_DIR'], '.egg-cache') pkg_resources.set_extraction_path(egg_cache) from trac.web import fcgi_frontend fcgi_frontend.run() except SystemExit: raise except Exception, e: print 'Content-Type: text/plain\r\n\r\n', print 'Oops...' print print 'Trac detected an internal error:' print print e print import traceback import StringIO tb = StringIO.StringIO() traceback.print_exc(file=tb) print tb.getvalue() }}} All that said, with wsgi turned on, do: trac-admin deploy and that will do put all the right bits specified by the trac instance in into the directory Here is my httpd.conf, somewhat munged to remove stuff which is specific to my company. Comments are in <<< comment >>> so you know to replace/remove them. {{{ ServerName <<< server name >>> ServerAlias trac # Serve (relatively) static chrome files directly from the # filesystem. Use trac-admin's deploy command to create the # static-htdocs directory: Alias /trac/chrome <<< base trac path >>>/static-htdocs/htdocs >>/static-htdocs/htdocs"> Order allow,deny Allow from all WSGIDaemonProcess trac user=www-data group=www-data threads=50 WSGIScriptAlias /trac <<< path to wsgi file created by deploy >>> RewriteEngine on # RewriteLog /var/log/apache2/rewrite.log # RewriteLogLevel 9 # It seems mod_fcgid/mod_wsgi includes _only_ the environment values # specifically set below, so we do need to set LANG here explicitly. DefaultInitEnv LANG "en_US.UTF-8" DefaultInitEnv TRAC_ENV "<<< your path to base trac location here >>>" # Redirect bare requests to /trac RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^(.*)$ <<< your URL here >>>/trac%{REQUEST_URI} >>>/static-htdocs/cgi-bin/> WSGIProcessGroup trac WSGIApplicationGroup %{GLOBAL} Order deny,allow Allow from all SetEnv TRAC_ENV "<<< your path to base trac location here >>>" <<< your login credential stuff goes here >>> }}} -- Matthew Caron Build Engineer Sixnet | www.sixnet.com O +1 518 877 5173 Ext. 138 F +1 518 602 9209 matt.ca...@sixnet.com -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
[Trac] Re: installing trac 0.12 in fastcgi mod. Apache configuration issue
On 30 jan, 17:16, Matthew Caron wrote: > If it's new, you may need to sudo updatedb. Did it but it doesn't change anything ! > > Firstly, it doesn't look like you turned on the RewriteEngine, so those > lines aren't doing anything, and I'd leave them commented out until you > have the rest of it working. Yes, I turned it on > Also, why are you bothering with fcgi? wsgi is faster, and it's actually > what I'm using... I just have old fcgi config around. Ok for me to use wsgi. I installed and enabled the apache module. I had a glance on that page ( http://trac.edgewall.org/wiki/TracModWSGI ), but I'm not familiar with python environnement and don't really know what to do, specifically regarding the script. I'm willing to follow your instructions. Thanks > *shrug* I don't have a trailing slash there (that makes me think > "directory" and it's not a directory, it's a file, but who knows what > mod_alias does) and it works for me. > > > ANd now, I have nothing working ... > > And the logs look like...? > > -- > Matthew Caron > Build Engineer > Sixnet |www.sixnet.com > O +1 518 877 5173 Ext. 138 > F +1 518 602 9209 > matt.ca...@sixnet.com -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Re: installing trac 0.12 in fastcgi mod. Apache configuration issue
On 01/30/2012 11:07 AM, simo wrote: locate trac matches my svn checkout in /home/ and .egg files. That's all! If it's new, you may need to sudo updatedb. This is now the content of my .htaccess file : AddHandler fastcgi-script .fcgi FastCgiConfig -initial-env TRAC_ENV=/var/trac/linea21 ErrorLog /var/log/apache2/error.dev.linea21.com.log CustomLog /var/log/apache2/access.dev.linea21.com.log combined ScriptAlias /trac /home/simon/0.12dev/cgi-bin/trac.fcgi/ # Redirect bare requests to /trac RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^(.*)$ http://dev.linea21.com/trac%{REQUEST_URI} Firstly, it doesn't look like you turned on the RewriteEngine, so those lines aren't doing anything, and I'd leave them commented out until you have the rest of it working. Also, why are you bothering with fcgi? wsgi is faster, and it's actually what I'm using... I just have old fcgi config around. I also added the slash at the end of ScriptAlias since it seems it's needed ( http://trac.edgewall.org/wiki/TracFastCgi#Setupwithmod_fcgid ) *shrug* I don't have a trailing slash there (that makes me think "directory" and it's not a directory, it's a file, but who knows what mod_alias does) and it works for me. ANd now, I have nothing working ... And the logs look like...? -- Matthew Caron Build Engineer Sixnet | www.sixnet.com O +1 518 877 5173 Ext. 138 F +1 518 602 9209 matt.ca...@sixnet.com -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
[Trac] Re: installing trac 0.12 in fastcgi mod. Apache configuration issue
locate trac matches my svn checkout in /home/ and .egg files. That's all! This is now the content of my .htaccess file : AddHandler fastcgi-script .fcgi FastCgiConfig -initial-env TRAC_ENV=/var/trac/linea21 ErrorLog /var/log/apache2/error.dev.linea21.com.log CustomLog /var/log/apache2/access.dev.linea21.com.log combined ScriptAlias /trac /home/simon/0.12dev/cgi-bin/trac.fcgi/ # Redirect bare requests to /trac RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^(.*)$ http://dev.linea21.com/trac%{REQUEST_URI} I also added the slash at the end of ScriptAlias since it seems it's needed ( http://trac.edgewall.org/wiki/TracFastCgi#Setupwithmod_fcgid ) ANd now, I have nothing working ... I'll make some more tests and let you know. Others ideas are welcome. On 30 jan, 16:17, Matthew Caron wrote: > On 01/30/2012 09:48 AM, simo wrote: > > > Thanks for your help ... > > > I think I should give you more information. Sorry for not saying that > > before. > > > Actually, as I said, I've installed trac using easy_install. There is > > a python egg in /usr/lib/python2.5/site-packages but I can't find any > > trac folder into /usr/share/ ! > > I don't have a trac folder in /usr/share either. > > > Is that normal? Where can it be? How can I find it ? > > Wouldn't: > > locate trac > > find things? > > > I've created an alias to sources (I got from svn) in /home/simon/ > > 0.12dev/cgi-bin/trac.fcgi ... but It seems it does not work since > > apache error logs are, as followed : > > > -- > > [Mon Jan 30 13:58:55 2012] [error] [client 81.185.145.232] script not > > found or unable to stat: /home/simon/0.12dev/cgi-bin/trac.fcgivar, > > referer:http://dev.linea21.com/ > > yeah, that's odd - it's trying to find the script: > > /home/simon/0.12dev/cgi-bin/trac.fcgivar > > why is there a var on the end? > > > [Mon Jan 30 13:58:55 2012] [error] [client 81.185.145.232] script not > > found or unable to stat: /home/simon/0.12dev/cgi-bin/trac.fcgichrome, > > referer:http://dev.linea21.com/ > > Aha... and here's this! > > It's trying to go to: > > dev.linea21.com/var > > and: > > dev.linea21.com/chrome > > So, remove the base URL, and you get: > > /var > /chrome > > Except / is an alias for /home/simon/0.12dev/cgi-bin/trac.fcgi. Subbing > that in, you get: > > /home/simon/0.12dev/cgi-bin/trac.fcgi/var > /home/simon/0.12dev/cgi-bin/trac.fcgi/chrome > > And there is your problem. > > Try my suggestion of changing the ScriptAlias to /trac instead of /. > > > Matthew> Regarding Ubuntu 8.04, My hosting provider has stop > > maintenance on the service I get so there is no upgrade anymore. > > Since, I've just made a clean install, I keep it for some times... > > Good luck with that. I'd be very afraid of running something with no > security updates. I just finished upgrading all my machines to 10.04. > -- > Matthew Caron > Build Engineer > Sixnet |www.sixnet.com > O +1 518 877 5173 Ext. 138 > F +1 518 602 9209 > matt.ca...@sixnet.com -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Re: installing trac 0.12 in fastcgi mod. Apache configuration issue
On 01/30/2012 09:48 AM, simo wrote: Thanks for your help ... I think I should give you more information. Sorry for not saying that before. Actually, as I said, I've installed trac using easy_install. There is a python egg in /usr/lib/python2.5/site-packages but I can't find any trac folder into /usr/share/ ! I don't have a trac folder in /usr/share either. Is that normal? Where can it be? How can I find it ? Wouldn't: locate trac find things? I've created an alias to sources (I got from svn) in /home/simon/ 0.12dev/cgi-bin/trac.fcgi ... but It seems it does not work since apache error logs are, as followed : -- [Mon Jan 30 13:58:55 2012] [error] [client 81.185.145.232] script not found or unable to stat: /home/simon/0.12dev/cgi-bin/trac.fcgivar, referer: http://dev.linea21.com/ yeah, that's odd - it's trying to find the script: /home/simon/0.12dev/cgi-bin/trac.fcgivar why is there a var on the end? [Mon Jan 30 13:58:55 2012] [error] [client 81.185.145.232] script not found or unable to stat: /home/simon/0.12dev/cgi-bin/trac.fcgichrome, referer: http://dev.linea21.com/ Aha... and here's this! It's trying to go to: dev.linea21.com/var and: dev.linea21.com/chrome So, remove the base URL, and you get: /var /chrome Except / is an alias for /home/simon/0.12dev/cgi-bin/trac.fcgi. Subbing that in, you get: /home/simon/0.12dev/cgi-bin/trac.fcgi/var /home/simon/0.12dev/cgi-bin/trac.fcgi/chrome And there is your problem. Try my suggestion of changing the ScriptAlias to /trac instead of /. Matthew> Regarding Ubuntu 8.04, My hosting provider has stop maintenance on the service I get so there is no upgrade anymore. Since, I've just made a clean install, I keep it for some times... Good luck with that. I'd be very afraid of running something with no security updates. I just finished upgrading all my machines to 10.04. -- Matthew Caron Build Engineer Sixnet | www.sixnet.com O +1 518 877 5173 Ext. 138 F +1 518 602 9209 matt.ca...@sixnet.com -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
[Trac] Re: installing trac 0.12 in fastcgi mod. Apache configuration issue
Thanks for your help ... I think I should give you more information. Sorry for not saying that before. Actually, as I said, I've installed trac using easy_install. There is a python egg in /usr/lib/python2.5/site-packages but I can't find any trac folder into /usr/share/ ! Is that normal? Where can it be? How can I find it ? I've created an alias to sources (I got from svn) in /home/simon/ 0.12dev/cgi-bin/trac.fcgi ... but It seems it does not work since apache error logs are, as followed : -- [Mon Jan 30 13:58:55 2012] [error] [client 81.185.145.232] script not found or unable to stat: /home/simon/0.12dev/cgi-bin/trac.fcgivar, referer: http://dev.linea21.com/ [Mon Jan 30 13:58:55 2012] [error] [client 81.185.145.232] script not found or unable to stat: /home/simon/0.12dev/cgi-bin/trac.fcgichrome, referer: http://dev.linea21.com/ [Mon Jan 30 13:58:56 2012] [error] [client 81.185.145.232] script not found or unable to stat: /home/simon/0.12dev/cgi-bin/trac.fcgivar, referer: http://dev.linea21.com/ [Mon Jan 30 13:58:56 2012] [error] [client 81.185.145.232] script not found or unable to stat: /home/simon/0.12dev/cgi-bin/trac.fcgivar, referer: http://dev.linea21.com/ [Mon Jan 30 13:58:56 2012] [error] [client 81.185.145.232] script not found or unable to stat: /home/simon/0.12dev/cgi-bin/trac.fcgichrome, referer: http://dev.linea21.com/ [Mon Jan 30 13:58:56 2012] [error] [client 81.185.145.232] script not found or unable to stat: /home/simon/0.12dev/cgi-bin/trac.fcgivar, referer: http://dev.linea21.com/ [Mon Jan 30 13:59:29 2012] [error] [client 220.181.94.233] script not found or unable to stat: /home/simon/0.12dev/cgi-bin/trac.fcgitimeline [Mon Jan 30 14:00:41 2012] [error] [client 180.76.5.65] script not found or unable to stat: /home/simon/0.12dev/cgi-bin/trac.fcgibrowser [Mon Jan 30 14:00:42 2012] [error] [client 180.76.5.147] script not found or unable to stat: /home/simon/0.12dev/cgi-bin/trac.fcgibrowser -- Matthew > Regarding Ubuntu 8.04, My hosting provider has stop maintenance on the service I get so there is no upgrade anymore. Since, I've just made a clean install, I keep it for some times... Thanks for your help, I'm really lost! On 30 jan, 14:40, Matthew Caron wrote: > On 01/27/2012 09:52 AM, simo wrote: > > > Hi list, > > > I've trac 0.12 installed on my server. I used it for a while using > > mod_python but it made apache cpu overloaded an crashed. > > > I'm switching in now to fastcgi mod. It's getting ok but I still have > > 2 main problems : > > - CSS styles are not loaded anymore (and js I guess) > > - I'm able to display the root page but any page throw a 404 error. > > I bet these two are related - it likely can't find them. > > What do the apache logs say when you get a 404? > > > DocumentRoot /var/trac/linea21 > > ScriptAlias / /home/simon/0.12dev/cgi-bin/trac.fcgi > > I concur with Mark Cooke. This seems wrong. My setup transposed to yours > would be: > > ScriptAlias /trac /home/simon/0.12dev/cgi-bin/trac.fcgi > > Try that. I know it won't give you the "I go to the base servername and > get what I want", but that's what redirect rules are for. I have the > following, transposed to your sites: > > # Redirect bare requests to /trac > RewriteCond %{REQUEST_URI} ^/$ > RewriteRule ^(.*)$https://dev.linea21.com/trac%{REQUEST_URI} > > (And it occurs to me that the above is actually overly complex, but it's > been in production for 3 years so I'm loathe to change it just for the > sake of style). However, the following should work just fine: > > RewriteRule ^/$ /trac/ [R] > > (The [R] makes it a redirect) > > > I run trac 0.12 on apache2 with fastcgi_mod on ubuntu server 8.04 > > You know Ubuntu 8.04 is going to be EOL in April of 2013, right? If this > is a new installation, you might consider upgrading.. or are you waiting > for 12.04? > > -- > Matthew Caron > Build Engineer > Sixnet |www.sixnet.com > O +1 518 877 5173 Ext. 138 > F +1 518 602 9209 > matt.ca...@sixnet.com -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
RE: [Trac] Re: installing trac 0.12 in fastcgi mod. Apache configuration issue
> -Original Message- > From: trac-users@googlegroups.com On Behalf Of simo > Sent: 30 January 2012 13:09 > To: Trac Users > Subject: [Trac] Re: installing trac 0.12 in fastcgi mod. > Apache configuration issue > > To be more precise, I have installed Trac using easy_install so I have > an egg into /usr/lib/python2.5/site-packages and my project repo is / > var/trac/linea21. > > Thanks > > > On 27 jan, 15:52, simo wrote: > > Hi list, > > > > I've trac 0.12 installed on my server. I used it for a while using > > mod_python but it made apache cpu overloaded an crashed. > > > > I'm switching in now to fastcgi mod. It's getting ok but I still > > have 2 main problems : > > - CSS styles are not loaded anymore (and js I guess) > > - I'm able to display the root page but any page throw a 404 error. > > > > Here is my root page :http://dev.linea21.com/ > > > > and this is how I configure my .htaccess file : > > > -- > --- > > > > > > AddHandler fastcgi-script .fcgi > > > > > > FastCgiConfig -initial-env TRAC_ENV=/var/trac/linea21 > > > > > > ServerAdmin i...@linea21.com > > ServerName dev.linea21.com > > > > DocumentRoot /var/trac/linea21 > > ScriptAlias / /home/simon/0.12dev/cgi-bin/trac.fcgi ...umm, I'm no expert but doesn't that ScriptAlias directive mean that ALL URLs are mapped to trac.fcgi? I am surprised that your svn stuff works with this. http://httpd.apache.org/docs/2.2/mod/mod_alias.html#scriptalias ~ mark c > > > > SetEnv TRAC_ENV "/var/trac/linea21" > > > > > > > > AllowOverride None > > Options None > > Order allow,deny > > Allow from all > > > > > > > > # it seems my svn settings are ok > > > > > > > -- > --- > > > > Any help would be very appreciated! > > > > I run trac 0.12 on apache2 with fastcgi_mod on ubuntu server 8.04 > -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
[Trac] Re: installing trac 0.12 in fastcgi mod. Apache configuration issue
To be more precise, I have installed Trac using easy_install so I have an egg into /usr/lib/python2.5/site-packages and my project repo is / var/trac/linea21. Thanks On 27 jan, 15:52, simo wrote: > Hi list, > > I've trac 0.12 installed on my server. I used it for a while using > mod_python but it made apache cpu overloaded an crashed. > > I'm switching in now to fastcgi mod. It's getting ok but I still have > 2 main problems : > - CSS styles are not loaded anymore (and js I guess) > - I'm able to display the root page but any page throw a 404 error. > > Here is my root page :http://dev.linea21.com/ > > and this is how I configure my .htaccess file : > - > > > AddHandler fastcgi-script .fcgi > > > FastCgiConfig -initial-env TRAC_ENV=/var/trac/linea21 > > > ServerAdmin i...@linea21.com > ServerName dev.linea21.com > > DocumentRoot /var/trac/linea21 > ScriptAlias / /home/simon/0.12dev/cgi-bin/trac.fcgi > > > SetEnv TRAC_ENV "/var/trac/linea21" > > > > AllowOverride None > Options None > Order allow,deny > Allow from all > > > > # it seems my svn settings are ok > > > - > > Any help would be very appreciated! > > I run trac 0.12 on apache2 with fastcgi_mod on ubuntu server 8.04 -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.