Apache, PHP, MySQL?

Discussion in 'Mac Apps and Mac App Store' started by Joe Bannon, Jan 23, 2008.

  1. Joe Bannon macrumors regular

    Joined:
    Jan 7, 2008
    Location:
    Dallas, Texas
    #1
    Does my Mac already have these installed? Or do I need to install them myself?
     
  2. w0ngbr4d macrumors regular

    Joined:
    Jan 10, 2006
    Location:
    Findlay, OH
    #2
    Apache and PHP are already installed.

    PHP is turned off by default. To turn it on, check the following link:
    http://clickontyler.com/blog/2007/10/how-to-enable-php5-in-mac-os-x-leopard/

    To turn on apache, go to System Prefrences, Sharing, check the Web Sharing box and you're all set.

    To install mysql server, check the following link (assumes that you have the Developer tools and you compile from source):
    http://hivelogic.com/articles/installing-mysql-on-mac-os-x/

    You should be good to go. I just set the above up about a week ago following those steps.
     
  3. GNice macrumors 6502

    Joined:
    Aug 7, 2007
    #3
  4. Joe Bannon thread starter macrumors regular

    Joined:
    Jan 7, 2008
    Location:
    Dallas, Texas
    #4

    Thanks, I'll try it out. Another question.... when I use PHP, will the mail() function work and send emails, or do I need to do something else?
     
  5. w0ngbr4d macrumors regular

    Joined:
    Jan 10, 2006
    Location:
    Findlay, OH
    #5
    From the PHP page:

    http://us3.php.net/mail

    "For the Mail functions to be available, PHP must have access to the sendmail binary on your system during compile time. If you use another mail program, such as qmail or postfix, be sure to use the appropriate sendmail wrappers that come with them. PHP will first look for sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib. It's highly recommended to have sendmail available from your PATH. Also, the user that compiled PHP must have permission to access the sendmail binary."

    I haven't tried it with the current setup, but it should work. I'd give it a shot and see what happens.
     
  6. Joe Bannon thread starter macrumors regular

    Joined:
    Jan 7, 2008
    Location:
    Dallas, Texas
    #6

    Will do.
     
  7. Joe Bannon thread starter macrumors regular

    Joined:
    Jan 7, 2008
    Location:
    Dallas, Texas
    #7


    I turned it on and it works. Is there a hide feature on the mac osx that hides files because I can't find the httpd.conf file.
     
  8. Joe Bannon thread starter macrumors regular

    Joined:
    Jan 7, 2008
    Location:
    Dallas, Texas

Share This Page