□□ Get my newsletter for occasional updates. If you want to start MySQL automatically, the Caveats section from the output of the following command will show you how: brew info mysqlĪny comments? Ping me on Twitter. Once Homebrew is installed, installing MySQL is as simple as: brew install mysql In addition to the core installation, the Package Installer also includes Section 2.4.3, Installing a MySQL Launch Daemon and Section 2.4.4, Installing and Using the MySQL Preference Pane, both of which simplify the management of your installation. Instead of going for an installer package, we’ll use Homebrew. MySQL is not shipped with OS X, so we’ll have to install that manually. If you also need PEAR/PECL, follow these instructions. To activate these settings you have to restart Apache: sudo apachectl restart You should also configure a few settings in /etc/php.ini: sudo tee -a /etc/php.ini << EOFĭate.timezone = "`sudo systemsetup -gettimezone | awk ''`" LoadModule php5_module libexec/apache2/libphp5.so So we’ll also add it to our config: sudo tee -a /etc/apache2/other/ $USER nf << EOF Homebrew: Fail to install homebrew on Mac OS X El Capitan(v10.11.1) Related. I - Install XCode if it is not installed yet. LoadModule rewrite_module libexec/apache2/mod_rewrite.so I faced the same problem of brew command not found while installing Homebrew on mac BigSur with M1 processor. It seems that mod_rewrite no longer gets loaded by default, so we’ll also add that to our config: sudo tee -a /etc/apache2/other/ $USER nf << EOF Include /private/etc/apache2/extra/nfĪfter that, configure vhosts as necessary in /etc/apache2/extra/nf (don’t forget to remove the examples in there). If you want to use vhosts, you’ll also have to make sure that the vhosts config gets loaded: sudo tee -a /etc/apache2/other/ $USER nf << EOF Include /private/etc/apache2/users/*.conf I want to install MySQL on Mac OS X Yosemite, create a new user, then create a new database called 'mydatabase'. Now we have to make sure that our user config above actually gets loaded: sudo tee -a /etc/apache2/other/ $USER nf << EOF Options Indexes MultiViews FollowSymLinks Moved sphp.sh to the GitHub repo version rather than Gist Updated to reflect macOS 13.0 Ventura Added dynamic support for Apple Silicon and Intel homebrew paths Updated to reflect macOS 12.0 Monterey and removed PHP 5. Then add a configuration for your user: sudo tee /etc/apache2/users/ $nf Apacheįirst, you have to create a web root in your user account: mkdir ~/Sites A Mac running Mac OS X 10.10 or later, though earlier versions are sort of supported Command Line Tools must be installed on the Mac (either independently or. OS X 10.10 ships with both a recent version of Apache (2.4.x), as well as PHP (5.5.x), so you’ll just have to install MySQL and go through a few steps to get everything up and running. Installed Homebrew brew install python (to install pip) pip install python-dateutil s3cmd -configure, or s3cmd du s3://bucket-name At step 9 I still get the error message about the dateutil module: ImportError trying to import dateutil.parser.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |