[PHP-DB] mac and mysql

2004-08-31 Thread michael
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?

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?

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

Michael

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



Re: [PHP-DB] mac and mysql

2004-08-31 Thread randy
On Tue, 31 Aug 2004 15:38:59 -0700, michael [EMAIL PROTECTED] 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 [EMAIL PROTECTED]

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



Re: [PHP-DB] mac and mysql

2004-08-31 Thread Larry E . Ullman
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?
It makes a HUGE difference whether we're talking about OS 9 or OS X 
(10). I don't know if MySQL even runs on OS 9 and PHP does, but by 
purchasing the $500 WebTen. They both run on Mac OS X easily and 
installers are freely available (www.mysql.com, www.entropy.ch, 
www.serverlogistics.com).

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?
Mac OS X has Apache built in. The PHP installer available at 
www.entropy.ch works with that installation. Again, for OS 9, WebTen is 
the only solution I know of that can handle PHP.

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?
OS 9 does NOT have a command prompt but OS X does, accessible through 
Applications  Utilities  Terminal.

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