Yes, NEWBIE WARNING!
K, I dont know where I fell off the bus, but I got nothing. I am on a G5 running OSX 10.3.9 and I am trying to learn me some PHP. Well, I know that mac's come with some form of a local sever already on them, but I have to do some setting up for PHP and mySQL... I have read some sites, downloaded some files and still to no aval, got myself no closer to figuring out where I am going wrong and what I need to do to begin understanding the "setup process" for this! So, please, no jokes, if you would please either point me in the correct directions, things I may have missed, a install PHP for dummies pictorial.. you know what im saying!
Thanx,
woody!
Setting up PHP on my Mac
Moderator: General Moderators
http://www.mamp.info/en/index.php. Works perfect. One click install and you have php4, 5, mysql, phpmyadmin, etc.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
I never got Mampp working. It always refused to start apache. Easy(ish) way:matthijs wrote:http://www.mamp.info/en/index.php. Works perfect. One click install and you have php4, 5, mysql, phpmyadmin, etc.
1. Download MySQL-Max binary edition for OS X, Installing this is easy since it's GUI-based
2. Download Apache2 (source code) and extract it
3. Go to apache2 source folder and run command:
Code: Select all
-$ ./configure --prefix=/usr/local/apache2 --enable-mods=ALL
-$ make && make install5. Download PHP source code and extract it
6. Go to PHP source directory and run:
Code: Select all
-$ ./configure --prefix=/usr/local/php5 --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs
-$ make && make installCode: Select all
AddType application/x-httpd-php .php9. Restart apache
Code: Select all
-$ /usr/local/apache2/bin/apachectl stop
-$ /usr/local/apache2/bin/apachectl start(Actually i never thought about just how many steps there are there. Basically just compile from source in the order MySQL, Apache, PHP. Place everything in /usr/local/<app> because it's easier to get rid of this way).
Also, take a look at http://www.phpmac.com/
Well installing on MacBook and MacBook Pro both were without problems. But your explanation doesn't look too difficult. If it's really only these steps it's easy(ish). I have read much much longer tutorials explaining the installation process. Not being familiar with the command line (yet) I always found that a bit intimidating. But maybe that is a gut feeling remaining from my windows experience. Anything that can potentially screw up the system will... 
(maybe I'll try a manual install with your explanation as well)
(maybe I'll try a manual install with your explanation as well)