dudegerma.blogg.se

Install mysql on mac os x 10.10
Install mysql on mac os x 10.10







install mysql on mac os x 10.10
  1. Install mysql on mac os x 10.10 how to#
  2. Install mysql on mac os x 10.10 install#
  3. Install mysql on mac os x 10.10 update#
  4. Install mysql on mac os x 10.10 password#

  • sudo mkdir -p /Library/Server/Web/Config/php.
  • Install mysql on mac os x 10.10 install#

  • brew install php55-mcrypt -without-homebrew-php.
  • Edit /etc/php.ini and add extension=intl.so to the end.
  • The path to the ICU libraries and headers is: /usr/local/opt/icu4c/ To compile extensions, you need the Xcode command line tools and autoconf. We just need to run the install phar file. We need PEAR solely for installing PHP extensions using PECL.
  • Restart apache: sudo apachectl restart and check in the phpinfo that xdebug is now loaded.
  • I like these settings (use with caution…):
  • If you want to configure your xdebug settings, then add an section.
  • Edit /etc/php.ini and add this line to the end: zend_extension = "xdebug.so".
  • Edit php.ini and change settings appropriately.Ĭan’t have a PHP development environment without xdebug! Fortunately, Yosemite ships with it ready to enable:.
  • Use Safari to navigate to and check that the PHP version is displayed (5.5.14 at the time of writing).
  • Create a new file called info.php with
  • Create a new folder called “orig” and place all files currently in the Documents folder into it.
  • Open Finder and navigate to /Library/WebServer/Documents/ using shift+cmd+g.
  • sudo chmod g+rw /Library/WebServer/Documents/*.
  • sudo chmod g+rws /Library/WebServer/Documents.
  • sudo chgrp staff /Library/WebServer/Documents.
  • Give yourself permissions to the /Library/WebServer/Documents/ folder using the terminal commands:.
  • htaccess files will workĪnd Options FollowSymLinks Multiviews to Options FollowSymLinks Multiviews Indexes so that we can view directory listings. #LoadModule php5_module libexec/apache2/libphp5.soĪllowOverride None to AllowOverride All so that. #LoadModule rewrite_module libexec/apache2/mod_rewrite.so
  • To enable PHP and rewriting in Apache, remove the leading # from these two lines:.
  • Read the upgrading documentation for more information. One change compared to 2.2.x worth noting is that we now need the Require all granted directive in our virtual host definitions in place of Allow from all. We just have to use the command line to start and stop it.

    install mysql on mac os x 10.10

  • sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock.
  • Now ensure that the mysql.sock file can be found by PHP:.
  • Install mysql on mac os x 10.10 password#

    Mysqladmin -u root password isn’t in plain text on the disk.

    Install mysql on mac os x 10.10 update#

  • Update the path by editing ~/.bash_profile and add:Įxport PATH=~/bin:/usr/local/bin:/usr/local/mysql/bin:$PATH.
  • Open the pref pane and start the MySQL Server.
  • Download the “Mac OS X 10.9 (x86, 64-bit), DMG Archive” from and install the pkg.
  • Note: if /usr/include doesn’t exist, then you need to do: sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/atform/Developer/SDKs/MacOSX10.10.sdk/usr/include /usr/include MySQL Xcode-select -install, however, as of this writing Xcode 6.1 isn’t available on the Mac App Store, so use this direct link.

    install mysql on mac os x 10.10 install mysql on mac os x 10.10

    You’ll also need the Xcode command line tools – at least version 6.1. However, if you don’t want to use the built-in PHP or want to use version 5.6, then these are some alternatives:

    Install mysql on mac os x 10.10 how to#

    Apple ships PHP 5.5.14 with Yosemite and this is how to set it up from a clean install. It’s that time again Apple has shipped a new version of OS X, 10.10 Yosemite.









    Install mysql on mac os x 10.10