PDA

View Full Version : PHP, MySQL and Apache




rph105
Nov 28, 2007, 08:42 PM
ok got these tutorial videos on essential php, so im tryna learn it, only problem is, they are using panther 10.3, i am using leopard 10.5, so i dnt know how to install php, mySQL and apache server for leopard. i dnt even know how to test if its working, if anyone could help, please, it would be appreciated

Thanks in advance



iKernel
Nov 29, 2007, 01:23 AM
PHP5 & apache2.0 web server are by default installed on the MAC 10.5 Leopard. You can test it typing in the link http://localhost/ in ur web browser & it will show you the apache test page. For PHP u need to create one file test.php & type in it the code given below:
<?php
phpinfo();
?>
& save it in the path given on the apeche test page. You can test whether php is insatalled using link http://localhost/test.php & it will give u the info about php version installed & details about it.

MySQL - you should insatall it by downloading the appropriate installer for ur system from the website mysql.com & configure it according to the instructions given there.

You can also check this http://entropy.ch/software/macosx/php

angelwatt
Nov 29, 2007, 07:53 AM
Mamp is the easiest route. (http://www.mamp.info/en/mamp.html)

Photomax
Nov 29, 2007, 11:04 AM
Chapter two of the book "Blog Design Solutions" does a great job of explaining how to create a local test environment on your Mac.

Some folks have good luck with Mamp (combined PHPP and SQL) and Locomotive (combined Ruby install) but depending on what you are doing its better to download the fresh components separately.