note 89245 deleted from install.macosx.client by danbrown
| From: | danbrown@php.net | Date: | Fri, 28 Jan 2011 14:31:45 +0000 |
| Subject: | note 89245 deleted from install.macosx.client by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-176433@lists.php.net to get a copy of this message | ||
Note Submitter: nabaja at gmx dot com
----
I wanted to update my iMac (osx 10.5.6) from php 5.2.3 to 5.2.9 . I downloaded the source from this
site, tried to install with some changes and screwed up my php. Come to find out that you need to
use the ./configure command to set everything up JUST RIGHT for you computer. i ran this command in
the terminal window while in the unzipped php-5.2.9 directory:
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man
--infodir=/usr/share/info --with-apxs2=/usr/sbin/apxs --with-curl --with-gd --enable-exif
--enable-fastcgi --enable-zip --with-ldap=/usr --with-kerberos=/usr --with-zlib=/usr --enable-ftp
--enable-sockets --with-iodbc=/usr --with-config-file-path=/etc --with-openssl --with-xmlrpc
--with-xsl=/usr
make
sudo make install (then type your pw)
you can change the settings, but you'd better get it right!
mysql settings:
--with-mysql=/usr/local/mysql --with-mysql-sock=/var/mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config
also, you can check out the apple developers site, that helped me.
if your apache server gets screwed up, use the note above to reinstall apache2, then install php,
everything should work fine, it did for me.