[MacPorts] howto/MAMP modified

MacPorts noreply at macports.org
Mon Nov 10 09:22:53 PST 2014


Page "howto/MAMP" was changed by snc at macports.org
Diff URL: <https://trac.macports.org/wiki/howto/MAMP?action=diff&version=72>
Revision 72
Comment: replace php5 (obsolete) with php54
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/MAMP
=========================================================================
--- howto/MAMP (version: 71)
+++ howto/MAMP (version: 72)
@@ -11,7 +11,7 @@
 
  * Apache 2.2.*
  * MySQL 5.1.*
- * PHP 5.3.*
+ * PHP 5.4.*
 
 == Installation ==
 
@@ -285,27 +285,15 @@
 === Step 4: Install PHP === #php
 
 {{{
-sudo port install php5 +apache2
-sudo port install php5-mysql
-}}}
-
-As of the php54 port, installing PHP to work in Apache is a separate port rather than a variant of the php5 port and so should be installed with:
-{{{
 sudo port install php54-apache2handler
 sudo port install php54-mysql
 }}}
 
 
-  '''''Note:''''' the php5 port contains the core PHP features, but there are many optional features available in separate ports, some of which you may want to install as well (such as MySQL support via the php5-mysql port). Use `port search php5` to see all the ports that are available.
+  '''''Note:''''' the php54 port contains the core PHP features, but there are many optional features available in separate ports, some of which you may want to install as well (such as MySQL support via the php54-mysql port). Use `port search php54` to see all the ports that are available.
 
 Register PHP with Apache 
 
-{{{
-cd /opt/local/apache2/modules
-sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
-}}}
-
-As of the php54 port, the module has been renamed to mod_php54.so and so the command should be
 {{{
 cd /opt/local/apache2/modules
 sudo /opt/local/apache2/bin/apxs -a -e -n "php5" mod_php54.so
@@ -325,15 +313,6 @@
 }}}
 
 Also, at the end of the `httpd.conf` file, add the following lines so that Apache includes the mod_php "AddType" configurations
-
-{{{
-# 
-# Include PHP configurations
-#
-Include conf/extra/mod_php.conf
-}}}
-
-As of the php54 port, the configuration file has been renamed to mod_php54.conf and so the command should be
 
 {{{
 # 
@@ -343,13 +322,6 @@
 }}}
 
 You may also need to load the PHP module '''before''' including `mod_php.conf` as described above:
-
-{{{
-# Load the PHP module
-LoadModule php5_module modules/libphp5.so
-}}}
-
-Or if you are using the php54 port
 
 {{{
 # Load the PHP module
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/howto/MAMP>
MacPorts <https://www.macports.org/>
Ports system for OS X

This is an automated message. Someone added your email address to be
notified of changes on 'howto/MAMP' page.
If it was not you, please report to .


More information about the macports-changes mailing list