Note: You are currently viewing documentation for Moodle 2.3. Up-to-date documentation for the latest stable version is available here: Step by Step Installation on a Mac OS X 10.5 Server.

Step by Step Installation on a Mac OS X 10.5 Server: Difference between revisions

From MoodleDocs
 
(118 intermediate revisions by 8 users not shown)
Line 1: Line 1:
==System requirements==
#REDIRECT [[Step by Step Installation on a Mac OS X Server]]
 
  + Apple Computer
  + Mac mini or Xserve
  + Processor:  Intel Core 2 Duo or PPC (G4, G5)
  + RAM: 1 GB or better
  + Hard Disk: 500 MB free
  + System Software: Mac OS X 10.5 Server
 
==Install the GD Library on the Mac OS X 10.5 Server==
 
The Mac OS X Server 10.5 Leopard comes together with PHP 5.2.4 ... this is correct for Moodle but not the missing GD Library support. To see which PHP version is installed on your server you should edit the file /Library/WebServer/Documents/info.php. You must activate the function call phpinfo() by deleting the both slashes // at the start of the function line. After saving the file you can get all PHP informations in your browser. Please look at http://server-address/info.php ... you will not find the GD library support.
 
<?php
// You can use Server Admin to enable the Apache PHP module; it's disabled by default.
// You can uncomment the phpinfo() directive below to provide a default PHP info page
// but note that this displays information about your host's configuration.
phpinfo();
?>
 
 
To get this missing GD library support into your Mac Server it would be the easiest way that you download the file PHP 5.2.5 (beta6 or newer). For the package please try this URL http://www2.entropy.ch/download/php5-5.2.5-6-beta.tar.gz or search inside the forum [http://www.entropy.ch/phpbb2/viewforum.php?f=2 PHP on Mac OS X] for a newer one. Download and unpack the package. Move the contained folder php5 into /usr/local ... so you get /usr/local/php5 ... and change the owner to root.
 
sudo mv /usr/local/php5 ~/Desktop/php5.old
curl -O http://www2.entropy.ch/download/php5-5.2.5-6-beta.tar.gz
tar -xzf php5-*-beta.tar.gz
sudo mv php5 /usr/local/
sudo chown -R root:admin /usr/local/php5
 
 
Now the web server must know that you want to use a new PHP library from now on. Therefore edit the file /etc/apache2/httpd.conf. You should comment the line "LoadModule php5_module libexec/apache2/libphp5.so" by adding a # as the first character of the line. After this you add the new line "LoadModule php5_module local/php5/libphp5.so". Save the file.
 
#LoadModule php5_module libexec/apache2/libphp5.so
LoadModule php5_module local/php5/libphp5.so
 
 
The second thing you must configure is the file php.ini. You will find the file inside the new package. Edit /usr/local/php5/lib/php.ini. To contact the database MySQL with PHP you have to set the default socket name for local MySQL connects. Save the file.
 
mysql.default_socket = /var/mysql/mysql.sock
 
 
That's all ... restart the web server. Now you should look at http://server-address/info.php again. I hope that everything will be okay and you will find the version number PHP 5.2.5 and the running GD library support. Congratulations ... the first step for Moodle on the Mac server is done!
 
[[Image:phpinfo.png]]
 
[[Image:phpinfo2.png]]
 
==Configure the MySQL database for your Moodle installation==
 
In standard case the database MySQL is installed on the Mac OS X 10.5 Server but it is not running yet. Open the '''Server Admin'''. You will find it by the way '''Applications > Tools > Server Admin'''. Activate MySQL on the local server. You must set the password for the user root before you can start MySQL.
 
==Copy the Moodle files to the web server==
 
==Run the Moodle installation==
 
==Download the language packages==
 
==Moodle is running ...==
[[Image:mooodle_on_a_mac_server.png]]
 
==See also==
* [http://mamp.info  MAMP = Mac + Apache + MySQL + PHP]
* [http://en.wikipedia.org/wiki/MAMP MAMP in Wikipedia]
* [[Complete Install Packages for Mac OS X | Complete install packages for Mac OS X 10.3/10.4/10.5]]
* [[Step-by-step Guide for Installing Moodle on Mac OS X 10.4 Client|Step by step installation on a Mac OS X 10.4 Client]]
* [[CVS for Administrators]]
 
* [http://en.wikipedia.org/wiki/Private_network Private network addresses in Wikipedia]
* [http://moodle.org/mod/forum/discuss.php?d=24632 Using Moodle: Dynamic DNS Home Server]
 
* [[Configuring aspell on Mac OS X]]
 
[[Category:Administrator]]
[[Category:Installation]]
[[Category:Mac OS X]]

Latest revision as of 13:00, 21 October 2010