[MacPorts] #17839: php5: Newlines showing as "\n" in Apache error log

MacPorts noreply at macports.org
Wed Jan 28 15:31:25 PST 2009


#17839: php5: Newlines showing as "\n" in Apache error log
----------------------------------------+-----------------------------------
  Reporter:  simon@…                    |       Owner:  ryandesign@…             
      Type:  defect                     |      Status:  closed                   
  Priority:  Normal                     |   Milestone:  Port Bugs                
 Component:  ports                      |     Version:  1.7.0                    
Resolution:  invalid                    |    Keywords:  php5, error log, newlines
      Port:  php5                       |  
----------------------------------------+-----------------------------------

Comment(by ryandesign@…):

 PHP seems to either write to the error_log if one is set and it can write
 to it, otherwise it writes to the Apache error log. I can't find a way to
 make it write to both. So since it's writing to the Apache error log even
 though you're telling it to write elsewhere, it must be unable to write to
 the logfile you've given it. Check that the php.log has www as the owner
 and group, that it is writable, and that all the intermediate directories
 are at least executable by the www user. This is not usually the case --
 on my systems, /Users/*/Library has 0700 permissions, meaning only the
 owner is allowed to look inside. If you want everyone including php/apache
 to be able to look inside, it will need 0755 permissions. Same goes for
 the Logs directory inside.

-- 
Ticket URL: <http://trac.macports.org/ticket/17839#comment:7>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list