it is intentional because it prevents trailing whitespace problems! There is no php closing tag in this file, Require_once("$CFG->dirroot/lib/setup.php") $CFG->directorypermissions = 00777 // try 02777 on a server in Safe Mode $CFG->dataroot = '/Applications/MAMP/data/moodle20' $CFG->dirroot = '/Applications/MAMP/htdocs/moodle20' Use the ip address of your computer instead of localhost $CFG->dboptions = array ('dbpersit' => 0, ) In the following box you will see this address in the line $CFG->You must use own address for your own network!! Please do not use an ip address if you do not know what you are doing. If your computer for example has the ip address 192.168.0.20 then you must change the configuration from localhost to 192.168.0.20. Mostly your ip address in a local network will show one of the following numbers 10.x.x.x, 172.x.x.x, or .x If your network is configured to dynamic ip addresses via DHCP please make sure that your computer retains its ip address while you want to use it as a Moodle server.The best thing would be to get a static ip address for your computer. Use the current ip address of your computer instead of localhost so an external computer can connect the the web server. One step is the change of only one line in the Moodle config.php, and the second step is that you must open the firewall of the Mac OS X. There are only two steps to get the server connection from every computer in your network. You should change the admin passwords (Moodle and MySQL) before you do this. In some workshops we used Moodle4Mac as a quick server installation for our local network. Using Moodle4Mac as a local server in your network Step 7: Please login with the username admin and the password 12345 and you will be the main administrator of your new local Moodle. Step 6: Start your browser and type or in the address bar. Step 5: Doubleclick the icon MAMP to start the server. Step 4: Now you are ready to start your web server. If you want to know more about MAMP please read the project page MAMP makes no entries in any registry and no settings for the system variables. Moodle4Mac is based on MAMP (Mac, Apache, MySQL, PHP). Step 3: Move the folder MAMP into the folder Applications. Step 2: Doubleclick the file Moodle4Mac.dmg to mount the installation disk. If the download file is not unzipped please do this manually. The zip archive should be unzipped automatically when the download is complete. Please choose the correct file for your processor type. Step 1: Download the zipped disk image file from the Moodle download page. Install complete package Moodle4Mac Download and install Moodle4Mac + System Software: Mac OS X 10.6 or 10.7 (works also with 10.4 and 10.5 for XAMPP) + Processor: Intel i5, i7, Core 2 Duo, Xeon + iMac, Mac mini, MacBook, Mac Pro, Xserve
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |