Unzip it, rename the folder to “phpmyadmin” and then move it to ~/Sites/.Ĭreate a config folder mkdir ~/Sites/phpmyadmin/configĪnd then enter (replace username by yours)Ĭlick on new server > Authentication and fill it with the username and password. In this tutorial i downloaded: “phpMyAdmin-4.8.5-all-languages.zip”. System Preferences > MySQL > Initialize Database 4- phpMyAdmin Installationĭownload phpMyAdmin from their official site. If you still unable to access the database the problem can be that the database isn’t initialized. Sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock When trying to accessing mySQL you may face issue like : 2002 socket error System Preferences > MySQL > start mySQL server. This is done in your “.bash_profile” file in your home directory, if you don’t have that file just create it using nano: cd Įxit the file with type “control + x” and then “y”.Īfter that reload the shell: source ~/.bash_profile To make it easier accessing mysql console in future it’s better to add it to ur PATH. #Mysql for mac high sierra software#It’s compatible with Mojave.ĭuring the MySQL process you are prompted to choose between strong and legacy password encryptions, since version 8 is entirely new, some software like phpMyAdmin can’t connect with the newer encryptions - so if you are going to use a GUI wrapper like phpMyadmin I suggest you stick to legacy. Use the macOS 10.14 (x86, 64-bit), DMG Archive. If everything is ok you should get something similar to this when accessing 3- MySQL installationĭownload mySQL from MySQL official site. Sudo nano /Library/WebServer/Documents/index.php sudo touch /Library/WebServer/Documents/index.php Create a file in “/Library/WebServer/Documents/”. If you want to verify the installation, and the php version installed you can use the phpinfo function. Include /private/etc/apache2/extra/nfĪfter finishing save the file (ctrl+x … then y) and exit.Įdit nf sudo nano /etc/apache2/extra/nfĪnd uncomment Include /private/etc/apache2/users/*.confĪfter restarting visit localhost/~username from your browser. LoadModule php7_module libexec/apache2/libphp7.so LoadModule rewrite_module libexec/apache2/mod_rewrite.so LoadModule include_module libexec/apache2/mod_include.so LoadModule userdir_module libexec/apache2/mod_userdir.so LoadModule authz_host_module libexec/apache2/mod_authz_host.so Now open nf sudo nano /etc/apache2/nfĪnd uncomment these (use ctrl + w for search): LoadModule authz_core_module libexec/apache2/mod_authz_core.so Options Indexes MultiViews FollowSymLinks #replace username by your username get in previous step Navigate to the Apache folder & create nf in /users directory cd /etc/apache2/users Now let’s create a Sites folder in the username home directory. Whoami is a concatenation of the words “Who am I?” and prints the effective username of the current user when invoked. Now we will use the user level root to have something like: Before starting in this step you should determine you current username using the command: whoami Libarary/WebServer/Documents / and accessed through The default System Level Web Root document is still found at If everything work fine you will get this image when typing localhost in the browser 2- PHP and files configurations Sudo is used to give administrator access, in the first time, the shell will ask for the user password. Forbidden error faced after entering the localhostīy default, the service Apache is installed on mac it needs only to be started. #Mysql for mac high sierra update#If you have a fresh installation, or you update to Mojave probably after entering localhost you will face the forbidden issue. The name MAMP is an acronym representing: macOS, the operating system Apache, the web server MySQL, the database management system and PHP, Perl, or Python, programming languages used for web development (here it will be PHP). #Mysql for mac high sierra how to#This tutorial will explain step by step how to install MAMP on MACOS Mojave. It’s the fifteenth major release of macOS, Apple Inc.’s desktop operating system for Macintosh computers. MacOS Mojave is the successor of macO High Sierra.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |