[Trac] Re: CGI mode not working

2008-07-14 Thread Eno

On Jul 1, 8:16 pm, Noah Kantrowitz [EMAIL PROTECTED] wrote:

 Whatever these reasons are, find another solution. You will almost  
 surely be unsatisfied withCGI.

Can't use mod_python because it doesn't like mod_php.


--


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] CGI mode not working

2008-07-01 Thread Eno

For various reasons, Ive had to switch our Trac installs from using
mod_python to using CGI.

In my Apache vhost I have:

ScriptAlias / /usr/local/trac/cgi-bin/trac.cgi


Bringing up the site in a web browser, I see the usual wiki home
page,
however clicking on any of the links in the top nav bar doesn't work.

For /timeline I get:

Not Found


The requested URL /timeline was not found on this server.

Obviously, something is not mapping to the right place but Im not
sure
where to fix this?

Do I need to add mappings for those URLs or is something missing from
my install?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Switched from mod_python to CGI mode, but links not working

2008-06-25 Thread Eno

For various reasons, Ive had to switch our Trac installs from using
mod_python to using CGI.

In my Apache vhost I have:

ScriptAlias / /usr/local/trac/cgi-bin/trac.cgi


Bringing up the site in a web browser, I see the usual wiki home page,
however clicking on any of the links in the top nav bar doesn't work.
For /timeline I get:

Not Found

The requested URL /timeline was not found on this server.



Obviously, something is not mapping to the right place but Im not sure
where to fix this?

Do I need to add mappings for those URLs or is something missing from
my install?


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: Trac ignore certain URLs?

2007-11-15 Thread Eno

On Nov 14, 5:51 pm, Graham Dumpleton [EMAIL PROTECTED]
wrote:

 What if you change this to:

   Alias /files/ /home/www/files/

Didn't seem to make any difference. (I also tried this with and
without a similar change to the Location stanza



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Trac ignore certain URLs?

2007-11-14 Thread Eno

I want to have a particular URL under a Trac site to be ignored by
Trac. I have an Alias stanza in my vhost config that points that URL
to a folder outside of Trac but how do I tell Trac to not handle that
URL? (Right now, I get an error saying Trac couldn't find a handler
for that URL).


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: Trac ignore certain URLs?

2007-11-14 Thread Eno

On Nov 14, 4:53 pm, Graham Dumpleton [EMAIL PROTECTED]
wrote:

 Presuming you are using mod_python, use something like:

   Alias /some/url /some/path

   Location /some/url
   SetHandler None
   /Location

 If you are using mod_wsgi, then the Alias directive should be
 sufficient, you just need to ensure you have it appearing before the
 WSGIScriptAlias for Trac.

 So, how are you hosting Trac under Apache? What method you are using
 will determine what you need to do.

Thanks,


We are using mod_python under Apache2. I have the following in the
vhost config (which doesn't work):

Alias /files /home/www/files

Directory /home/www/files
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch
Limit GET POST OPTIONS PROPFIND
Order allow,deny
Allow from all
/Limit
IndexOptions FancyIndexing
IndexOrderDefault Descending Date
/Directory

Location /files
SetHandler None
/Location

Location /
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /usr/local/trac
PythonOption TracUriRoot /
PythonInterpreter main_interpreter
/Location

Location /login
AuthType Basic
AuthName Trac Server
AuthUserFile /usr/local/trac/.htpasswd
Require valid-user
/Location

Directory /usr/local/trac
Order allow,deny
Allow from all
/Directory




--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: One trac environment brings down the rest

2007-11-02 Thread Eno

On Oct 25, 7:23 pm, Graham Dumpleton [EMAIL PROTECTED]
wrote:

 Or in summary, in mod_python configuration force Trac to run in main
 interpreter:

   PythonInterpreter main_interpreter

 The only problem with that though is that if you are relying on the
 separation provided by the distinct sub interpreters so multiple Trac
 instances are separate, rather than relying on TracEnvParentDir
 setting, then the Trac instances can then interfere with each other if
 mod_python not configured correctly.


So far, this seems to have fixed the problem for now.


Thanks,



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] One trac environment brings down the rest

2007-10-25 Thread Eno

We're running multiple Trac environments with mod_python and Apache2
and one of the instances seems to be messing up mod_python. The error
I see in the Apache log says:

[Thu Oct 25 09:51:24 2007] [error] [client 161.221.68.43]
PythonHandler trac.web.modpython_frontend: Traceback (most recent call
last):

[Thu Oct 25 09:51:24 2007] [error] [client 161.221.68.43]
PythonHandler trac.web.modpython_frontend:   File /usr/local/lib/
python2.4/site-packages/mod_python/apache.py, line 299, in
HandlerDispatch\nresult = object(req)

[Thu Oct 25 09:51:24 2007] [error] [client 161.221.68.43]
PythonHandler trac.web.modpython_frontend:   File /usr/local/lib/
python2.4/site-packages/trac/web/modpython_frontend.py, line 87, in
handler\ngateway.run(dispatch_request)

[Thu Oct 25 09:51:24 2007] [error] [client 161.221.68.43]
PythonHandler trac.web.modpython_frontend:   File /usr/local/lib/
python2.4/site-packages/trac/web/wsgi.py, line 87, in run\n
response = application(self.environ, self._start_response)

[Thu Oct 25 09:51:24 2007] [error] [client 161.221.68.43]
PythonHandler trac.web.modpython_frontend:   File /usr/local/lib/
python2.4/site-packages/trac/web/main.py, line 391, in
dispatch_request\nenv = _open_environment(env_path,
run_once=run_once)

[Thu Oct 25 09:51:24 2007] [error] [client 161.221.68.43]
PythonHandler trac.web.modpython_frontend:   File /usr/local/lib/
python2.4/site-packages/trac/web/main.py, line 58, in
_open_environment\nenv_cache[env_path] =
open_environment(env_path)

[Thu Oct 25 09:51:24 2007] [error] [client 161.221.68.43]
PythonHandler trac.web.modpython_frontend:   File /usr/local/lib/
python2.4/site-packages/trac/env.py, line 462, in open_environment
\nenv = Environment(env_path)

[Thu Oct 25 09:51:24 2007] [error] [client 161.221.68.43]
PythonHandler trac.web.modpython_frontend:   File /usr/local/lib/
python2.4/site-packages/trac/env.py, line 142, in __init__\n
load_components(self)

[Thu Oct 25 09:51:24 2007] [error] [client 161.221.68.43]
PythonHandler trac.web.modpython_frontend:   File /usr/local/lib/
python2.4/site-packages/trac/loader.py, line 140, in load_components
\n__import__(module)

[Thu Oct 25 09:51:24 2007] [error] [client 161.221.68.43]
PythonHandler trac.web.modpython_frontend:   File /usr/local/lib/
python2.4/site-packages/trac/versioncontrol/svn_fs.py, line 56, in ?
\nfrom svn import fs, repos, core, delta

[Thu Oct 25 09:51:24 2007] [error] [client 161.221.68.43]
PythonHandler trac.web.modpython_frontend:   File /usr/local/lib/
python2.4/svn/fs.py, line 19, in ?\nfrom libsvn.fs import *

[Thu Oct 25 09:51:24 2007] [error] [client 161.221.68.43]
PythonHandler trac.web.modpython_frontend:   File /usr/local/lib/
python2.4/libsvn/fs.py, line 29, in ?\nimport core

[Thu Oct 25 09:51:24 2007] [error] [client 161.221.68.43]
PythonHandler trac.web.modpython_frontend:   File /usr/local/lib/
python2.4/libsvn/core.py, line 3057, in ?\nsvn_pool_create()

[Thu Oct 25 09:51:24 2007] [error] [client 161.221.68.43]
PythonHandler trac.web.modpython_frontend:   File /usr/local/lib/
python2.4/libsvn/core.py, line 1098, in svn_pool_create\nreturn
apply(_core.svn_pool_create, args)

[Thu Oct 25 09:51:24 2007] [error] [client 161.221.68.43]
PythonHandler trac.web.modpython_frontend: TypeError: argument number
0: a 'apr_pool_t *' is expected,
'instance(libsvn.core.GenericSWIGWrapper instance at 0x8b3fb6c)' is
received


(Ive removed referrer info from this log).

Is there a way to re-create an environment but save all the existing
database and attachments? I tried doing a trac-admin upgrade on the
messed up environment. it runs for awhile before crashing mod_python
again. I dont know Python so this is hard to troubleshoot for me.


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---