Installing PHP on OSX
Hi,
When I develop sites, I do this locally and upload the changes I made to my SVN server. Then I deploy the new releases of the sites to the specific server directly from the SVN server by a checkout or an export.
For most of the projects, I work with PHP. Using a good tutorial I found (http://drewish.com/node/110) I re-compiled apache, mysql and Php on my computer… whithout any problems. BUT… some things were missing…
Currently I am working on a site which is using magento commerce. Magento commerce is a very advanced commerce tool and has quite som demands.
Two of the demands I was struggeling with were iconv and mcrypt. Today, I got these working.
This is what I did that I followed the tutorial until the “./configure …” part for PHP, then I did:
- I installed libiconv and mcrypt
sudo port install libticonv mcrypt
- I change the configuration to:
./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-apxs2=/usr/sbin/apxs --with-config-file-path=/private/etc --sysconfdir=/private/etc --enable-cli --with-curl=/opt/local --enable-ftp --enable-mbstring --enable-mbregex --enable-sockets --with-ldap=/usr --with-ldap-sasl --with-kerberos=/usr --with-mime-magic=/etc/apache2/magic --with-zlib-dir=/usr --with-xmlrpc --with-xsl=/usr --with-iconv=/opt/local --with-gd --with-png-dir=/usr/X11R6 --with-xpm-dir=/usr/X11R6 --with-jpeg-dir=/opt/local --enable-exif --with-freetype-dir=/opt/local --with-t1lib=/opt/local --enable-pdo --with-mysqli=/opt/local/bin/mysql_config5 --with-pdo-mysql=/opt/local/bin/mysql_config5 --with-mysql=/opt/local --with-mysql-sock=/opt/local/var/run/mysql5/mysqld.sock --with-mcrypt=/usr/local/php5
and then I continued with the make install according the tutorial.
Try it if you have any problems, it might work for you as well.
Regards,
Paul Peelen