April 13th, 2007
Setting up Apache 2, Mysql 5.0, PHP 5 on OS X
Posted by
Administrator in
Observations | Edit
I.Apache
httpd-2.2.4.tar.gz
(You will need xcode developer tools installed to avoid having error when compiling apache, cd comes allow with your mac machine)
PREFIX is where you want apache to be installed
II. Mysql
Download Mysql
in ~/.profile
update PATH:
:/usr/local/mysql/bin/
III. PHP
download: PHP
Inside your php folder(/usr/local/src/php-5.2.1) run:
./configure—prefix=/usr/local/php5—with-apxs2=/usr/local/bin/apxs—with-mysql=/usr/local/mysql
make
make install
Reconfigure Apache to include PHP (add to /usr/local/conf/httpd.conf)
update PATH:
:/usr/local/php5/bin/
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phpsLoadModule php5_module modules/libphp5.so