Changes between Version 88 and Version 89 of howto/MAMP
- Timestamp:
- Jan 4, 2015, 5:12:40 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/MAMP
v88 v89 59 59 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. 60 60 61 = Step 3: MyS qL setup for PHP =62 Setup the MySQL default socket to use the MacPorts configuration (/opt/local/var/run/mysql5 /mysqld.sock)61 = Step 3: MySQL setup for PHP = 62 Setup the MySQL default socket to use the MacPorts configuration (/opt/local/var/run/mysql56/mysqld.sock) 63 63 64 64 {{{ 65 65 $ sudo -i 66 # cd /opt/local/etc/php5 66 # cd /opt/local/etc/php56 67 67 # cp php.ini php.ini.bak 68 # defSock=`/opt/local/bin/mysql_config 5--socket`68 # defSock=`/opt/local/bin/mysql_config --socket` 69 69 # cat php.ini | sed \ 70 70 -e "s#pdo_mysql\.default_socket.*#pdo_mysql\.default_socket=${defSock}#" \ … … 75 75 # exit # OR rm php.ini.bak && exit 76 76 }}} 77 The "grep" check should return: 78 {{{ 79 pdo_mysql.default_socket=/opt/local/var/run/mysql56/mysqld.sock 80 mysql.default_socket=/opt/local/var/run/mysql56/mysqld.sock 81 mysqli.default_socket=/opt/local/var/run/mysql56/mysqld.sock 82 }}} 77 83 78 79 If you installed php5 with the +pear variant you should also: 84 If you installed php56 with the +pear variant you should also: 80 85 81 86 {{{ 82 $ cd /opt/local/etc/php5 87 $ cd /opt/local/etc/php56 83 88 $ sudo cp pear.conf.sample pear.conf 84 89 }}} … … 105 110 106 111 * Remember to return to [[howto/PHP]] to complete the PHP installation. 107