$ sudo port install php55-apache2handler Password: ---> Computing dependencies for php55-apache2handler ---> Dependencies to be installed: apache2 gsed libxml2 mhash php55 php_select ---> Fetching archive for apache2 ---> Attempting to fetch apache2-2.2.25_0+preforkmpm.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/apache2 ---> Attempting to fetch apache2-2.2.25_0+preforkmpm.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/apache2 ---> Attempting to fetch apache2-2.2.25_0+preforkmpm.darwin_13.x86_64.tbz2 from http://packages.macports.org/apache2 ---> Fetching distfiles for apache2 ---> Attempting to fetch httpd-2.2.25.tar.bz2 from http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/apache2 ---> Verifying checksums for apache2 ---> Extracting apache2 ---> Applying patches to apache2 ---> Configuring apache2 ---> Building apache2 ---> Staging apache2 into destroot ---> Creating launchd control script ########################################################### # A startup item has been generated that will aid in # starting apache2 with launchd. It is disabled # by default. Execute the following command to start it, # and to cause it to launch at startup: # # sudo port load apache2 ########################################################### Warning: apache2 installs files outside the common directory structure. ---> Installing apache2 @2.2.25_0+preforkmpm ---> Activating apache2 @2.2.25_0+preforkmpm ---> Cleaning apache2 ---> Fetching archive for gsed ---> Attempting to fetch gsed-4.2.2_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/gsed ---> Attempting to fetch gsed-4.2.2_0.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gsed ---> Attempting to fetch gsed-4.2.2_0.darwin_13.x86_64.tbz2 from http://packages.macports.org/gsed ---> Fetching distfiles for gsed ---> Attempting to fetch sed-4.2.2.tar.gz from ftp://ftp.lip6.fr/pub/gnu/sed ---> Verifying checksums for gsed ---> Extracting gsed ---> Configuring gsed ---> Building gsed ---> Staging gsed into destroot ---> Installing gsed @4.2.2_0 ---> Activating gsed @4.2.2_0 ---> Cleaning gsed ---> Fetching archive for libxml2 ---> Attempting to fetch libxml2-2.9.1_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/libxml2 ---> Attempting to fetch libxml2-2.9.1_0.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/libxml2 ---> Attempting to fetch libxml2-2.9.1_0.darwin_13.x86_64.tbz2 from http://packages.macports.org/libxml2 ---> Fetching distfiles for libxml2 ---> Attempting to fetch libxml2-2.9.1.tar.gz from http://xmlsoft.org/sources/ ---> Verifying checksums for libxml2 ---> Extracting libxml2 ---> Configuring libxml2 ---> Building libxml2 ---> Staging libxml2 into destroot ---> Installing libxml2 @2.9.1_0 ---> Activating libxml2 @2.9.1_0 ---> Cleaning libxml2 ---> Fetching archive for mhash ---> Attempting to fetch mhash-0.9.9.9_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/mhash ---> Attempting to fetch mhash-0.9.9.9_0.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/mhash ---> Attempting to fetch mhash-0.9.9.9_0.darwin_13.x86_64.tbz2 from http://packages.macports.org/mhash ---> Fetching distfiles for mhash ---> Attempting to fetch mhash-0.9.9.9.tar.bz2 from http://freefr.dl.sourceforge.net/project/mhash/mhash/0.9.9.9 ---> Verifying checksums for mhash ---> Extracting mhash ---> Configuring mhash ---> Building mhash ---> Staging mhash into destroot ---> Installing mhash @0.9.9.9_0 ---> Activating mhash @0.9.9.9_0 ---> Cleaning mhash ---> Fetching archive for php_select ---> Attempting to fetch php_select-1.0_0.darwin_13.noarch.tbz2 from http://lil.fr.packages.macports.org/php_select ---> Attempting to fetch php_select-1.0_0.darwin_13.noarch.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/php_select ---> Attempting to fetch php_select-1.0_0.darwin_13.noarch.tbz2 from http://packages.macports.org/php_select ---> Fetching distfiles for php_select ---> Verifying checksums for php_select ---> Extracting php_select ---> Configuring php_select ---> Building php_select ---> Staging php_select into destroot ---> Installing php_select @1.0_0 ---> Activating php_select @1.0_0 ---> Cleaning php_select ---> Fetching archive for php55 ---> Attempting to fetch php55-5.5.5_0+libedit.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/php55 ---> Attempting to fetch php55-5.5.5_0+libedit.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/php55 ---> Attempting to fetch php55-5.5.5_0+libedit.darwin_13.x86_64.tbz2 from http://packages.macports.org/php55 ---> Fetching distfiles for php55 ---> Attempting to fetch php-5.5.5.tar.xz from http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/php5 ---> Verifying checksums for php55 ---> Extracting php55 ---> Applying patches to php55 ---> Configuring php55 ---> Building php55 ---> Staging php55 into destroot ---> Installing php55 @5.5.5_0+libedit ---> Activating php55 @5.5.5_0+libedit To customize php55, copy /opt/local/etc/php55/php.ini-development (if this is a development server) or /opt/local/etc/php55/php.ini-production (if this is a production server) to /opt/local/etc/php55/php.ini and then make changes. ---> Cleaning php55 ---> Fetching archive for php55-apache2handler ---> Attempting to fetch php55-apache2handler-5.5.5_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/php55-apache2handler ---> Attempting to fetch php55-apache2handler-5.5.5_0.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/php55-apache2handler ---> Attempting to fetch php55-apache2handler-5.5.5_0.darwin_13.x86_64.tbz2 from http://packages.macports.org/php55-apache2handler ---> Fetching distfiles for php55-apache2handler ---> Verifying checksums for php55-apache2handler ---> Extracting php55-apache2handler ---> Applying patches to php55-apache2handler ---> Configuring php55-apache2handler ---> Building php55-apache2handler ---> Staging php55-apache2handler into destroot Warning: php55-apache2handler installs files outside the common directory structure. ---> Installing php55-apache2handler @5.5.5_0 ---> Activating php55-apache2handler @5.5.5_0 If this is your first install, you need to enable php55-apache2handler in your web server. To enable php55-apache2handler, run: cd /opt/local/apache2/modules sudo /opt/local/apache2/bin/apxs -a -e -n php5 mod_php55.so ---> Cleaning php55-apache2handler ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> No broken files found. $ cd /opt/local/apache2/modules $ sudo /opt/local/apache2/bin/apxs -a -e -n php5 mod_php55.so [activating module `php5' in /opt/local/apache2/conf/httpd.conf] $ sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper restart $ ps -afx | grep apache2 0 2016 1 0 11:23AM ?? 0:00.18 /opt/local/apache2/bin/httpd -k start 0 85991 1 0 12:03PM ?? 0:00.01 /opt/local/bin/daemondo --label=apache2 --start-cmd /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper start ; --stop-cmd /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper stop ; --restart-cmd /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper restart ; --pid=none 70 86054 2016 0 12:06PM ?? 0:00.00 /opt/local/apache2/bin/httpd -k start 70 86055 2016 0 12:06PM ?? 0:00.00 /opt/local/apache2/bin/httpd -k start 70 86056 2016 0 12:06PM ?? 0:00.00 /opt/local/apache2/bin/httpd -k start 70 86057 2016 0 12:06PM ?? 0:00.00 /opt/local/apache2/bin/httpd -k start 70 86058 2016 0 12:06PM ?? 0:00.00 /opt/local/apache2/bin/httpd -k start 70 86083 2016 0 12:06PM ?? 0:00.00 /opt/local/apache2/bin/httpd -k start $ nmap localhost Starting Nmap 6.40 ( http://nmap.org ) at 2013-11-03 12:03 CET Nmap scan report for localhost (127.0.0.1) Host is up (0.0016s latency). Not shown: 499 closed ports, 499 filtered ports PORT STATE SERVICE 80/tcp open http 631/tcp open ipp