![]() ![]() sudo nano /etc/php.iniĪdd in and save extension_dir="/usr/local/Cellar/php54-mcrypt/5.4. Make sure php.ini has its own config file sudo cp /etc/ /etc/php.ini brew install php54-mcryptĮdit php.ini to point to new extension directory and extension – if you already have set a extension directory then move mcrypt.so into it. Then I went to mac system preferences and we have MySQL installed there. Go to browser -> In the Authentication Tab set the password to the same one set as the MySQL root user from earlier Also brew stop command didnt work as I installed without using homebrew. Set Up Configuration mkdir/usr/local/Cellar/phpmyadmin/4.1.4/share/phpmyadmin/config chmod o+w /usr/local/Cellar/phpmyadmin/4.1.4/share/phpmyadmin/config Options Indexes FollowSymLinks MultiViews ![]() Install phpMyAdmin brew install josegonzalez/php/phpmyadminĪdd to your your nf sudo nano /etc/apache2/nfĪdd at the end… Alias /phpmyadmin /usr/local/share/phpmyadmin Reload Apache to kick in sudo apachectl restartĬreate symbolic link for mysql.sock sudo mkdir /var/mysql sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock Write out and Save using the nano short cut keys at the bottom ‘control o’ and ‘control x’ Open a terminal and run the following commands: brew update brew. The last stable and released version is listed. Use “control” + “w” to search within nano and search for ‘php’ this will land you on the right line then uncomment the line (remove the #): LoadModule php5_module libexec/apache2/libphp5.so On the Homebrew homepage, search for Grafana. Document root filing system at – /Library/WebServer/Documents/ Ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents Apache ![]() To make it launch on reboot mkdir -p ~/Library/LaunchAgents Set the MySQL root password – keep single quotes around password /usr/local/mysql/bin/mysqladmin -u root password 'yourpasswordhere' Lets get started… Base Tools Install Xcodeĭownload and install Xcode Install Command Line Toolsįrom the Terminal run… xcode-select -install Install HomeBrew ruby -e "$(curl -fsSL )" MySQL Install MySQL brew install mysql This guide works best on clean OSX images with no previous AMP installs, but it will still work on ones with installs, but there may be bumps on the way. This guide is intended for those with more experience with the command line and the AMP stack and want it done quickly – there is another guide here with more detailed instructions for a more traditional installation and an introduction here to HomeBrew and Xcode. MySQL is configured to only allow connections from localhost by default. To secure it run: mysqlsecureinstallation. Weve installed your MySQL database without a root password. What you need to get started as a base is Xcode and Command Line Tools. Manage compile and link flags for libraries. OSX ships with Apache and PHP but not MySQL, you can use HomeBrew to install the other parts of the AMP Stack quickly including MySQL, phpMyAdmin and mcrypt. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |