local php issue?

Discussion in 'Mac Basics and Help' started by ggulliver, May 16, 2010.

  1. ggulliver macrumors member

    Joined:
    Jan 22, 2008
    #1
    I've an issue whereby php doesn't appear to be handled correctly by Apache:

    1 KavaTunes displays directory listings rather than the php pages.
    2 When trying to view BBEdit-prepared php pages for my websites (which serve fine from the web), Firefox/Safari display them as text rather than processing the php.
     
  2. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #2
    Have you enabled PHP? It comes preinstalled with Mac OS X, but it's not enabled by default.
     
  3. ggulliver thread starter macrumors member

    Joined:
    Jan 22, 2008
    #3
    Yes - at least I think so.

    From memory, the /etc/apache2/httpd.conf file already had 'LoadModule php5_module libexec/apache2/libphp5.so'.

    Much of this may simply be my misunderstanding things - and thinking they should work differently.

    A phpinfo test file in user/Sites/ processes ok, and although I seem to recall earlier versions of BBedit working differently on earlier versions of OSX, maybe things got changed with the various updates and don't work as expected.
     
  4. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #4
    Double-check to make sure that it's uncommented (that there's no # at the beginning of the line).
     
  5. ggulliver thread starter macrumors member

    Joined:
    Jan 22, 2008
  6. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
  7. ggulliver thread starter macrumors member

    Joined:
    Jan 22, 2008
    #7
    I'm not sure.
    It's more a case of I think things are as they should be, but don't have enough knowledge to be certain.
     
  8. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #8
    So PHP pages are still not displaying correctly? The offending files have the extension .php? What version of Mac OS X are you running?
     

Share This Page