[MacPorts] howto/MAMP modified
MacPorts
noreply at macports.org
Mon Aug 14 16:58:54 UTC 2017
Page "howto/MAMP" was changed by paxperscientiam
Diff URL: <https://trac.macports.org/wiki/howto/MAMP?action=diff&version=93>
Revision 93
Comment: Included alternative examples for PHP7. Not confident with mysql stuff though
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/MAMP
=========================================================================
--- howto/MAMP (version: 92)
+++ howto/MAMP (version: 93)
@@ -27,6 +27,8 @@
{{{
$ cd /opt/local/apache2/modules
$ sudo /opt/local/apache2/bin/apxs -a -e -n php5 mod_php56.so
+$ # or, if you're using php7...
+$ sudo /opt/local/apache2/bin/apxs -a -e -n php7 mod_php71.so
}}}
This should return the message:
''[activating module `php5' in /opt/local/apache2/conf/httpd.conf]''
@@ -49,11 +51,16 @@
{{{
# Include PHP configurations
Include conf/extra/mod_php56.conf
+# Or...
+Include conf/extra/mod_php71.conf
}}}
+
Verify that in the Dynamic Shared Object (DSO) Support section the following have been added.
{{{
# Load the PHP module
LoadModule php5_module modules/mod_php56.so
+# Or...
+LoadModule php7_module modules/mod_php71.so
}}}
Note: either of the above two edits are only required if the lines are not present in the httpd.conf file, as the apxs command (executed above) will add those for you.
-------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 macOS
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 admin at macports.org.
More information about the macports-changes
mailing list