Separate names with a comma.
Discussion in 'Mac Apps and Mac App Store' started by Joe Bannon, Jan 23, 2008.
Does my Mac already have these installed? Or do I need to install them myself?
Apache and PHP are already installed.
PHP is turned off by default. To turn it on, check the following link:
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):
You should be good to go. I just set the above up about a week ago following those steps.
Take a look at MAMP...don't have to have it to get the tools, but it put's a nice "package" around the stack:
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?
From the PHP page:
"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.
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.
Nevermind, I used BBedit to open it.