Skip to content

Commit

Permalink
Added Suhosin patch
Browse files Browse the repository at this point in the history
  • Loading branch information
stealth35 committed Aug 26, 2011
1 parent 640d2f3 commit 400a5f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion _posts/2011-08-18-install-php-5-3-7-on-osx-lion.html
Expand Up @@ -3,14 +3,17 @@
title: Install PHP 5.3.7 on OS X Lion
---

<p>First you need to install <a href="http://www.ijg.org/">libjpeg</a> and <a href="http://www.libpng.org/pub/png/libpng.html">libpng</a></p>
<p>First you need to install <a href="http://www.ijg.org/">libjpeg</a>, <a href="http://www.libpng.org/pub/png/libpng.html">libpng</a> and download/extract the <a href="http://www.hardened-php.net/suhosin/download.html">Suhosin path</a></p>
<br />
<p>Install command :</p>
{% highlight bash %}
export MACOSX_DEPLOYMENT_TARGET=10.7
export CFLAGS="-arch x86_64"
export CXXFLAGS="-arch x86_64"

cd php-5.3.7
patch -p 1 -i ../suhosin-patch-5.3.7-0.9.10.patch

./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --sysconfdir=/private/etc --with-apxs2=/usr/sbin/apxs --enable-cli --with-config-file-path=/etc --with-libxml-dir=/usr --with-openssl=/usr --with-kerberos=/usr --with-zlib=/usr --enable-bcmath --with-bz2=/usr --enable-calendar --with-curl=/usr --enable-dba --enable-exif --enable-ftp --with-gd --with-freetype-dir=/Developer/SDKs/MacOSX10.7.sdk/usr/X11 --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --enable-gd-native-ttf --with-iodbc=/usr --with-ldap=/usr --with-ldap-sasl=/usr --with-libedit=/usr --enable-mbstring --enable-mbregex --with-mysql=mysqlnd --with-mysqli=mysqlnd --without-pear --with-pdo-mysql=mysqlnd --with-mysql-sock=/var/mysql/mysql.sock --with-readline=/usr --enable-shmop --with-snmp=/usr --enable-soap --enable-sockets --enable-sqlite-utf8 --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-tidy --enable-wddx --with-xmlrpc --with-iconv-dir=/usr --with-xsl=/usr --enable-zend-multibyte --enable-zip --with-pcre-regex --with-pgsql=/usr --with-pdo-pgsql=/usr
make
sudo make install
Expand Down

0 comments on commit 400a5f2

Please sign in to comment.