Results 1 to 4 of 4
  1. #1


    Member Since
    May 19, 2010
    Posts
    2
    Php installation
    Hi Everyone,

    I am trying to setup php on my mac but having problems with it.
    As directed by few websites i have edited the httpd.conf file and removed the hash symbol before the Loadmodule php part.

    I have also followed the step of copying the contents of php.ini.default to php.ini files.

    For testing to see if the Apache service runs i am typing http://localhost and it says it works.

    However when i am trying to see if php is working by using the phpinfo() and saving it in Macintosh HD:Library:WebServerocuments and then running the file by typing http://localhost/test.php the browser shows me whatever i am typing the test.php file that is the phpinfo method

    Can someone please suggest me how to get php installed on my mac? Thanks a lot in advance

  2. #2

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Sounds like you've done everything right except for one part - restarting Apache. Simply turn off and turn back on web sharing in System Preferences and you should be good to go. Does that solve your problem?
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  3. #3


    Member Since
    May 19, 2010
    Posts
    2
    Yes it did. Thanks a lot. Really appreciate it.

  4. #4

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    There is no need to install MAMP or XAMPP when PHP and Apache are already installed on your machine. Doing so would be redundant. While it might be easier if you need MySQL, I would suggest that you install MySQL yourself - you'll learn more and it will be easier to update (ie. you won't have to wait for the MAMP/XAMPP team and you can upgrade parts of your install without having to do the whole thing). Do you even need MySQL?
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. PHP with OS X
    By Yodda_Hunter in forum OS X - Apps and Games
    Replies: 4
    Last Post: 12-30-2013, 10:39 AM
  2. windows 7 installation hangs on 'completing installation' in boot camp
    By nickharambee in forum Running Windows (or anything else) on your Mac
    Replies: 4
    Last Post: 08-31-2012, 08:14 PM
  3. PHP Help
    By JoeyRamoneLives in forum Web Design and Hosting
    Replies: 2
    Last Post: 04-26-2005, 10:01 PM
  4. Setting up PHP and PHP Nuke
    By EvoMac in forum Web Design and Hosting
    Replies: 2
    Last Post: 02-18-2005, 12:38 PM
  5. Php
    By vtupser in forum Web Design and Hosting
    Replies: 5
    Last Post: 02-16-2005, 03:36 AM

Posting Permissions

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