[MacPorts] howto/MAMP modified

MacPorts noreply at macports.org
Sun Jan 4 09:12:42 PST 2015


Page "howto/MAMP" was changed by magill at mac.com
Diff URL: <https://trac.macports.org/wiki/howto/MAMP?action=diff&version=89>
Revision 89
Comment: upd
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/MAMP
=========================================================================
--- howto/MAMP (version: 88)
+++ howto/MAMP (version: 89)
@@ -58,14 +58,14 @@
 
 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/mysql5/mysqld.sock)
+= Step 3: MySQL setup for PHP =
+Setup the MySQL default socket to use the MacPorts configuration (/opt/local/var/run/mysql56/mysqld.sock)
 
 {{{
 $ sudo -i
-# cd /opt/local/etc/php5
+# cd /opt/local/etc/php56
 # cp php.ini php.ini.bak
-# defSock=`/opt/local/bin/mysql_config5 --socket`
+# defSock=`/opt/local/bin/mysql_config --socket`
 # cat php.ini | sed \
   -e "s#pdo_mysql\.default_socket.*#pdo_mysql\.default_socket=${defSock}#" \
   -e "s#mysql\.default_socket.*#mysql\.default_socket=${defSock}#" \
@@ -74,12 +74,17 @@
 # mv tmp.ini php.ini
 # exit # OR rm php.ini.bak && exit
 }}}
+The "grep" check should return:
+{{{
+pdo_mysql.default_socket=/opt/local/var/run/mysql56/mysqld.sock
+mysql.default_socket=/opt/local/var/run/mysql56/mysqld.sock
+mysqli.default_socket=/opt/local/var/run/mysql56/mysqld.sock
+}}}
 
-
-If you installed php5 with the +pear variant you should also:
+If you installed php56 with the +pear variant you should also:
 
 {{{
-$ cd /opt/local/etc/php5
+$ cd /opt/local/etc/php56
 $ sudo cp pear.conf.sample pear.conf
 }}}
 
@@ -104,4 +109,3 @@
 Note that this file needs to be readable and executable.
 
 * Remember to return to [[howto/PHP]] to complete the PHP installation.
-
-------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