[MacPorts] howto/MAMP modified
MacPorts Wiki
noreply at macports.org
Thu Mar 26 13:25:27 UTC 2020
Page "howto/MAMP" was changed by haraldgroven
Diff URL: <https://trac.macports.org/wiki/howto/MAMP?action=diff&version=99>
Revision 99
Comment: MySQL8 is GA since 2019-04, please verify this with clean install
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/MAMP
=========================================================================
--- howto/MAMP (version: 98)
+++ howto/MAMP (version: 99)
@@ -8,7 +8,7 @@
These installation instructions are written for the following versions:
* Apache 2.4.* - See: [[howto/Apache2]] for instructions on installation of Apache2
- * MySQL 5.7.* - See: [[howto/MySQL]] for instructions on installation of MySQL
+ * MySQL 8.* - See: [[howto/MySQL]] for instructions on installation of MySQL
* PHP 5.6.* - See: [[howto/PHP]] for instructions on installation of PHP
@@ -31,7 +31,7 @@
$ cd /opt/local/lib/apache2/modules
$ sudo /opt/local/bin/apxs -a -e -n php5 mod_php56.so
$ # or, if you're using php7...
-$ sudo /opt/local/bin/apxs -a -e -n php7 mod_php71.so
+$ sudo /opt/local/bin/apxs -a -e -n php7 mod_php74.so
}}}
This should return the message:
''[activating module `php5' in /opt/local/etc/apache2/httpd.conf]''
@@ -55,7 +55,7 @@
# Include PHP configurations
Include etc/apache2/extra/mod_php56.conf
# Or...
-Include etc/apache2/extra/mod_php71.conf
+Include etc/apache2/extra/mod_php74.conf
}}}
Verify that in the Dynamic Shared Object (DSO) Support section the following have been added.
@@ -63,13 +63,13 @@
# Load the PHP module
LoadModule php5_module modules/mod_php56.so
# Or...
-LoadModule php7_module modules/mod_php71.so
+LoadModule php7_module modules/mod_php74.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.
= Step 3: MySQL setup for PHP =
-Setup the MySQL default socket to use the MacPorts configuration (/opt/local/var/run/mysql57/mysqld.sock)
+Setup the MySQL default socket to use the MacPorts configuration (/opt/local/var/run/mysql8/mysqld.sock)
{{{
$ sudo -i
@@ -86,9 +86,9 @@
}}}
The "`grep`" check should return:
{{{
-pdo_mysql.default_socket=/opt/local/var/run/mysql57/mysqld.sock
-mysql.default_socket=/opt/local/var/run/mysql57/mysqld.sock
-mysqli.default_socket=/opt/local/var/run/mysql57/mysqld.sock
+pdo_mysql.default_socket=/opt/local/var/run/mysql8/mysqld.sock
+mysql.default_socket=/opt/local/var/run/mysql8/mysqld.sock
+mysqli.default_socket=/opt/local/var/run/mysql8/mysqld.sock
}}}
Restart Apache so that your changes take effect
-------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