I think I have more of an apache problem than a trac issue but I hope
you can help
I am trying to get code colorization working but it is not quite working.
My trac.log is full of...
------------
13:02:25 Trac[api] WARNING: HTML preview using
<trac.mimeview.php.PHPRenderer object at 0x414c220c> failed (Running
(php -sn) failed: 127, sh: php: command not found
.)
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/mimeview/api.py", line
240, in render
return Markup(self._annotate(result, annotations))
File "/usr/lib/python2.3/site-packages/trac/mimeview/api.py", line
274, in _annotate
for num, line in enum(_html_splitlines(lines)):
File "/usr/lib/python2.3/site-packages/trac/util.py", line 43, in enum
for item in iter(iterable):
File "/usr/lib/python2.3/site-packages/trac/mimeview/api.py", line
325, in _html_splitlines
for line in lines:
File "/usr/lib/python2.3/site-packages/trac/mimeview/php.py", line
66, in render
raise Exception, err
Exception: Running (php -sn) failed: 127, sh: php: command not found
--------------
my php binary is in /usr/local/bin
I put that path in /etc/profile and restarted (hoping apache could
find php then) but still could not find.
I don't think it is a permission issue because a test PHP script with
the line...
print exec("/usr/local/bin/php -i"); works (where as print exec("php
-i"); does not )
any suggestions are most appreciated,
thx,
Sam
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac