Skip to content

Instantly share code, notes, and snippets.

@Plou
Created March 6, 2014 09:21
Show Gist options
  • Select an option

  • Save Plou/9385980 to your computer and use it in GitHub Desktop.

Select an option

Save Plou/9385980 to your computer and use it in GitHub Desktop.
TYPO3 development environment with HomeBrew on OSX

PHP

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/">

mysql

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

phpmyadmin

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

open http://localhost/phpMyAdmin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment