Edgewall Software

Ticket #5060 (closed defect: wontfix)

Opened 22 months ago

Last modified 6 months ago

php view issue / freebsd port issue

Reported by: trac@… Owned by: jonas
Priority: normal Milestone:
Component: wiki system Version: 0.10.3.1
Severity: normal Keywords: pygments
Cc:

Description

I'm filing this with the trac wiki, and also with the freebsd port maintainer, as a fix could come from either.

i noticed an issue today when trying to look at a php file for the first time in trac - it wouldn't read at all. some googling and looking on the trac site made me realize that it was an issue with trac.ini , and the mimeviewer setting

the fix is easy: "php_path = php" -> "php_path= /usr/local/bin/php"

however this made me question 3 things:

1) why is php even involved in this at all? there is a ton of other syntax support in trac.

2) my old trac.ini install picked up the bin 'php', i tried a fresh install on a new machine, as well as speaking with friends who have run various versions on freebsd , centos , & ubuntu. all had a similar problem. is there a way that the system can better detect the php binary during ini writing? or maybe even try a few fallback locations if it just reads 'php' -- this seems to be a common issue.

3) i've been using trac since ~ the .7 branch and updating regularly. when i did a fresh install on a new box today , i realized much the ini files have been changing -- everything is still compatibile, but there are a ton of new settings. would it be possible to build into the trac distribution a sample trac.ini file per version from now on -- so people can diff the settings on any two trac versions ? i know that the ini is dynamically generated and not templated -- but if there were a way to just make a sample that comes with source, so when people update via ports/pkgs in various distros or from source, the info is all right there.

Attachments

Change History

Changed 16 months ago by sid

Regarding (3), Trac upgrade does produce a 'trac.ini.sample' file with all the default values, so you may want to compare your settings with the new default settings after an upgrade.

Changed 13 months ago by jruigrok

Just as a note, in 0.11 we now use Pygments in order to do highlighting. Pygments uses native highlighting and does not use the php CLI at all.

Changed 6 months ago by Piotr Kuczynski <piotr.kuczynski@…>

  • keywords pygments added
  • resolution set to wontfix
  • status changed from new to closed
  • component changed from general to wiki system

Use pygments with latest version of TRAC

Add/Change #5060 (php view issue / freebsd port issue)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.