brew install -v php --with-mysql --with-intl --with-fpm
brew install php55-intl
✩✩✩✩ PEAR ✩✩✩✩
If PEAR complains about permissions, 'fix' the default PEAR permissions and config: chmod -R ug+w /usr/local/Cellar/php55/5.5.9/lib/php pear config-set php_ini /usr/local/etc/php/5.5/php.ini
Edit /usr/local/etc/php/5.5/php.ini
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
date.timezone = "Europe/Paris"
Edit /etc/apache2/httpd.conf
DocumentRoot "~/www/"
<Directory "~/www/">
brew install mysql
To connect: mysql -uroot
To have launchd start mysql at login: ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents Then to load mysql now: launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist Or, if you don't want/need launchctl, you can just run: mysql.server start
mysqladmin -u root password "nouveau_mot"
mysql_install_db --verbose --user=plou --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
/usr/local/opt/mysql/bin/mysql_secure_installation
brew install phpmyadmin
Webserver configuration example (add this at the end of your /etc/apache2/httpd.conf for instance) : Alias /phpmyadmin /usr/local/share/phpmyadmin <Directory /usr/local/share/phpmyadmin/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all
cp /usr/local/share/phpmyadmin/config.sample.inc.php /usr/local/share/phpmyadmin/config.inc.php