Php server problem

Discussion in 'Mac Programming' started by ellias2007, May 16, 2010.

  1. ellias2007 macrumors newbie

    Jan 26, 2009
    Hi every body...
    in order to lauche the file i wrote in php code, i put it in my "sites" folder and try to open it with Safari...
    My problem that Safari shows the php CODE and not the final rendered page...
    ok , i know that in this case the Php web server is not running the code...
    But How to fix this problem and enable the php server ???
    NOTE : This Problem occurs when i upgrade from OSX10.5 to 10.6 (i had no such problem under 10.5!)
    Thanks for any help
  2. angelwatt Moderator emeritus


    Aug 16, 2005
  3. omatgamna macrumors newbie

    May 17, 2010
    enable PHP

    uncomment this line in /etc/apache2/httpd.conf:

    #LoadModule php5_module libexec/apache2/libphp5
    Or run the entropy php installer.

Share This Page