View previous topic :: View next topic |
Author |
Message |
canuckid Guest
|
Posted: Wed Jun 07, 2006 9:15 pm Post subject: mysql on mac |
|
|
can someone point me in the right direction of how to install mysql on mac os x? i've got php installed, but i can never figure out how to install sql... i hope i don't have to switch back to apache.. **shudders** |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Wed Jun 07, 2006 9:56 pm Post subject: |
|
|
Download the DMG Image from:
http://dev.mysql.com/downloads/mysql/4.1.html
Install MySQL using the DMG Image you downloaded. Now download the PHP5
source package from www.php.net
Double click the tar.gz source file to empty the contents. Browse to this newly
created folder from the command line and run the following command to build
PHP5 in your /Applications folder.
Quote: | ./configure --prefix=/Applications/PHP5 --with-curl --with-zlib --with-mysql=/usr/local/mysql --enable-mbstring --enable-fastcgi
make install |
Edit: The "make install" command has been added
Now once PHP5 is built, you can follow the Windows phpMyAdmin tutorial for
configuring your MySQL settings. Hope this helps.
phpMyAdmin Tutorial:
http://www.trustabyss.com/pma_install.html
Note: You need the Xcode (Developer Tools) to build PHP5.
Sincerely, TRUSTAbyss
Last edited by TRUSTAbyss on Thu Oct 26, 2006 10:19 pm; edited 1 time in total |
|
Back to top |
|
|
canuckid Guest
|
Posted: Fri Jun 09, 2006 12:43 am Post subject: |
|
|
TRUSTAbyss wrote: | Download the DMG Image from:
http://dev.mysql.com/downloads/mysql/4.1.html
Install MySQL using the DMG Image you downloaded. Now download the PHP5
source package from www.php.net
Double click the tar.gz source file to empty the contents. Browse to this newly
created folder from the command line and run the following command to build
PHP5 in your /Applications folder.
Quote: | ./configure --prefix=/Applications/PHP5 --with-curl --with-zlib --with-mysql=/usr/local/mysql --enable-mbstring --enable-fastcgi |
Now once PHP5 is built, you can follow the Windows phpMyAdmin tutorial for
configuring your MySQL settings. Hope this helps.
phpMyAdmin Tutorial:
http://www.trustabyss.com/pma_install.html
Note: You need the Xcode (Developer Tools) to build PHP5.
Sincerely, TRUSTAbyss |
thanks for the tut!
peace,
canuckid |
|
Back to top |
|
|
canuckid Guest
|
Posted: Fri Jun 09, 2006 12:45 am Post subject: |
|
|
wait, i have a question.
when i set up php in the abyss control panel, do i select fastcgi? |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Fri Jun 09, 2006 3:55 am Post subject: |
|
|
No, it can be CGI/FastCGI. I provided the --enable-fastcgi so that you can
compile PHP for FastCGI support. Enjoy Abyss Web Server! :-) |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Jun 09, 2006 12:25 pm Post subject: |
|
|
canuckid wrote: | wait, i have a question.
when i set up php in the abyss control panel, do i select fastcgi? |
If you have compiled PHP, skip "Download and install PHP" in http://www.aprelium.com/abyssws/php.html#mac and follow the rest of the instructions. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
nsb -
Joined: 25 Oct 2006 Posts: 4
|
Posted: Wed Oct 25, 2006 4:21 pm Post subject: |
|
|
I'm trying to get Abyss going on an Mac mini, and followed the directions above, but when I get to this step, I'm not seing a /bin folder or a php to set the inteperator to.
I am very new to OS X, but have been using Abyss for a while on a PC (which I'm trying to get away from).
Thanks for any guidence. |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Wed Oct 25, 2006 9:10 pm Post subject: |
|
|
Hi NSB,
Read my small tutorial at the top to install PHP. After you've done what I posted
at the top, you can read Aprelium's tutorial. I run a "Mac OS X" Server. |
|
Back to top |
|
|
nsb -
Joined: 25 Oct 2006 Posts: 4
|
Posted: Wed Oct 25, 2006 9:25 pm Post subject: |
|
|
Actually I did, but where I run into the problem is after:
Quote: | /configure --prefix=/Applications/PHP5 --with-curl --with-zlib --with-mysql=/usr/local/mysql --enable-mbstring --enable-fastcgi |
but I get to the step of setting up the interpreter in abyss, I'm not seeing a /bin folder or a php to set the interpreter to.
what did I mess up? :) |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Wed Oct 25, 2006 10:30 pm Post subject: |
|
|
The PHP folder location on your Mac will be in "/Applications". Make sure you
have "X Code Tools" installed before you compile PHP. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Oct 26, 2006 9:12 am Post subject: |
|
|
nsb wrote: | Actually I did, but where I run into the problem is after:
Quote: | /configure --prefix=/Applications/PHP5 --with-curl --with-zlib --with-mysql=/usr/local/mysql --enable-mbstring --enable-fastcgi |
but I get to the step of setting up the interpreter in abyss, I'm not seeing a /bin folder or a php to set the interpreter to.
what did I mess up? :) |
After calling configure, you'll have to build PHP. For that, execute:
_________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
nsb -
Joined: 25 Oct 2006 Posts: 4
|
Posted: Thu Oct 26, 2006 3:15 pm Post subject: |
|
|
Quote: | After calling configure, you'll have to build PHP. For that, execute:
|
Thank you! That was what I was missing. As I think I mentioned, I've very new to Mac's and OS X, but I'm quickly liking it more than the nasty PC's I work on day in and day out :) |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Thu Oct 26, 2006 10:16 pm Post subject: |
|
|
Sorry NSB, I forgot to tell you "make install", I was extremely tired the night I
wrote that. My apologies to you. |
|
Back to top |
|
|
nsb -
Joined: 25 Oct 2006 Posts: 4
|
Posted: Thu Oct 26, 2006 10:27 pm Post subject: |
|
|
TRUSTAbyss wrote: | Sorry NSB, I forgot to tell you "make install", I was extremely tired the night I
wrote that. My apologies to you. |
No problem, just hate being the newbie /w OS X, but now that I have a personal mac, maybe I'll be able to pick up a bit quicker... I've used pc's since the days of DOS 3.1, through Windows 3.0 to XP.
Thanks again for the help! |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Thu Oct 26, 2006 10:36 pm Post subject: |
|
|
There's a "Free VMware Server" available at www.vmware.com that you can
download. I'm using it to help me learn more about Linux.
Note: You don't need IIS to use it when it asks that you need IIS. Just hit
the Custom option and uncheck the "Server Management" option. |
|
Back to top |
|
|
|