Tim Hatch wrote: >> But I don't seem to be able to get any output. > > You need to restart the Apache process after setting logging on. Then > hit a page, and at that point you should get a useful traceback or > error in the log.
Ahh, thanks. That wasn't obvious to me. Now for the problem. The log says: 2007-01-12 13:35:49,096 Trac[api] DEBUG: Trying to render HTML preview using PHPRenderer 2007-01-12 13:35:49,097 Trac[php] DEBUG: PHP command line: /usr/bin/php -sn 2007-01-12 13:35:49,118 Trac[api] WARNING: HTML preview using <trac.mimeview.php.PHPRenderer object at 0x2a9efd4b10> failed (You appear to be using the PHP CGI binary. Trac requires the CLI version for syntax highlighting.) But I have: $ file /usr/bin/php /usr/bin/php: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped $ /usr/bin/php --version PHP 4.3.9 (cgi) (built: Nov 7 2006 09:14:36) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies Doing some additional debugging, the output does indeed begin with: X-Powered-By: PHP/4.3.9 I wrote a simple test.php file and got: $ cat test.php <?php echo "xxxx\n"; ?> and got: $ php test.php Content-type: text/html X-Powered-By: PHP/4.3.9 Set-Cookie: PHPSESSID=c6820bce77563a5b2bbe51cf033ced83; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache xxxx ------ Running on another system: $ php test.php xxx $ php --version PHP 5.0.3 (cli) (built: Jan 22 2005 23:31:04) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies So it appears that the problem is not, as the error message above says I'm using a PHP CGI binary, but merely a version of php that is too old. I don't know when the behavior changed. Perhaps with 5.0. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
