| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 11 Jan 2026 20:51:52 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100305055840
location: https://web.archive.org/web/20100305055840/https://php52.darwinports.com/
server-timing: captures_list;dur=0.650756, exclusion.robots;dur=0.049806, exclusion.robots.policy;dur=0.034784, esindex;dur=0.011702, cdx.remote;dur=6.625968, LoadShardBlock;dur=317.895131, PetaboxLoader3.datanode;dur=78.326253, PetaboxLoader3.resolve;dur=47.812364
x-app-server: wwwb-app219-dc8
x-ts: 302
x-tr: 357
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app219; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 11 Jan 2026 20:51:53 GMT
content-type: text/html
x-archive-orig-date: Fri, 05 Mar 2010 05:41:26 GMT
x-archive-orig-server: Apache
x-archive-orig-vary: Accept-Encoding
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: iso-8859-1
memento-datetime: Fri, 05 Mar 2010 05:58:40 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_14_20100304225140_crawl101-c/51_14_20100305055821_crawl103.arc.gz
server-timing: captures_list;dur=0.763939, exclusion.robots;dur=0.027373, exclusion.robots.policy;dur=0.011679, esindex;dur=0.016482, cdx.remote;dur=35.787478, LoadShardBlock;dur=182.310970, PetaboxLoader3.datanode;dur=239.334795, PetaboxLoader3.resolve;dur=110.756940, load_resource;dur=257.763363
x-app-server: wwwb-app219-dc8
x-ts: 200
x-tr: 557
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Php52 version 5.2.11 - How to Download and Install on Mac OS X
|
|||||||||
Thursday the 4th of March, 2010 |
|||||||||
php52 most recent diffversion 5.2.11
Scroll down toward the bottom of the page to get installation instructions for php52. The raw portfile for php52 5.2.11 is located here: https://php52.darwinports.com/dports/lang/php52/Portfile Find related portfiles with the unique DarwinPorts.com search feature. Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/php52 The php52 Portfile 59698 2009-10-20 09:10:22Z ryandesign PortSystem 1.0 Name: php52 conflicts php5 php5-devel Version: 5.2.11 Revision: 1 set major [lindex [split ${version} .] 0] set my_name php${major} dist_subdir ${my_name} Category: lang php www Maintainers: ryandesign jwa Homepage: https://www.php.net/ Master Sites: php distname php-${version} use_bzip2 yes Platform: darwin freebsd use_parallel_build yes Description: PHP: Hypertext Preprocessor Long Description: PHP is a widely-used general-purpose scripting language that is especially suited for developing web sites, but can also be used for command-line scripting. Checksums: [suffix ${distname}] md5 286bf34630f5643c25ebcedfec5e0a09 sha1 819c853ce657ef260d4a73b5a21f961115b97eef rmd160 6aad53dee864ab89f794a9d3c2aa32d435ed5654 depends_build port:pkgconfig port:autoconf213 depends_lib path:bin/gsed:gsed port:libtool port:libxml2 port:libxslt port:openssl port:zlib port:bzip2 port:libiconv port:expat port:gettext port:tiff port:mhash port:libmcrypt port:curl port:pcre port:jpeg port:libpng port:freetype # Use -p1 to accommodate the Suhosin patch patch.pre_args -p1 Patch Files: patch-scripts-php-config.in.diff patch-bind.diff use_autoconf yes autoconf.cmd ${prefix}/bin/autoconf213 set phpinidir ${prefix}/etc/${my_name} set extraphpinidir ${prefix}/var/db/${my_name} destroot.keepdirs ${destroot}${extraphpinidir} configure.args --mandir=${prefix}/share/man --infodir=${prefix}/share/info --with-config-file-path=${phpinidir} --with-config-file-scan-dir=${extraphpinidir} --enable-calendar --with-iconv=${prefix} --enable-exif --enable-ftp --enable-wddx --with-zlib=${prefix} --with-bz2=${prefix} --without-mysql --without-sqlite --without-pdo-sqlite --with-libxml-dir=${prefix} --with-gettext=${prefix} --with-libexpat-dir=${prefix} --with-xmlrpc --enable-soap --enable-bcmath --enable-mbstring --enable-dba --enable-zip --with-openssl=${prefix} --with-mhash=${prefix} --with-mcrypt=${prefix} --with-mime-magic --with-xsl=${prefix} --with-curl=${prefix} --with-pcre-regex=${prefix} --with-gd --with-jpeg-dir=${prefix} --with-png-dir=${prefix} --enable-gd-native-ttf --without-pear --with-freetype-dir=${prefix} configure.universal_args-delete --disable-dependency-tracking platform darwin 10 { configure.env-append LIBS=-lresolv } platform macosx { configure.args-append --with-ldap=/usr --with-kerberos=/usr --with-iodbc=/usr } Variant: no_web conflicts apache apache2 fastcgi description {Don't include any web server support} {} # Build an Apache 1 module. On Mac OS X, it uses Apple's provided Apache 1 server. # On other platforms, the MacPorts apache port is used. Keep the options here # in sync with those in the relevant part of the post-destroot phase. Variant: apache conflicts apache2 no_web description {Add Apache 1 web server module} { if { ! [variant_isset macosx] } { depends_lib-append port:apache configure.args-append --with-apxs=${prefix}/sbin/apxs } else { destroot.violate_mtree yes configure.args-append --with-apxs=/usr/sbin/apxs } } # Build an Apache 2.2 module. Keep the options here in sync with those in the # relevant part of the post-destroot phase. Variant: apache2 conflicts apache no_web description {Add Apache 2.2 web server module} { pre-extract { # Checking for mod_cgi.so is a convenient way to verify apache2 is using its # +preforkmpm variant. (+eventmpm and +workermpm instead provide mod_cgid.so.) if {![file exists ${prefix}/apache2/modules/mod_cgi.so]} { ui_error "To use ${name} with the +apache2 variant, apache2 must be installed with the +preforkmpm variant." return -code error "incompatible apache2 installation" } } destroot.violate_mtree yes depends_lib-append port:apache2 configure.args-append --with-apxs2=${prefix}/apache2/bin/apxs } # Build a FastCGI binary. Keep the options here in sync with those in the # relevant part of the post-destroot phase. Variant: fastcgi conflicts no_web description {Add FastCGI web server binary} { if { ![variant_isset apache] && ![variant_isset apache2] } { configure.args-append --enable-fastcgi --enable-force-cgi-redirect } } Variant: gmp description {Add GNU MP multiprocessing functions} { depends_lib-append port:gmp configure.args-append --with-gmp=${prefix} } Variant: dbase description {Add dBase file format support} { configure.args-append --enable-dbase } Variant: imap description {Add IMAP protocol support} { depends_lib-append port:cclient configure.args-append --with-imap=${prefix} --with-imap-ssl=${prefix} } Variant: pspell description {Add pspell spell-checking functions} { depends_lib-append port:aspell configure.args-append --with-pspell=${prefix} } Variant: tidy description {Add Tidy support} { depends_lib-append port:tidy configure.args-append --with-tidy=${prefix} } Variant: mssql description {Add MS-SQL server support} { depends_lib-append port:freetds configure.args-append --with-mssql=${prefix} --with-pdo-dblib=${prefix} # See https://bugs.php.net/bug.php?id=44991 post-patch { reinplace "s|tds.h|sybdb.h|g" ${worksrcpath}/ext/mssql/config.m4 reinplace "s|libtds.a|libsybdb.a|g" ${worksrcpath}/ext/mssql/config.m4 reinplace "s|libtds.so|libsybdb.dylib|g" ${worksrcpath}/ext/mssql/config.m4 } } Variant: snmp conflicts macports_snmp description {Add SNMP support using Apple SNMP} { # This compiles PHP5 with SNMP linked against Apple's included NET-SNMP. configure.args-append --with-snmp=/usr } Variant: macports_snmp conflicts snmp description {Add SNMP support using MacPorts SNMP} { # This compiles PHP with SNMP linked against MacPorts' NET-SNMP. depends_lib-append port:net-snmp configure.args-append --with-snmp=${prefix} } Variant: mysql4 conflicts mysql5 description {Add MySQL 4 support} { depends_lib-append port:mysql4 configure.args-delete --without-mysql configure.args-append --with-mysql=${prefix} --with-pdo-mysql=${prefix} } Variant: mysql5 conflicts mysql4 description {Add MySQL 5 support} { depends_lib-append path:bin/mysql_config5:mysql5 configure.args-delete --without-mysql configure.args-append --with-mysql=${workpath}/mysql5 --with-pdo-mysql=${prefix}/bin/mysql_config5 --with-mysql-sock=${prefix}/var/run/mysql5/mysqld.sock --with-mysqli=${prefix}/bin/mysql_config5 post-extract { file mkdir "${workpath}/mysql5" file link -symbolic "${workpath}/mysql5/lib" "${prefix}/lib/mysql5" file link -symbolic "${workpath}/mysql5/include" "${prefix}/include/mysql5" } } Variant: oracle description {Add Oracle oci8 database functions with the Oracle Instant Client} { patchfiles-append patch-ext-pdo_oci-config.m4.diff depends_lib-append port:oracle-instantclient configure.args-append --with-oci8=instantclient,${prefix}/lib/oracle --with-pdo-oci=instantclient,${prefix}/lib/oracle,10.1 } Variant: postgresql82 conflicts postgresql83 description {Add postgresql82 support} { depends_lib-append port:postgresql82 configure.args-append --with-pgsql=${prefix}/lib/postgresql82/bin --with-pdo-pgsql=${prefix}/lib/postgresql82/bin } Variant: postgresql83 conflicts postgresql82 description {Add postgresql83 support} { depends_lib-append port:postgresql83 configure.args-append --with-pgsql=${prefix}/lib/postgresql83/bin --with-pdo-pgsql=${prefix}/lib/postgresql83/bin } # note that standard sqlite support uses the built-in sqlite2 libraries # while pdo sqlite support uses the sqlite3 libraries from the sqlite3 port Variant: sqlite description {Add SQLite support} { depends_lib-append port:sqlite3 configure.args-delete --without-sqlite --without-pdo-sqlite configure.args-append --with-sqlite --with-pdo-sqlite=${prefix} --enable-sqlite-utf8 } Variant: ipc description {Add semaphore, shared memory and IPC functions} { configure.args-append --enable-shmop --enable-sysvsem --enable-sysvshm --enable-sysvmsg } Variant: pcntl description {Add process control functions} { configure.args-append --enable-pcntl } if {![variant_isset apache] && ![variant_isset apache2] && ![variant_isset fastcgi] && ![variant_isset no_web]} { default_variants +apache2 } Variant: pear description {Add PEAR} { configure.args-delete --without-pear configure.args-append --with-pear=${prefix}/lib/php destroot.target-append install-pear destroot.args-append PHP_PEAR_INSTALL_DIR=${prefix}/lib/php post-destroot { #nuke pear-stuff in ${destroot} system "cd ${destroot} && rm -rf .channels .depdb .depdblock .filemap .lock" system "if \[ -f ${prefix}/lib/php/.depdblock \]; then rm -f ${destroot}${prefix}/lib/php/.depdblock; fi" system "if \[ -f ${prefix}/lib/php/.depdb \]; then rm -f ${destroot}${prefix}/lib/php/.depdb; fi" system "if \[ -f ${prefix}/lib/php/.filemap \]; then rm -f ${destroot}${prefix}/lib/php/.filemap; fi" system "if \[ -f ${prefix}/lib/php/.lock \]; then rm -f ${destroot}${prefix}/lib/php/.lock; fi" system "if \[ -d ${prefix}/lib/php/.channels \]; then rm -rf ${destroot}${prefix}/lib/php/.channels; fi" } } Variant: readline description {Add GNU readline functions} { depends_lib-append port:readline configure.args-append --with-readline=${prefix} } Variant: sockets description {Add socket communication functions} { configure.args-append --enable-sockets } Variant: t1lib description {Add PostScript Type 1 font support with t1lib} { depends_lib-append port:t1lib configure.args-append --with-t1lib=${prefix} } Variant: suhosin description {Add Suhosin patch} { pre-fetch { if {"darwin" == ${os.platform} && ${os.major} < 9} { ui_error "The suhosin variant requires Mac OS X 10.5 or greater." return -code error "incompatible Mac OS X version" } } set suhosin_patch_version ${version}-0.9.7 set suhosin_patch suhosin-patch-${suhosin_patch_version}.patch.gz patch_sites-append https://download.suhosin.org/ patchfiles-append ${suhosin_patch} checksums-append ${suhosin_patch} md5 8f9de4d97fae6eba163cf3699509a260 sha1 248419332131efc53f3306c2a57a4b1a9dc92cc1 rmd160 0f6d442aace34c221f9fbff42a63e7f3b4489f15 } destroot.args INSTALL_ROOT=${destroot} destroot.target install-cli install-build install-headers install-programs post-destroot { # Copy the Apache 1 module. if { [variant_isset apache] } { xinstall -m 755 -d ${destroot}${prefix}/libexec/apache ${destroot}${prefix}/etc/apache/extra xinstall -m 755 ${worksrcpath}/libs/libphp5.so ${destroot}${prefix}/libexec/apache/ xinstall -m 755 -c ${filespath}/mod_php.conf ${destroot}$prefix/etc/apache/extra } # Copy the Apache 2.2 module. if { [variant_isset apache2] } { xinstall -m 755 -d ${destroot}${prefix}/apache2/modules ${destroot}${prefix}/apache2/conf/extra xinstall -m 755 ${worksrcpath}/libs/libphp5.so ${destroot}${prefix}/apache2/modules/ xinstall -m 755 -c ${filespath}/mod_php.conf ${destroot}${prefix}/apache2/conf/extra } if { [variant_isset fastcgi] } { # If we've built an Apache module (any version) then the FastCGI binary # will not have been built, so we need to run through the whole process # again and build just the FastCGI binary. Keep the options here in sync # with the options specified in the apache and apache2 variants. if { [variant_isset apache] } { if { ![variant_isset macosx] } { configure.args-delete --with-apxs=${prefix}/sbin/apxs } else { configure.args-delete --with-apxs=/usr/sbin/apxs } } if { [variant_isset apache2] } { configure.args-delete --with-apxs2=${prefix}/apache2/bin/apxs } # Run the build again to get the FastCGI binary. Keep the options here # in sync with those in the fastcgi variant. if { [variant_isset apache] || [variant_isset apache2] } { configure.args-append --enable-fastcgi --enable-force-cgi-redirect ui_msg "$UI_PREFIX Configuring ${name} again for fastcgi" command_exec configure ui_msg "$UI_PREFIX Building ${name} again for fastcgi" command_exec build ui_msg "$UI_PREFIX Staging ${name} fastcgi into destroot" } # Copy the FastCGI binary to the bin dir under a new name so it doesn't # conflict with the cli version. xinstall -m 755 ${worksrcpath}/sapi/cgi/php-cgi ${destroot}${prefix}/bin } #file rename ${destroot}${prefix}/etc/pear.conf ${destroot}${prefix}/etc/pear.conf.sample # Copy the default php.ini files. xinstall -m 755 -d ${destroot}${phpinidir} xinstall -m 644 -W ${worksrcpath} php.ini-dist php.ini-recommended ${destroot}${phpinidir} } pre-activate { set filepath ${extraphpinidir}/.turd_${name} if {[file exists ${filepath}]} { delete ${filepath} } } post-activate { if {[file exists ${prefix}/etc/php.ini] && ![file exists ${phpinidir}/php.ini]} { move ${prefix}/etc/php.ini ${phpinidir} ui_msg "Your ${prefix}/etc/php.ini has been moved to ${phpinidir}/php.ini" ui_msg "" } if {![file exists ${phpinidir}/php.ini]} { ui_msg "To customize php, copy" ui_msg "${phpinidir}/php.ini-dist (if this is a development server) or" ui_msg "${phpinidir}/php.ini-recommended (if this is a production server) to" ui_msg "${phpinidir}/php.ini and then make changes." } else { ui_msg "You may need to update your php.ini for any changes that have been made" ui_msg "in this version of php. Compare ${phpinidir}/php.ini with" ui_msg "${phpinidir}/php.ini-dist (if this is a development server) or" ui_msg "${phpinidir}/php.ini-recommended (if this is a production server)." } if {![variant_isset no_web]} { ui_msg "" ui_msg "If this is your first install, you need to activate PHP in your web server." if {![variant_isset fastcgi]} { if {[variant_isset apache]} { set moduledir ${prefix}/libexec/modules set apxs ${prefix}/apache/bin/apxs } if {[variant_isset apache2]} { set moduledir ${prefix}/apache2/modules set apxs ${prefix}/apache2/bin/apxs } ui_msg "" ui_msg "To enable PHP in Apache, run" ui_msg " cd ${moduledir}" ui_msg " ${apxs} -a -e -n \"${my_name}\" lib${my_name}.so" } } #ui_msg "* copy ${prefix}/etc/pear.conf.sample to ${prefix}/etc/pear.conf" } Variant: debug description {Enable debug support (useful to analyze a PHP-related core dump)} { configure.args-append --enable-debug } test.run yes livecheck.type regex livecheck.url ${homepage}downloads.php livecheck.regex get/php-(5\\.2\\.\[0-9.\]+)\\.tar If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page. Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:
% cd /opt/local/bin/portslocation/dports/php52You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to: - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using php52 with these commands: % man php52 Where to find more information:
This website is back-ended by DB5, the best database in the business,
|
![]() |
![]()
Order Snow Leopard MacOSX 10.6 for only $29!
Other Helpful SitesMacOSForgeDebian Packages MacPorts - SVN Freshports - FreeBSD Fink Package List RPM for MacOSX Port Categories
accounting
amusements aqua archivers audio benchmarks biology blinkenlights cad chat chinese comms compression cross crypto databases devel editors education electronics emacs emulators erlang finance fonts framework fuse games genealogy gis gnome gnustep graphics gtk haskell iphone irc japanese java kde kde4 lang macports math mercurial ml mono multimedia net network news ocaml office palm parallel perl php pim project python reporting rox ruby russian scheme science security shells spelling squeak sysutils tcl tex textproc tk unicode vnc win32 wsn www x11 x11-font x11-wm xfce zope
Current SVN DownloadsDarwin Ports Current :nightly SVN snapshot SSH Key Gen See also: GNU-Darwin Ports for GNU-only software |
|||||||
| |




