[MacPorts] howto/MAMP modified
MacPorts
noreply at macports.org
Sun Nov 25 23:35:26 PST 2012
Page "howto/MAMP" was changed by Danack at basereality.com
Diff URL: <https://trac.macports.org/wiki/howto/MAMP?action=diff&version=63>
Revision 63
Comment: Updated with working PHP install for php54
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/MAMP
=========================================================================
--- howto/MAMP (version: 62)
+++ howto/MAMP (version: 63)
@@ -255,6 +255,13 @@
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 php54-apache2handler
+sudo port install php5-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.
Register PHP with Apache
@@ -263,6 +270,13 @@
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
+}}}
+
Update Apache’s `httpd.conf` file to enhance the "DirectoryIndex" directive to include additional "index" files. Search for:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
--
Page URL: <https://trac.macports.org/wiki/howto/MAMP>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
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