
- #Apache php mysql for mac mac os x
- #Apache php mysql for mac mac osx
- #Apache php mysql for mac install
- #Apache php mysql for mac Patch
- #Apache php mysql for mac pro
Move the moodle folder to this location: /Library/WebServer/Documents/moodle This is for the moodle program and will be accessible to the public. Go to the Moodle Downloads page, download the version you want, and unzip it.ī. Mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX,ALTER ON moodle.* TO IDENTIFIED BY 'anotherpassword' Ī. These are important for making a secure setup. Inside MySQL monitor, you first make a database with the first line below, then make a new user and password for using that database, then "flush" and "quit". Go to Terminal and make a database for moodle, you might call, "moodle", and a mysql user you might call, "moodleuser".įirst, type the following in Terminal to enter the MySQL monitor.Ĭ. usr/local/mysql/bin/mysqladmin -u root password new_password_hereī. Go to Terminal and make a password for the MySQL root user. Step 4: Make a Secure Database for MoodleĪ. You should make sure the checkbox for automatic MySQL startup is checked. When you open it, you should see that MySQL is "running". You now see a preference pane active at the bottom of the System Preferences. Drag the MySQL.prefPane file into that folder. Make a new folder in /Library called "PreferencePanes" (unless already there). Click the MySQLStartupItem package and follow instructions.Ĭ.
#Apache php mysql for mac install
Click the install package and follow instructions.
#Apache php mysql for mac mac os x
Go to the main MySQL Download site and download MySQL standard version 5.0.18 (or later) for the Mac OS X (either PowerPC or x86) version that fits your machine. Unfortunately, this Entropy.ch package does not include a PHP accelerator that Moodle4OSX has.Ī. Do the test.php to see if your PHP and Apache are running. Click the installer and follow instructions.

Go to Marc Liyanage's site and download the PHP 5.1.2 (or later) for Apache 1.3 there.
#Apache php mysql for mac Patch
After you you start running your Moodle server, you may not want to do any more OSX version updates, as the updates often patch Apache and break the whole installation, requiring a reinstall procedure.Ī.
#Apache php mysql for mac mac osx
Upgrade your Mac OSX to the most recent version and include the most current Security Releases. In order to verify where a file or folder is, use Tinkertool to "show hidden files".į. This includes Apache and other files we will edit in later steps. Mac OS X normally hides many files in the system from ordinary users. Download Tinkertool to turn on hidden files. Uncheck the hard disk sleep box as well.Į. Turn off energy saving: Go to System Preferences > Energy Saver and set the computer sleep time to "Never". Turn on Apache (go to System Preferences > Sharing > Services, and then click "Personal Web Sharing" to "On".)ĭ. If you don't want to make a public production server, use the one-step Moodle4OSX download and forget these instructions. Get a global IP address and a domain name assigned to your server. This procedure was done on a 933mhz single processor PowerMac.ī. Choose an old or new Mac with OS X 10.4 Tiger. However if you test out a Leopard server, please report your findings here or on the "Servers" forums of .Ī. Note 3: Due to speed issues I have noted above, I will likely not be upgrading my server to OS X 10.5. Also a Linux server setup often includes a PHP accelerator which can increase Moodle speeds 5-10x. Note 2: OS X does not allow MySQL to directly address the kernal, as Linux can do, so in versions 10.4 and under, speed is much slower than with a Linux server. 6÷ hours > a typical "guy" who never asks for help-should have gone earlier to the Installation forums. To complete all of these steps, I estimate it will take the following amount of time.

90% of instructions use a simple point-and-click interface (GUI), but occasionally you will need to open the Terminal (in Utilities folder) to type a command line. Note 1: These instructions were prepared by Don Hinkelman, on 20 March 2006 and changes may have occurred. This changes with Mac OS X 10.5, which introduces Apache 2.0 thoroughly integrated into the Mac server. The following procedure, however, uses the standard Apache 1.3 which comes on every Mac with OS X.
#Apache php mysql for mac pro
Moodle4Mac is not for public production use, unless you secured it following special instructions or the MAMP Pro package. Note that this procedure is more secure than the one-step Moodle4Mac package which is intended for a quick personal install.

These instructions were used to install PHP 5.1.2, MySQL 5.0.18 and Moodle with Mac OS 10.4.5 on a standard client Mac (not server version) to be used as a production server.
