Installing on Windows Vista

Re: Installing on Windows Vista

by Steven Ouellette -
Number of replies: 27
I found this elsewhere in the discussions, but this is the first thread that comes up when I search for "Install Vista"

Vista interferes (I think) with the moodledata folder creation. So to install in Vista:
  1. Download XAMPP
  2. Install according to directions on your local drive in c:\xampp
Now verify XAMPP by turning on APACHE and MySQL, which you can do either by loading the XAMPP control panel or launching xampp_restart. Open your browser and type http://localhost. It will show the XAMPP home screen with lots of useful tools. You can use phpMyAdmin to create a blank database called moodle at this point by clicking on the menu on the left .

Now you need to put the Moodle files in the right place. Download the standard package (you won't need the Windows install package).
  1. Unpack the zip file into the c:\xampp\htdocs directory. You should have a folder c:\xampp\htdocs\moodle that has all the moodle files in it.
  2. Create a directory c:\xampp\htdocs\moodledata
  3. I am not sure if this step is needed, but it worked for me.
    1. Right-click on the folder moodledata, select Properties, then select the Security tab.
    2. Click on Everyone in the top window (Group or User Names) then click Edit.
    3. Check to allow read and write permissions for Everyone (List folder contents and Read & Execute should already be checked - don't know if they need to be or not).
  4. Now you will have to modify the configuration file. Open Notepad or a similar text editor. Copy this and paste it into Notepad:
<?php /// Moodle Configuration File

unset($CFG);

$CFG->dbtype = 'mysql';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle';
$CFG->dbuser = 'root';
$CFG->dbpass = '';
$CFG->dbpersist = false;
$CFG->prefix = 'mdl_';

$CFG->wwwroot = 'http://localhost/moodle';
$CFG->dirroot = 'C:\xampp\htdocs\moodle';
$CFG->dataroot = 'C:\xampp\htdocs/moodledata';
$CFG->admin = 'admin';

$CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode

$CFG->unicodedb = true; // Database is utf8

require_once("$CFG->dirroot/lib/setup.php");
// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
// RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.
?>

Now save the file in c:\xampp\htdocs\moodle\config.php If you are using Notepad, you will need to type this in the Save As box, "config.php" otherwise it will save it as config.php.txt which won't work.

Now you are ready to configure Moodle. Go to your browser and type: http://localhost/moodle and it should bring up the normal configuration screens. Everything from that point forward is like a normal installation.

I did this, and Moodle runs perfectly well in Vista.

I hope this helps you!
In reply to Steven Ouellette

Re: Installing on Windows Vista

by Pablo A. Rueda U. -

Hello Steven,

I just want to thank you for your post... it worked perfectly on my laptop... it took me time to organize everything... but finally it worked...

Thanks again...

Pablo Rueda

In reply to Steven Ouellette

Re: Installing on Windows Vista

by Rypke Procee -

Hi Steven,

I am Rypke from the Netherlands.

I just tried to install Moodle on my Vista machina. I did follow your advise but unfourtunatly I got a blank screen.

I am using Xamp 2.5 and Moodle 1.8.4

Do you have anny clue? Can you advise me on how to go on?

Thanks, Rypke

In reply to Rypke Procee

Re: Installing on Windows Vista

by Maria Eugenia Reyes -
Mike Barker, thank you. You really saved me a lot of time. I installed moodle in a server, but sometimes for presentations it is easier to show it using a laptop. So I was installing Moodle with Vista. Your tips were perfect.
In reply to Maria Eugenia Reyes

Re: Installing on Windows Vista

by atakan kesler -

i just installed moodle on sql server 2005 , vista , IIS 7.0

My steps :

1 . download and Install PHP 5.2.6 with ISAPI choice. you should load extensions which are curl, gd2,mssql,xml-rpc.

2. IIS , Handler Mappings : should set ISAPI dll(module mapping), and php (script mapping)

3. download freetds and move the file to the php/ext folder.

4. add the "php_dblib.dll" at the dynamic section of php.ini file

5. comment the mssql.dll in php.ini file.

6.[global]
     host = 127.0.0.1 ( for same machine)
     port = 1433
     client charset = UTF-8
     tds version = 7.0
     text size = 20971520

write these file called freetds.conf on the "c:\" folder

7. Create database on SqlServer 2005 SP2 and options ansi nulls=enabled and quoted = true

8. give the one user owner rights on the database.

9 . change the mssql.textsize and mssql.textlimit to 20971520 in php.ini

10. copy the php.ini to the windows folder and they should be same.

i made these steps and it worked.

In reply to Steven Ouellette

Re: Installing on Windows Vista

by Elie Khoury -

hey guys

i did all the steps u said.. but i received a message :

                            Error: Database conncetion failed

It is possible that the database is overloaded or otherwise not running properly.

The Site administrator should also check that the database details have been correctly specified in config.php

So guys what is the error ?? i guess its in my config.php file!

how can i fix it?

anyone can help

In reply to Steven Ouellette

Re: Installing on Windows Vista

by Aranganathan B -

Hello,

We have installed PHP on Vista sucessfully. We have installed Moodle on IIS in XP/Windows Server 2003. We have to know the procedure for installing Moodle on IIS 7.0 in Vista. Could you please give me the steps?

Thanks,

Aranganathan

arangu_mca@yahoo.co.in

In reply to Aranganathan B

Re: Installing on Windows Vista

by Mauno Korpelainen -

Aranganathan,

I haven't tested IIS7 but it can't be very different from installing moodle on IIS6 in XP/Windows 2003. Have you searched with google - for example http://www.maximumpcguides.com/how-to-create-a-windows-vista-iis7-mysql-php-web-server/ - how to set up a server with IIS7, PHP5 and MYSQL.

If you get this combination to run ok and create manually moodledata folder and give all users permission to read and write to moodledata folder (you may need both iis manager and changing permissions from properties of moodledata folder / security tab) , create a new user to mysql with all priviledges, create a new database, create manually config.php with correct values and go to the location of site with browser (http://webaddress_of_yoursite or from Vista itself http://localhost ) what else could be missing...

Have you read the documentation ( and the email I sent you on Friday )?

In reply to Steven Ouellette

Re: Installing on Windows Vista

by ilka ilka -
Hi!

Im trying to install Moodle on Vista, but I have some problems.
After setting up the database I get the following error:

Fatal error
: Call to undefined method domdocument::load() in C:\xampp\htdocs\moodle\lib\xmldb\classes\XMLDBFile.class.php on line 85

What am I doing wrong? I use xampp 1.6.7 with moodle1.9.1 and create my config file as described in this post(thanks!!! it's great help for installing on vista). So this works fine but after that I get this error.

Thanks!
Ilka
In reply to ilka ilka

Re: Installing on Windows Vista

by Richard Enison -
II,

My best guess is that you have an old version of the PHP extension for DOM.

RLE
In reply to Richard Enison

Re: Installing on Windows Vista

by karen obrien -
I have the same problem as Ilka. Sorry I'm a total newbie to PHP etc, if the problem is that I have an old version of the PHP extension for DOM, what would the solution be?
In reply to Steven Ouellette

Re: Installing on Windows Vista

by Josip Šarčević -
I can't install Moodle into a The Windows Vistu. Constantly lodgment installation with unification Moodla plus MySQL at an root plus password.
I have a message with Installer, yes we do does tie is unable realize or non MySQL create.
In reply to Steven Ouellette

Re: Installing on Windows Vista ***Thank you***

by Marko Maglic -
Thanks to your helpful solution, which is easy to realize and functions well (Even without rebooting etc. as suggested in other posts.), I can finally go ahead and customize my themes locally.

Thank you very much!
In reply to Steven Ouellette

Re: Installing on Windows Vista

by ehsan j -

I tried the steps but couldnt get moodle installaltion to work on my vista laptop, still get a blank page on firefox and HTTP 500 erro on IE7

1. installed xampp to c:\, ran xampp-control, started apache and mysql, http://localhost shows xampp home screen

2. downloaded and unzipped moodle-weekly-19 to c:\xampp\htdocs

3. create c:\xampp\htdocs\moodledata and set the full control permissions to all users

4. created config.php as said in c:\xampp\moodle

when I type http://localhost/moodle, I get nothing sad

please help!

In reply to ehsan j

Re: Installing on Windows Vista

by Richard Enison -
EJ,

The config.php file should not be in c:\xampp\moodle, but in c:\xampp\htdocs\moodle

RLE
In reply to Steven Ouellette

Re: Installing on Windows Vista

by Marie Norman -

Hi Steven,

I have just spent 3 days trying various suggestions for getting moodle running on my laptop under Vista.  It is now 1.34am Monday morning, and I have just finished your suggested way of installing.  IT HAS BEEN A GREAT SUCCESS. Thank you so much for your guidance.

I have just finished filling in the Administrator page and now I'm not sure where to go to next to start creating my courses, but I will carry on.  I think I'll leave it until tomorrow (or is that today?)

Thanks again

Marie

In reply to Steven Ouellette

Re: Installing on Windows Vista

by derek reddy -
Hi Steve
I have done the first 2 steps, downloaded & opened Apache & MySql.
But when I got to my browser-firefox- go to loacl host I get only a blank screen.

So what can I do now

Thanks

Des


In reply to Steven Ouellette

Re: Installing on Windows Vista

by derek reddy -
My problem seems to be that Apache doesn't start.
How do I fix that??

Thanks
In reply to derek reddy

Re: Installing on Windows Vista

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Do you have Skype, or something else, already running on port 80?
In reply to Steven Ouellette

Re: Installing on Windows Vista

by viral agrawal -
thank you so much..
it works for me now!!
I manually created config.php file.. and its working now..
thanks again
In reply to Steven Ouellette

Re: Installing on Windows Vista

by Alan Taylor -
Bless you Steven !!! For your clear and detailed instructions which even a software mug like me could follow.

My background is in infrastructure, not software. I'm running Windows 7 on our PC on which I wanted to load Moodle. I read a number of suggestions in the forums as to how to load Moodle on a Windows 7 machine (same as Vista). And I have spent hours and hours over the last few weeks unsuccessfully trying to load Moodle on the PC, have used much colourful (colorful in your language, Steven) language and wanted to toss the PC out our second floor window. I was becoming very frustrated.

Then I came across your post, followed your method closely and by God it worked immediately !! Hallelujah !! You're lucky, Steven, that you're in the US and I'm in Australia otherwise I'd kiss you on both cheeks.

Thanks again. Not everyone is a software/Linux/Apache(John Wayne film??)/SQL wiz.