Changes between Version 88 and Version 89 of howto/MAMP


Ignore:
Timestamp:
Jan 4, 2015, 5:12:40 PM (9 years ago)
Author:
magill@…
Comment:

upd

Legend:

Unmodified
Added
Removed
Modified
  • howto/MAMP

    v88 v89  
    5959Note: 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.
    6060
    61 = Step 3: MySqL 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 =
     62Setup the MySQL default socket to use the MacPorts configuration (/opt/local/var/run/mysql56/mysqld.sock)
    6363
    6464{{{
    6565$ sudo -i
    66 # cd /opt/local/etc/php5
     66# cd /opt/local/etc/php56
    6767# cp php.ini php.ini.bak
    68 # defSock=`/opt/local/bin/mysql_config5 --socket`
     68# defSock=`/opt/local/bin/mysql_config --socket`
    6969# cat php.ini | sed \
    7070  -e "s#pdo_mysql\.default_socket.*#pdo_mysql\.default_socket=${defSock}#" \
     
    7575# exit # OR rm php.ini.bak && exit
    7676}}}
     77The "grep" check should return:
     78{{{
     79pdo_mysql.default_socket=/opt/local/var/run/mysql56/mysqld.sock
     80mysql.default_socket=/opt/local/var/run/mysql56/mysqld.sock
     81mysqli.default_socket=/opt/local/var/run/mysql56/mysqld.sock
     82}}}
    7783
    78 
    79 If you installed php5 with the +pear variant you should also:
     84If you installed php56 with the +pear variant you should also:
    8085
    8186{{{
    82 $ cd /opt/local/etc/php5
     87$ cd /opt/local/etc/php56
    8388$ sudo cp pear.conf.sample pear.conf
    8489}}}
     
    105110
    106111* Remember to return to [[howto/PHP]] to complete the PHP installation.
    107