
Install Moodle 1.8 under Apache/Vista
June 7, 2007Moodle is usually easy to install once you’ve got Apache/PHP 5/MySQL running.
But the installation script for Moodle 1.8 fails- hitting ‘Next’ after entering the database information gave me a blank screen. EDIT: This also is true of Moodle 1.9 beta.
The install works fine under XP. But the problem isn’t limited to Vista: John McGrath and others on moodle.org report a similar problem under XAMPP/Win2000. John manually built his configuration file to get Moodle running (http://moodle.org/mod/forum/discuss.php?d=64692).
I was able to install Moodle 1.8 successfully under Vista following his approach.
- Install the Apache webserver. I’m using Apache 2.2.4.
- Install MySQL 5 (The most recent installer (5.0.41) works without a hitch under Vista. Don’t forget to unblock port 3306 in your firewall, and set sql-mode=”" in your my.ini file; Moodle doesn’t like strict mode).
- Install PHP 5. I’m using version 5.2.3.
- Download the latest stable build of 1.8+ from http://download.moodle.org/download.php/stable18/moodle-latest-18.zip.
- Unzip the file into your Apache document root (c:\apache\htdocs, if you follow the instructions linked in step one). I renamed the directory c:\apache\htdocs\moodle18, so I could install multiple versions of moodle later for testing.
- Create a directory for storing data that is outside the document root (I used c:\apache\htdata).
- Create an empty database for Moodle 1.8. I used mysql:
- Get a command line (All Programs > Accessories > Command Line) and start up mysql:
mysql -u root -p
- After giving mysql your root password, you should see a welcome message. At the mysql prompt, type:
create database moodle18; grant select,insert,update,delete,create,drop, index,alter on moodle18.* to moodle@localhost identified by 'put-a-moodle-password-here'; quit;
- Get a command line (All Programs > Accessories > Command Line) and start up mysql:
- Double check your php.ini file. Moodle requires the following to be set somewhere in php.ini:
session.auto_start = 0 magic_quotes_gpc = On magic_quotes_runtime = Off register_globals = Off sql.safe_mode = Off file_uploads = On memory_limit = 128M upload_max_filesize = 64M post_max_size = 64M extension=php_gd2.dll
Moodle won’t complain if you leave magic_quotes_gpc off, but Joomla will.
64 megabytes is just a little larger than my largest course backups- if I set it any smaller, I won’t be able to upload them through Moodle.
- Create a Notepad file in your Moodle directory and call it config.php (c:\Apache\htdocs\moodle18\config.php, for me):
<?php /// Moodle Configuration File unset($CFG); $CFG->dbtype = 'mysql'; $CFG->dbhost = 'localhost'; $CFG->dbname = 'moodle18'; $CFG->dbuser = 'moodle'; $CFG->dbpass = 'put-a-moodle-password-here'; $CFG->dbpersist = false; $CFG->prefix = 'mdl_'; $CFG->wwwroot = 'http://localhost/moodle18'; $CFG->dirroot = 'C:\Apache\htdocs\moodle18'; $CFG->dataroot = 'C:\Apache\htdata'; $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. ?>Put in your own paths and passwords.
- Browse to your Moodle directory (http://localhost/moodle18, for me) and the install script should take it from there!
Molecular Sieve is the work blog of
It can be installed with XAMPP as well. I posted something over at Moodle.org that should walk someone who is unfamiliar with Apache etc. right through it. I hope you find it useful.
Here is the URL:
http://moodle.org/mod/forum/discuss.php?d=73852&parent=349700
Thanks!
Very usefull.
I tried NineHub.com provides free Moodle hosting with unlimited disk space and bandwidth. Good enough!
[...] Solution: Manually create the setting file “config.php” and filled in values of database, data folder etc. as mentioned in the following site: http://senese.wordpress.com/2007/06/07/install-moodle-18-under-apachevista/ [...]
Is search engine optimization a little something to suit your needs?
Like quite a few other individuals you may have heard the phrase search engine optimisation, but precisely what does it suggest and is it one thing that can be practical on your enterprise or website?
Search engine optimisation is definitely an acronym for Search engine marketing. This procedure is utilized for that promotion of on the web business enterprise. On this course of action, the internet web page is organised in this kind of a way in order that it could possibly be without difficulty and rapidly accessed, study and listed by the major search engines seen at sEo Mir
. In case a marketer follows several hassle-free and easy procedures, they can get on line existence and status for that company’s web-site.
The seo allows a professional to advertise the webpage with the firm through the world wide web. Within this technique, the articles of your web page need to be key phrase-rich to ensure that its relevance is acknowledged by the spiders as well as material may be without difficulty indexed. The key word-rich information can end up quickly available for that goal clients. An business owner must primary investigate and examine the form of key terms which match with all the content material of your internet web page. These key words and phrases really should intently relate towards the home business of an group. For example, when you’re operating a organization of IT answers, you’ll want to put into action individuals search terms that very best identify your item or computer home business.
You’ll need to possess the meta tags inside your website to optimize your website in the good method. Meta tags includes of title, meta description and key terms. Header title could be the initially tag. You can actually comprise of key words on this title tag. The search engine robots crawl the content material of your seo internet pages and offer relevance to these title tags that are key phrase abundant. Don’t things the phrases or phrases unnecessarily in any other case you could possibly deal with the danger of one’s whole written content currently being thought to be a Spammy. The Meta Information Tag is really a type of Meta tag that describes the topic of your respective blog like seo tips. Meta keywords and phrases are implemented to possess your all keyword phrases within this. These would be the most reduced precedence tags but even now we comprise of them. Hence, you may make your blog available for the probable clients and obtain over the internet presence by subsequent the appropriate search engine marketing procedures.