Results 1 to 4 of 4
  1. #1

    Member Since
    Jan 07, 2008
    Getting PHP to work on Leopard
    Hi Guys,

    Having a problem, i have a G5 iMac in work which has been updated to Leopard from Tiger, i do abit of web development so i decided to install PHP. Having done a bit of research i found that PHP is pre-installed and just needs to be "activated" by un-commenting it out of the httpd.conf file and adding 2 addtypes (Upgrade).

    All this worked perfert and i have PHP fully functional on my work machine, the problem is i got a New MacBook a few weeks ago and i decided to do the same on this machine. The MacBook came pre-installed with Leopard so i followed the same steps as i did with my work machine, i opened terminal, used the command:

    sudo pico /etc/apache2/https.conf

    Un-commented out the php module and saved the file, when i restarted my webserver from sharing, php does not work.

    So, i decided to add the addtypes also even though they should not be needed on a full leopard install just to see if it would work but still no joy.

    When i launch my webserver, html works fine, but when i try to open my test.php file, i just get the text in the file on the screen, e.g.




    Instead of getting the full breakdown that phpinfo usually gives thus meaning it is not parsing at all.

    Anyone any ideas?? Your help would be greatly appreciated.

    MacBook Mac OS X (10.5.1)

  2. #2

    Member Since
    Dec 24, 2006
    N. Ireland
    Mac Pro 2xQuad core 2.8GHZ
    Install MAMP

  3. #3

    Member Since
    Oct 27, 2006
    What Del said, MAMP:

  4. #4

    Member Since
    Jan 07, 2008
    hi Guys,

    Thanks for the replys, its definitly something ill look into but its just really annoying me as to why i cant get it working nativly without the need to use 3rd Party Software.

    It works perfect on my work machine but it just wont work on the Macbook!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. PHP script doesn't work in sub-folders(permission issue?)
    By typhophoh in forum OS X - Operating System
    Replies: 0
    Last Post: 12-30-2011, 07:26 AM
  2. enabling PHP on leopard - problems
    By osbourne.cox in forum OS X - Development and Darwin
    Replies: 3
    Last Post: 12-27-2010, 04:42 PM
  3. can't work online without downloading php file
    By clorr in forum OS X - Apps and Games
    Replies: 1
    Last Post: 08-05-2010, 12:54 AM
  4. PHP mail(); won't work on XAMPP
    By r.mistry6 in forum Web Design and Hosting
    Replies: 2
    Last Post: 07-13-2009, 08:06 PM
  5. PHP email form won't work
    By reholmes in forum OS X - Operating System
    Replies: 0
    Last Post: 07-15-2007, 04:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts