Re: mac and mysql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 31 Aug 2004 15:38:59 -0700, michael <michael@xxxxxxxxxxxxx> wrote:
> Mac users, please forgive such a Windows-centric question, but I need your help. And you can educate me in the process. I am helping a student of mine set up a development environment with php, mysql, and a webserver, and she uses a Mac. Are there any installation issues unique to mac that I should warn her about?

OS X already has Apache 1.3 installed. All she has to do is turn on
web sharing. The DOCUMENT_ROOT is /Library/WebServer/Documents/. OS X
also comes with a precompiled version of PHP (with MySQL support
enabled). I forget which version at the moment, but it's somewhere
around 4.2. So the only thing left is the MySQL part. mysql.com has a
package installer for OS X. It's pretty painless to install. As long
as you read the install docs for OS X. It's all there. There are other
ways to install MySQL on OS X (manual compile, http://fink.sf.net/,
http://darwinports.opendarwin.org/ and a handfull of others), but they
require a little more effort than the packaged version at mysql.com.
http:/www.entropy.ch used to maintain the OS X version of MySQL and
Marc still has documentation on how to set everything up (he also has
precompiled version of PHP for OS X users as well).
> 
> Can you recommend a simple web server - she is brand new to server-side work and I am trying to make this as painless as possible. Usually I recommend that students use Xitami, but I don't believe it comes in a Mac flavor. Does the Mac OS come with a server, such as IIS on Windows? Does Apache work well with Mac? Is there anything simpler?
> 
> And here's a question I've never thought about. If she installs MySQL on a Mac, and she wants to admin the server through a command line --- does Mac have a command line tool to work with? Typically, when you think command line you think of the old dos prompt. What does the Mac have that will give us command line access?

Funny, when I think of 'command line' I think of UNIX. Interesting.
Oh, OS X is UNIX based by the way... look in /Applications/Utilities/
and you'll find your 'Terminal' app for all your command line needs.
You may need to add the location of the `mysql` binary to your $PATH 
(unless you want to type /usr/local/mysql/bin/mysql everytime you want
to use the command line).

> 
> Again, please excuse my ignorance, but here is an opp to educate those of us stuck in a MS POV. Thank you in advance.

NP. Hope this helps.

> 
> Michael

-- 
randy sesser@xxxxxxxxx

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux