
Mysql> CREATE USER IDENTIFIED BY 'moodle' Sudo /usr/local/mysql/support-files/rver restartĬreate moodle MySQL user, database and grant privileges Sudo /usr/local/mysql/support-files/rver stop Sudo /usr/local/mysql/support-files/rver start Mysql Ver 8.0.13 for macos10.14 on x86_64 (MySQL Community Server - GPL) bash_profile file you opened to editĮxport PATH="$:/usr/local/mysql/bin" bash_profile (if you are using bash)Īdd path to mysql at the end of.
MAC OS X APACHE CHANGE ROOT DIRECTORY INSTALL
If you are not running OSX Server then you will probably need to install Mysql again if Apple issues an upgrade of Yosemite.Īfter MySQL dmg installation if there is an issue with the MySQL PATH when mysql commands are run, add PATH to. If you tick the option to start on boot then it may not actually start on boot. The dmg install will allow you to start or stop the MySql server from your system preferences. The most likely error will be a page just showing the text which means php is not working.ĭownload your version of Mysql from the Mysql site and install it! This should give you the well known phpinfo page.
MAC OS X APACHE CHANGE ROOT DIRECTORY FOR MAC OS X
Make a file in the root of your webfolder ( The default DocumentRoot for Mac OS X Yosemite is /Library/WebServer/Documents ) called phpinfo.php and add this content. In the finder, choose the folder and using the get info dialogue to give _www write access to the folder. The default Apache user is "_www" and so your /moodledata folder needs write permissions for the _www user. Restart apache for the changes to take effectĪpache user permissions on /moodledata folder LoadModule php7_module libexec/apache2/libphp7.so If you have PHP 7 then php module would be Since Moodle 3.3 minimum PHP version is 7.0.0 with PHP 7.1.x and 7.2.x also supported. LoadModule php5_module libexec/apache2/libphp5.so LoadModule userdir_module libexec/apache2/mod_userdir.so LoadModule authz_host_module libexec/apache2/mod_authz_host.so LoadModule authz_core_module libexec/apache2/mod_authz_core.so In /etc/apache2/nf uncomment all the following lines Pick up a url you would use locally for moodle site, for example '', and add to the bottom of the nf fileĭocumentRoot "/Users/mac_user_you_are_logged_in/Sites/moodle/"Īdd a url for a local moodle site, the same as in nf, to the bottom of /etc/hostsĪfter moodle set up you should be able to point a browser to
