These is instructions for installing on Windows 7 desktop (they could also be useful for a server install with some thought to security) using individual rather than a one click Installer. This was intended only as a testing/evaluation install via ' localhost '. Proper server configuration and security is not considered.
Note: This assumes is comfortable with administering a Windows system and can use the command line. I never the use of Windows and I managed, but this is not being the quickest or most efficient a-to-do things. Make sure your Windows installation are in good shape, you clear out all the junk and stuff making it run slower (because I Nstalling All this server software certainly isn ' t going to make it run faster!) And that you have installed any outstanding updates.
Another note: Watch out for the irritating "does you want this program to get control of your computer" window that Comes up at various stages. Sometimes it didn ' t appear but you does see a shield dimly flashing in the task bar. Click and say yes.
CONTENTS[Hide]
- 1 Step 1:install MySQL
- 2 Step 2:install Apache
- 3 Step 3:install PHP
- 4 Step 4:configure Apache and PHP
- 5 Step 5:test your install
- 6 Step 6:install Git
- 7 Step 7:install Moodle
- 8 Upgrading Moodle
Step 1:install MySQL
- Install the MySQL database server on your PC. We'll do this using the ' MSI ' One-click installer for Windows. Go to Http://dev.mysql.com/downloads/and download the ' MySQL Installer for Windows '. At the time of writing this is from a very obvious graphic on the top of the screen (which I missed the first time).
- Run the installation. Click...
- Install MySQL Products
- Accept the license
- Allow the version check (optional)
- At ' Choose a Setup Type ' accept the ' Developer Default ' and click Next
- A number of downloads of required software may be identified. Click Execute and follow onscreen instructions to install them.
- At ' Installation progress ' screens, hit execute-the MySQL software'll be installed
- At ' Configuration Overview ' hits Next to go to the basic configuration screen.
- Accept all the defaults on the ' MySQL Server Configuration ' and hit Next.
- On the password screens, supply a password for the ' root ' (main administrator) user. Make sure it ' s one won ' t forget. You can also create a ' User ' account just for Moodle with more restricted access if you like. This would is good practice on a public server but just using the ' root ' user would suffice for testing.
- On the Service Details page, accept the defaults and hits next and then next a couple + times for the configuration prog Ress.
- Click Finish. Job done.
- MySQL Workbench would open. Under Server administration (right hand column, double click on ' Local MySQL56 ' (or whatever you called it). A box should pop up asking for the root password. Enter the password you supplied
- The Server Management screen should appear. You don ' t has to worry too much. It just shows the install is working.
Step 2:install Apache
- Install the Apache Web server on your PC. Go to http://www.apachelounge.com/download/. Scroll down the page until your find the download for the ' Apache 2.4 Win32 binaries ' and download. You need to being careful that the module DLL in PHP matches the version of Apache you install. Apache won ' t load otherwise.
- Unzip the file into the C: \. You should end and a directory ' Apache24 ' (or whatever the latest version is).
- Find Start > All Programs > Accessories > Command Prompt ... But, right click, and select ' Run as Administrator '.
- Enter the following commands
CD \apache24\bin httpd-k install httpd-k start
The. Warning is about the server name. Don ' t worry about it. Don ' t close this window and you'll need it again in a minute.
- To test it worked type ' http://localhost ' into your browser. You should get a screens up to the effect, Apache is installed and working.
Step 3:install PHP
- Now install the PHP scripting language on your PC. Go to Http://www.php.net/download. The current stable release sections click on link for Windows 5.x.x binaries and source. Scroll the newest ' Zip ' for VC11 x86 thread safe (non thread safe doesn ' t has the Apache DLL) PHP (again , the newest versions of PHP didn ' t has this but it shouldn ' t matter) and download. *don ' t* is tempted to use the Microsoft Installer version; It won ' t work.
- Open the zip file and extract to C:\PHP\
Step 4:configure Apache and PHP
Need to edit Apache ' s httpd.conf file. In the File Explorer navigate to C:\Apache24\conf\httpd.conf. Open it in Notepad. At the end of the this file (or wherever if you want to is more organised) add the following lines:
LoadModule php5_module "C:/php/php5apache2_4.dll" AddHandler application/x-httpd-php. PHP Phpinidir c:/php
The version of the module file matters (2_4 in). It must match the Apache version installed.
In the same file. Search for the line starting DirectoryIndex. Change it as follows
DirectoryIndex index.php index.html
Now, navigate to C:\PHP, and copy Php.ini-development to php.ini. Edit This file, find the following lines and modify them as follows (all should exist already):
Memory_limit = 256M post_max_size = 128M upload_max_filesize = 128M
You need to specify the extensions required for Moodle. Find the ' Dynamic Extensions ' section and change the following lines (uncomment and add the correct path):
Extension=c:/php/ext/php_curl.dll Extension=c:/php/ext/php_gd2.dll Extension=c:/php/ext/php_intl.dll extension=c:/php/ext/php_mbstring.dll extension=c:/php/ext/php_mysqli.dll extension=c:/php/ext/ Php_openssl.dll Extension=c:/php/ext/php_soap.dll Extension=c:/php/ext/php_xmlrpc.dll
(These is a minimum. Need others-e.g ldap-for specific functions) ... and save.
Back in the ' cmd ' window for Apache, you need to restart it to load your changes ...
Httpd-k restart
Step 5:test Your install
Navigate to C:\Apache24\htdocs and create a file called ' test.php '. I had to change a file Explorer setting to create. PHP files-organise > Folder and search Options > View and then Untick ' Hide extensions for known file types '.
In this file, enter the single line ...
<?php phpinfo ();
And then, in your browser, navigate to http://localhost/test.php. You should see a screens with masses of information and the PHP logo at the top. Check a few lines down for ' Loaded Configuration File ' and make sure it says C:\php\php.ini.
That's PHP and Apache all working:)
Step 6:install Git
We'll use the Git version control system for loading and updating the Moodle software. If you really don ' t want to does this you can just download the latest Moodle zip file and unzip it in C:\Apache24\htdocs BU T Git makes updates MUCH easier. We need to install Git first ...
- Go to http://msysgit.github.com. Navigate to ' Downloads ' and download/run the latest installer.
- Accept defaults until you get to ' adjusting your PATH environment '. Select ' Run Git from the Windows Command Prompt ' at this point.
- Accept remaining defaults and install
- If you right-click on folders in the File Explorer, you should now see additional Git commands.
Step 7:install Moodle
- In the File Explorer navigate to C:\Apache24\htdocs.
- Inside the folder, right click and select Git GUI
- Select ' Clone existing repository '
- Use the following settings for the clone ...
Source location:https://github.com/moodle/moodle.git Target directory:c:/apache24/htdocs/moodle
(You can also try git://git.moodle.org/moodle.git.) Depending on your firewall situation one could work and the other is not. The code is the same.)
- Click ' Clone '. Depending on your network speed, this could well take a while as the whole Moodle history is being downloaded.
- You should now has a ' Moodle ' directory inside ' Htdocs. Right click and select ' Git GUI ' again-a more complex screens should now appear
- Click on the ' Branch ' command and then ' Checkout ... '.
- Select The version of Moodle you want from the list, probably origin/moodle_24_stable. Make sure ' Tracking branch ' is selected and click Checkout.
- Create a data directory for Moodle. It can be anywhere used C:\moodledata. Just Create an empty folder
- Go to Http://localhost/moodle. The language Select page should come up and you are away. The installation isn't covered in detail ...
- Data directory is C:\moodledata (or whatever you created)
- Database user is ' root ' (unless-created a more restricted user)
- Database password is whatever you set installing MySQL
That's should be it! Time for a cup of tea.
Upgrading MoodleCategory:
Manual Install on Windows 7 with Apache and MySQL