What would be nice would be a single installer (ideally it would even be a standard-looking installer or .msi file) that installs Apache, PHP, MySQL and Moodle (non-invasively so it doesn't mess with registry etc) with a default set of database tables (so people don't need to even run the Moodle setup).
After the installation users simply go to http://localhost and voila! The default page should contain the admin login details and information about how to change the password, etc.
Well I have something completed here, I downloaded the package that Jan created and took a looksee at that. Good job Jan, as Martin I missed that and it would have saved me alot of searching forsure.
So here it is, Xampp and moodle all packaged together. My distribution is a bit bigger then Jan's. It is 33mb compressed and a 99mb install. My tests all worked well, and I even had my 15 year old install it on his computer to see if it was easy to install. He did well and got it up and running with only a few questions about the config page. If this is a go I will work on a config page that will build the config.php file from the users input. Like what directory did you install moodle in, stuff like that to build config.
Runs like a charm. I can't improve that, unless you would like to have the database pre-installed, but then you mis also the moodle licence, administrator password/profile setup, configpage etc
Changing the default path ruins it. Isn't it possible to let Moodle figure out it's own path (it does so in the errormessage when you make a wrong one
Yea changing the default path does ruin it, thats why I was thinking that we need someway to build that pesky config.php from user input. It would be cool if it did find its own path to moodle but even at the state of the errormessage you speak of you still need to go back in and edit the config.php file to fix it. Right now I am tring to make it smaller without breaking it or taking away the functions of Xampp to much.
"but even at the state of the errormessage you speak of you still need to go back in and edit the config.php file to fix it"
I never understood verry well why, but since my programming skills are too low to mention, I assume that it can't be done otherwise.
Do you think the size is a problem? I was verry pleased to see it is that small
Would you or one of the programers be able to create a web form like this one http://www.goohio.com/configidea.htm that would create the config.php file from user input. I am willing to give it a try but it would take me alot longer then you guys who know php real well.
What ya think ???
This would be a great addition to Moodle in general to include web installations. This feature has been discussed before and I think it is on Martin's "to do" list. Maybe your work will stimulate quicker implementation.
I added in some file handling. Hope it helps.
I've tested this through on my server but this sample code comes with all the typical warnings and disclaimers. Do not hold me responsible if it causes an orbiting shuttle to drop in your back yard.
Extract the zip file and place the contents in the root of your test moodle installation.
install.php - after installing moodle visit install.php and it will walk you through setup. This file includes files from the include/ folder.
include/config-dist.php - a slightly edited version of config-dist. install.php reads this file in, replaces special markup and then spits it out to moodle/config.php
include/gpl.inc - displayed if the user does not agree to the gpl
include/LICENSE.inc - gpl license to agree to
include/step1.php - display the gpl and ask user to agree before proceeding
include/step2.php - display configuration variables to be edited. this file is need of prettying up
include/step3.php - if config.php was written notify the user. if not then display the config.php settings so the user can manually copy config-dist in place with their settings. continue from here on to admin/index.php to setup moodle admin settings.
Fatal error: Call to undefined function: redirect() in C:\Xampp\htdocs\install.php on line 36
I think at this point the cont, configuring moodle could simply pop us back to http://localhost or what ever the url is for the web site.
But at any rate I think this will work great, just needs to be dressed up a bit.
One other quick bug to report, when it builds the config.php the text looks like this C:\\Xampp\\htdocs'; and should be C:\Xampp\htdocs
I've replaced the redirect with a simple link now.
The link will take you to admin/index.php. After configuring your config.php file you should probably continue on and run through moodle administration for the first time (setup databases, etc), no?
A BIG THANK YOU TO Daryl for the setup script for the config.php file.
Here is the link again.
let me know what you think !!!
Yes, it seems it would fix some issues for sure. I like the packages that everyone has come up with, and it was a lot of fun for me to put it together as well.
Suggestion for the text at the start of the installer:
Complete Moodle Installation Package
You are about to install all the free software you need to turn an ordinary computer into a Moodle server. As well as the Moodle scripts, this installer will install Apache, MySQL, PHP, and Perl (bundled together as Xampp).
(If you already have a web server running, then you may not need all these other components. Please see the Moodle documentation at http://moodle.org/ for installing Moodle onto an existing server.)
You can choose a destination drive for this software by typing the drive letter above. If you don't choose C:\ you may need to manually create a writeable "moodledata" directory later on for Moodle to store course files.
Thanks for checking it out, I changed the text to what you suggested and re uploaded the file to my server. I did notice on my XP box that if I had any other MySQL running that Xampp had issues with it. I ended the task of the running MySQL and Xampp worked fine.
Floyd, thanks so much for putting in the effort to develop this resource.
Is took me a lot of work to install EasyPHP, this would have saved me a lot of time and effort. Next time I will try it for sure.
Thanks again for your contribution to the moodle community!
Just wanted to chime in "Thanks" to you and all helpers. I hope the install page makes it into the regular installation of Moodle as well.
Thanks for the nice comments. Have you taken a look at the moodle install packages Arne has made (http://moodle.org/mod/forum/discuss.php?d=5507&parent=43200) ?
He uses Uniserver which is very small. I mentioned earlier that Uniserver makes a virtual drive W: on your system and I thought this would be a disadvantage. In fact it solves the above issue: you can install it in whatever directory you want. If you install it in E:\Documents\Download\Uniserver\www\moodle this directory gets mapped to a directory called www\moodle on a newly created virtual drive W:\
This means references to directories in config.php remain intact, even if you unpack the zipfile in another directory.
I made a new moodle-on-windows-package. It's 8 Mb (but I cheated, I only kept language packs en, de, nl, es and fr)
It can be downloaded at http://home.tiscali.be/llink/bestanden/Uniserver.zip
Nice work, only one bug there is no moodle database. I droped my database into the MySQL folder and it took off like a charm. Good work.
Floyd Collins and Jan Dierckx:
you gentlemen are genius programmers,
Because I have XP pro ,the Xammp .exe files did not
work,but then I tried the uniserver file and voila
now I have moodle in my computer.
When you say that XAMP didn't work on XP Pro - what went wrong ?
Because it works fine for me on XP Pro.
Thank you very much. I have just installed your Xanpp+Moodle package. I was very easy to install.
Thank you Floyd, Jan, Daryl, and others!
I didn't see this thread last week when I installed Moodle at home. But the existing installation instructions for easyPHP et all made it very painless.
My question is: Are there any preferences from among those who know about which flavor (or flavour ) of PHP/mySQL package is best? What are the advantages/disadvantages?
Since I don't speak French, I know that easyPHP is probably won't be my first choice in the future (now that I have a choice!).
Well I have created a new distro of Xampp and Moodle, this time the installer is a bit more professional looking and the scripts to install and configure are a lot more professional and polished.
If you would please download this one and test it out for me. I need some feed back on this.
I have downloaded and tested all the three releases of yours. Out of all the three, the current one is admittedly more professional looking. I did not encounter any difficulty in installation. The current installer bypasses one step i.e., set up xammp.bat. The installation takes more time than the previous releases. The installer screen has Moodle 1.3 twice (big as well as small). The moodle version is 1.3.1 and not 1.3. Similarly installer is configured to work with moodle in English. Option for other languages has to be thought of. These are minor things easily modifiable. Other than this the moodle installer enable the users to locally install the combiantion package of xampp and moodle.
Congrats for your timely release .
Thanks for the feedback.
I fixed the cosmetic issues with the installer. As for the language well that will take some time but that is also on my list.
I also started a web page to make downloading easier then the forums. I placed Jan and my packages on the web page, if anyone creates a package and would like me to add a link just let me know.The new download page is http://www.goohio.com/moodle
Happy to note good progress in this area of moodle development. As you are aware, many moodlers are interested in a moodle combination package with Easy PHP. Very recently another LMS http://www.spaghettilearning.com/ developed a window installer package. I have installed the package and found working without any problem. I request you to examine the work to see whether a similar installer with Easy PHP will be created for Moodle.
Moodle and EasyPHP all packaged up and ready for use.
- Faster Install
- Faster download (11MB)
- Easy Configuration
- Desktop shortcut
- Easy to uninstall
Give it a go and let me know what you guys think.
Would you know off hand whether the Xampp install makes/changes any Windows Registry settings?
Direct from Xampp web site
Step 2: Removing XAMPPTo uninstall XAMPP simply delete the package completely. There are no registry entries, no environment variables... simply good, clean code!
So the answer is no
In fact none of the packages I have made will mess with the registry.
Hope this helps..
And when I make my inevitable mistakes in administering this server, the community will probably try to help me set things right.
Do I understand this correctly?
I think Floyd's package page is intended primarily to make it easier for individuals who want to run a copy of Moodle
- on their home computer to install it with an apache + PHP evironment or
- have the ability to make Moodle portable so they can run it from multiple PCs or any PC computer via a portable USB copy.
- on a server if they want to after an all in one installation.
Moodlers already have a "Servers and Performance" forum which provides community help for server problems along with some of the other forums , for example, the "General Problems" and "Installation Problems" forums.
At least that is my understanding of the creation of the packages. Am I wrong??
As usual, you are totally correct
The installer makes the job of getting a web server and database up and running very easy indeed. The only thing that would stop you using this for a full production server is security.
The install is based on XAMPP (http://www.apachefriends.org/en/xampp.html), and the site warns that the MySQL database doesn't have a password set and so on.
Nothing that a bit of 'hardening' (Computer Geek term for making more secure) wouldn't fix though.
Works well for me when I need to run up a moodle 'Engine' without affecting my computer in any way.
Yes yes and ummm yes. The idea behind this whole package is
to make it as easy as possible for users to get started with moodle. Once the
new user has a grip of moodle and has the desire to continue using it, all that
is needed is a little administration for security. I would like to say though
that if you have a computer on the internet, be it a PC or a server you need to
One should note here that the documentation provided off the main moodle.org site shows how to install EasyPHP and Moodle on a windows computer but not how to secure it.
The documentation does not speak of security and maybe we need to address this and start some security documentation. I hope this clears it up for you Art. The packages are created for those who want to get started but are not tech savvy with configuring or simply like the all in one packages (like me).
I never should have doubted the power of Moodle and its true believers.
About security: I have a friend who has been hacked (not his Moodle site, though) repeatedly in the last few weeks. Based upon the hell he has been going through, I am pretty sure that I won't be setting up a server until I understand something about security.
On the other hand, I suspect that even a newbie could set up a secure server with enough support, so I maybe down the road, who knows? It is tempting!
I "kinda" approached security in Moodle on another thread at,
Moodle & Authentication
Would appreciate some input about it.
Good work WP,
I have instructions on my site on how to secure the Moodle for Windows package if you decide to install it on a computer that is connected to the internet.
Its all about passwords and making them strong, really that is the biggest issue with internet users. As for exploits, Martin handles those as they arise.
is the 1.3.2+ version the same with the latest stable release 1.3.3??
Also, I'm running the xampp version on Windows XP Pro. On this office PC, since I don't have the administrator's password (I'm just a power user) and the administrator disabled the command line feature, how could I run "mysqldump moodle > moodle-backup-2004-07-20.sql" on my Windows XP + Xampp ??
I think what you are tiring to do is backup your MySQL database so you can safely update your moodle files. If I am correct then just follow these steps.
- Download the latest stable release of moodle.
- Copy the moodle folder from the MySQL folder under Xampp to a safe place.
- Copy the config.php file to a safe place.
- If you have added any modules to moodle then copy the mod folder and any themes from the theme folder to a safe place.
- Unpack the new download and over right the old moodle files.
- Copy back the config.php and any modules or themes that you moved to a safe place.
Load up your browser and go to the admin page. This should upgrade moodles database. So after you are happy with everything you have done, just remove the folder that you copied from MySQL. Next copy the current moodle folder under MySQL to your safe place for a back up.
Hope this helps, I will get around to updating the downloads from my site this week. I have been busy installing Windows XP and Windows 2003 server in my lab at school But I will get to it.Now if you want to run mysqldump. All you need to do is start - run - cmd. Change directory to C:\Xampp\mysql\bin . Once there you can run the command.
Should be possible with the MSI-wrapper from Veritas.
- Take a snapshot from a PC
- Install Easyphp, Moodle, run setup
- Take a second snapshot from the PC
- distribute the msi-file
Only disadvantage is that you get a msi-package for distribution with policyfiles with a windows 2000 server, wich means that the user can't choose anything (folders, icons, everything automatic without userintervence)
If you want to give it a shot go for it. Right now I am not very successful with my install package. Two issues come up while trying to create a distribution package for windows.
- If I
just use the EasyPHP install folder, then the user never agrees to the license
agreement that comes with EasyPHP.
(So I have been looking for alternatives to EasyPHP no luck yet)
- The moodledata directory needs to have permissions set. My packaging tools do not handle permissions on files.
The other option would be an install menu, where the user installs PHP then the next thing to install would be moodle then a script that creates the moodledata folder with the correct permissions. After all that the MySQL data folder is copied over with a starter database to replace the newly installed database file.
Any other suggestions, my well is running dry!!!
I used xampp for my easy-install-version. I really like that one. It doesn't put things in the registry. Everything (including your moodle database) gets installed in one folder that you can zip and take with you. It doesn't present a license, but includes all of them (it comes with a lot of modules, not all of them needed for moodle) in a separate directory.
I tried EasyPHP1-7. By default it installs in a directory called "easyphp1-7". The - included in a directory name does not seem to be a good idea. I had problems with it on XP Pro. Someone on the forum recommended renaming it.
Miniserver definitely makes the smallest install. I like the idea that it places all the files for the web (your directory www or htdocs or html) inside a (virtual) drive W:\. On the other hand people looking for an easy (all included) installation might be scared by a program that installs a second hard drive in their computer without their permission !
In fact, I'm not sure making an all-in-one moodle install is a good idea. I tried making mine (still needs a lot of manual tinkering though) to help a dutch teacher who wanted to try it out before convincing others in his company, but...
- installing moodle isn't all that difficult. Moodle was my first installation on a server ever and it went quite well.(Thanks for the great installation instructions !)
- installing it on your own computer the usual way (editing config.php, creating a database) is in fact a good way of preparing for the installation on a server and the administration of it (updates, backups, new modules) afterwards. People will expect easy oneclick solutions for these things as well....
- I'm already having a hard time explaining to people you don't need to install anything on your computer to use Moodle, because the program (I am definitely not going to tell them that it is in fact a collection of scripts ) runs on a server. I think it might confuse people if they find a lot of install packages on the Moodle site.
Just my 2 cents!
True, it could, but we'd just have to make the download page very clear about which package was for what purpose.
Moodle as it is with the current installation will still be available, but the all-in-one package will still have a lot of uses for demos, trials etc ...
In my option, the licence would also be a problem, since everything is installed automaticly (one click for everything). Your suggestion of installing Easyphp separate from Moodle is also possible, but less elegant of course, unless you can manage to get the moodleinstallation called from the Easyphp installation. Can you trigger another file to install from the installationmenu of Easyphp (or another package)?
Another problem using an external installationpackage is when you let users choose the installationfolder, A LOT will change in config.php, so you would have to be able to pass those path's to the installationpackage of Moodle
I've just been looking at some Mambo related sites. A one click installer has been developed which is really slick. It appears to work in the manner described in this post by Jan Dierckx
In greater detail look at http://dklab.ru/chicken/web/base.html (russian).
Use http://babelfish.altavista.com for translation.
I am defiantly upgrading the windows packages this weekend that are on my site. I will at that time look at an upgrade option, not a bad idea by the way.
Its Perl addon is 1.4.5
by the way, I never got the algebra filter working (tex is ok)
Has anybody got the algebra filter work in the winXP+xampp+perl environment?
I do not yet have the nerve to take this step, but I very much appreciate the time and energy you have devoted to this project.
I saw posts fly past on this issue but presumed that moodle for windows would be really arcane and require 'checking ones dependences' etc. But this is, cyber goats, awesome. Thank you very much for all the work that must have gone into this.
By the way, is there a recommendation as to which is the best, XAmp or EasyPHP? Is the only advantage of the latter that it is smaller?
Well I think that it is personnel preference as to which one is best. I like EasyPHP more so then Xampp yet Xampp has a lot of features in a small package. Yep its personnel preference.
I don't know, Floyd. I have the impression that installing this server software is pretty easy. Maintaining a well-run, secure server seems like another matter, though. I am afraid that I would get hacked within a week!
That was me throwing caution to the wind, not Floyd. I'd have to agree with your second point, if it's open to the outside world.
No way could I say you will be 100% safe befor anyone wants to flam what I am about to say please note, I have said NO ONE IS 100% safe on the net. But look at it this way what would a hacker gain from getting into you moodle site. ??? Also here is a link on how to set the password and username to something different for the packages I have on my site. http://goohio.com/moodle/important.htm
If you are behind a firewall or router that does not allow port 80 from the net, then running a local copy of moodle is no different then not. The firewall will not allow anything past it to your local computer. I truly think you would be just fine if you wanted to experiment with it. But then it comes down to what you feel comfortable with.
I've followed this discussion with great interest. It seems pretty clear to me (correct me if I'm wrong) that unless you want to make your local Moodle accessible from outside, you are already pretty safe if you have a firewall (and a router) installed. That is to say, the installation pack, whether it is the EasyPHP or the xamppp based, doesn't open any ports (especially port 80) to allow access to your computer from outside.
Am I right?
OK, if I'm right, now the question is: what would I have to do if I DO want to transform my computer into a Moodle server accessible from outside? One thing is very clear (and thanks Floyd for the intructions in http://goohio.com/moodle/important.htm) and that is that I have to setup a good password in order to secure the MySQL server. But what else do I have to do? I suppose I should simply find the way to tell my firewall (ZoneAlarm) to open port 80 for trafic from outside. Am I right? And if I have a router (which I do) also find the way to tell the router to allow access from port 80.
OK, unless I'm very mistaken, this seems fairly straightforward. What is very unclear to me is how would I or anybody else have access to my Moodle server in my computer from outside if I don't have any domain?
When I want to access to the main Moodle page I type http://moodle.org in my browser, when I want to access the Moodle I have for my courses in my university server, I type http://parles.upf.es/moodle , but what do I type if I want to access the Moodle I have setup at home?
I suppose I'm showing my ignorance about these matters, but if I tried to hide my ignorance I would never learn.
Thanks a lot for your cooperation in advance.
Yep. My router calls this a "virtual server" and lets you map incoming connections to specific machines on the the LAN (even swapping ports if necessary).
but what do I type if I want to access the Moodle I have setup at home?
You can find the external IP address of your home machine (actually the external IP address of the router, which is an important distinction... the router's external IP address is what's visible from the outside) by looking in the router config, or (the quick and dirty way) by going to a site like http://whatismyip.com. Then, supposing your external IP address were 188.8.131.52, you could reach your site from a remote site by going to:
Note that this will only work properly from outside your LAN. Inside your LAN, your machine most likely has its own private IP address. You should use that internal address to get to it from another machine inside the LAN (you can usually find the internal address by looking at the network config for your machine).
Potential issues here:
Your router may issue a different private, internal IP address to your computer every time you turn it on. Generally you can override this in the router config and tell it to always use the same internal address for your machine.
A bigger problem is that your ISP may change your external IP address from time to time (especially if you turn the router or cable/DSL modem on and off). You'll need to keep on top of it.
To get around this problem, and also to make accessing your system a little more pleasant, you can use dynamic DNS. This service requires that you install a small client that connects to the dynamic DNS server every so often. When your IP address changes, it makes note of that fact. Another advantage of dynamic DNS is that your computer will get a human-friendly domain name, such as yourmachine.dyndns.org.
I used to use http://www.dyndns.org when I was doing this, though I haven't had to do it for a while (plenty of servers at work to tinker with nowadays). There are many similar services (googling on "dynamic DNS" will turn them up), but I had good luck with dyndns.org, and their service appears to still be free for home users.
That's the technical side. A non-technical issue is that your ISP may not allow you to run a web server. I can't help you with that one.
Hope this helps!
I hope this helps, Tony summed it up realy well. If you need one on one help you can always e-mail me.
Actually, how does one go about adding a QA in the FAQ? I think with your last two responses we have a complete item concerning Moodle Windows application, its installation, security issues and the basics of setting up your own Moodle server.
When I look in the easyPHP window I see that MySql has a green sign (started) but Apache has a red sign (stopped).
Also, I was reading a tutorial on MySql that I found on the web and it says that I should be able to find a program called WinMySQLadmin that supposedly comes with the MySql package and helps you manage the MySql database, but it's nowhere to be seen.
I would be very appreciative of any help you can give me. I need to start putting my courses together soon and I don't have much more time to continue to fiddle with this (I'm sure if I could spend more time I would finally win the battle, though :-}).
Thanks very much in advance.
I am not sure why Apache is not starting on load. Just simply click on Apache and it will start up the web server for you. Then reload your browser all should work fine. Make sure there is a check mark next to the line that reads Launch Servers when application starts.
The package does not come with WinMySQLadmin. I recommend that if you want to manage your sql database that you download the one here on moodle and place it in the proper directory on your computer.
Hope this help
I've tried to start Apache independently of easyPHP by double clicking on apache.exe and I get the following message:
"fopen: No such file or directory
apache.exe: could not log pid to file c:/easyphp/apache/logs/httpd.pid
Note the errors or messages above, and press the <ESC> key to exit. 27..."
This is kind of weird, but then again anything related to servers will sound weird to me. Does that give you any clue as to what could be happening? As I said, I have a firewall installed on my computer but I've given easyPHP all the permisions that were requested.
I think I might try to install the other pack you prepared but I kind of wanted to go with easyPHP.
In the wizard that guides me through the installation (great job, by the way) I find a screen where it asks me for the name of my database (it comes with the name moodle as default. Since this is the name I assume is correct I just click next and then I get the following error message: "We could not connect to the database you specified. Please check your database settings."
I believe this is telling me that there is not such a database as 'moodle'. I have certainly not created it. Is your installation package supposed to have created it for me?
So that I wouldn't be more of a nuissance, I looked for MySQL tutorials and I followed instructions to try to fix the problem myself by creating a data base named 'moodle'. When I try to get in mySQL, however,I get the following error message: "ERROR 1045: Access denied for user: 'ODBC@localhost' (Using password: NO)".
While I'm at it, let me ask you also another question. Another problem I encountered in the installation was that the wizard told me I didn't have GD installed. Apparently your installation package it doesn't install it by default. When I tried to follow the nice instructions I got in the wizard I wasn't able to do fix the problem since any line referencing libgd.dll in my php.ini file (actually there is a php.ini in the php directory and another one in the apache directory).
Should I give up in this endeavor for now and come back when I've learned some mySQL basics? or is the problem unrelated to my obvious ignorance about this domain?
Again, thanks very much in advance.
You are so close dont give up now!! The Moodle database is there, when you come to the screen that asks you to set the database preferences. Please put in user root with no password. Latter on when your ready for prime time on the net with your setup you can go to http://www.goohio.com/moodle and I give a step by step how to change the database password. Then you will just edit the config.php to reflect your new changes that is when your ready to have your site up on the internet.
No GD Lib is not on by default we wanted to keep this package as generic as we could. But it is easy as pie to turn on. Right click on blinking E, > Configuration > extensions > GD2.
So ignore the warning and turn that on after you get it setup.
Also, could you clarify your instructions concerning the installation of the GD lib? You say:
"Right click on blinking E, > Configuration > extensions > GD2." but I don't really know where I should do that. Where is the blinking E? Is this in the configuration menu once I have managed to login into Moodle?
Thank you for your patience. I hope this thread can help others that are trying to install Moodle locally (perhaps Art can use it when he finally decides to proceed with the installation on his computer ).
Ah! The blinking E was easyPHP. Duh!
Not that the blinking E from easyPHP was not obvious in the lower right corner of my PC, but I failed to make the connection when Floyd mentioned it.
OK, so the GD problem is solved, I guess. Now I only need to be able to login, which doesn't seem to be an easy thing to do.
OK, can anybody tell me how to recover it? If the server is setup in my own computer, it should in principle be easy to find and edit the file where the administrator username and password are stored. That would be easier than having to reinstall everything. The place where it ocurred to me to look was config.php (both in the ...\www directory and the ...\www\admin directory) but I didn't find any reference to the password there.
I've installed the package now four or five times and I swear I don't really go through any page where it asks me about my city, etc during installation. The only two places where it asks me about a password are the place where you advised me to write 'root' as user and then leave the password blank and the other is one place related to smtp authentication. In no other place in the installation wizard do I get asked to introduce an administrator username and a password. The only place where I do get asked about a username, password, my city etc. is when I try to create a new account. But this is only after Moodle has already been installed I try to login. So it looks like I don't go through any form or page where I can sign in as administrator. Could this be the case? It does look a bit bizarre to me.
This should not be an issue related to the package you put together. I mean, the page where I should fill in the form asking me for an adminstrator username and a password is part of the Moodle wizard and should not be affected by anything you did to put together the package with the whole installation for windows, right? I am very confused.
Besides, no matter how many times I install it, when I try to create a new account (since I cannot enter as an administrator) I get the same message saying "Tried to send you an email but failed!".
This should really be very straightforward but it isn't.
Thanks for your help. The posts you addressed me to seem to be related to cases of people who lost their admin passwords. Yet, as I was trying to explain in my previous post, that doesn't seem to be my case. Maybe I'm going crazy but I would swear that in the whole process of installation (I've already gone through it at least 5 times) I haven't introduced any admin username and password. At least I'm not aware of it.
I know this seems impossible since the installation pack must be prepared in such a way that at some point you are asked to introduce some username and password, but I haven't seen it. As Floyd was saying there should be a screen where it asks you about your city and e-mail address and that is the screen where you are supposed to setup your admin account, but I don't come across any such screen during the installation process (after deleting directories and repeating the whole process so many times I'm pretty sure about this by now).
Following the suggestions of the threads you recommended I've identified a file inside the mysql/data/moodle directory called 'mdl_user.MYD'. Since I don't know how to open it I used a viewer I have and what I see is the incomprehensible garble that I enclose below. I can see that there is some stuff that must be the hash they talk about in the message next to the word 'admin', so I guess there must be a username and password for the administrator but, as I said, I don't know how or when I introduced one If I post this file could anybody open it and tell me what the hell my username and password are?
Guest Userroot@localhost enÆBIThis user is a special user that allows read-only access to some courses.@AÞÿç]ôemailjosep1b36ea1c9b7a1c3ad668b8bb5df7963fJosep M.Fontanajosepm.email@example.com BarcelonaESenÆB5@AFqOcyk111UbSt8L"
Sorry to bother you all but I don't know what else to do. As you say I'm sure it will be worth it but it is really frustrating .
During the install do you recall a screen that looks like this.
This is the point where you put in a admin user account.
* Current release information
* Upgrading data base
* Setting up block tables
* Setting up module tables
* Site settings (here is where I would have expected to see the request for the admin password, but there is nothing to that effect)
After I introduce the information for the Site settings, I go directly to a screen with the heading "Login to the site" where I find the two familiar colums: a) "Returning to this web site?" b) "Is this your first time here?"
Is it possible that something is missing in this installation package? Has anybody installed successfully the version that I downloaded? (remember that the first version I downloaded had some problems and then you fixed them and asked me to download the fixed version? This was just a couple of days ago, so I don't know whether more people have tested that particular version). This is a bizarre problem and unless there is a little bug in the installation package I don't understand why I don't get to see the screen whose image you show in your posting.
This is the screen I was expecting to see. The first time I sent a message concerning this problem I wasn't sure that I had not spaced out and I just didn't remember what password I had introduced. But now I am completely sure that I just don't go through that screen in the whole installation process.
Any clue as to what might be going on?
Hey, I Have the same problem. I was installing 1.3 on a server using fantastico. I was never asked for administrator password and now I cannot use the moodle site.. Any suggestions...
So, first find your way to phpMyAdmin. (you'll need to select your database name from the drop down box).
You feel secure now Art?
Just run your machine against the security tests of a firm like Sygate: http://scan.sygate.com/
Don't panic, just install one of the many free firewalls, for example the one that is hidden on the bottom of the same company:
I like it because it allows me to monitor the ongoing processes. Before I start the server I put my shields up.
(Only drawback is that if you use Outlook as a client, it cannot pass this firewall. Outlook from a webbrowser is no problem)
(When you start easyphp or xxamp with moodle behind that shield, the firewall will ask you within minutes to allow visitor X access on your apache server... SAY NO and you are save...)
- install your config.php's outside the webtree
- use a username password login for the phpmyadmin that is inside easyphp and xxamp (Martin's phpmyadmin is secure inside Moodle
- change the login for the database access from default UN "root" PW "" to a real combination.
(Maybe a native speaker can describe the step by step changes Art has to do?)
OR... can the install not generate random username/pasword combinations for all this? ....the user has to write them down during install. (Or reinstall again if he forgets that)
I subscribe what you said with whole my heart: After several ooops-acts - of course killing the courses of my most critical users - I feel more and more the need to have an real admin doing these secure things for me
...and he should also say NO when I want to do a quick change or so...
(We suffer now a SPAM attack on our old servers because of some holes in some forgotten programs on the testserver, NOT MOODLE!!! .. so in the Dutch list you will miss our servers now and get the website of our school)
Running moodle on your laptop or other pc is only for try-out, demo or so.. (create a course, make a backup and beam it up to your real server. I did that a lot before I got glassfiber.)
Use for your real activity a server with a good backupsystem: that backupsystem will be the most expensive... You could consider hiring a place ona good coomercial server for that reason..
I have to admit that I am a little nervous, though.
I just download the new package (the Xampp version) from your site, and during the installation (the install.php), is showed this error message in step 2:
We could not connect to the database you specified. Please check your database settings.
I assume that I should just leave the User and the Password blank for the first time installation, right? I think maybe it's might be an Internet security issue as I just installed the new WIndows XP service pack 2 few days ago and after I did that, it seems to install a Microsoft version of Internet firewall or something.. is my problem related to this service pack? Thanks in advance...
Nope you need to put in user: root and leave password blank. You are using mysql database and if you are only running it on your local network then you need localhost for the Host Server. SP2 is evil !!! but I dont that that is your issue with this.
Thanks for your promptly reply. I tried to use the "root" username and leave the password blank, but still no go. I think it IS the SP2 that caused the problem. Should I maybe remove the SP2?? Any other way to get around it without removing the SP2? The error message still says "We could not connect to the database you specified. Please check your database settings." and I don't know why it can not connect to the database (I'm using localhost to run Moodle on my XP box locally for development purposes)...
Any tips or suggestions are highly appreciated. thanks!
I still do not think the prob is on your end. Please uninstall moodle and redownload it from my site and install. I have recompliled the distro so lets see if that fixes your issue. Let me know
We will be producing a cd containing openBSD 3.6, apache, php and mysql.
the plan is to get a final year project student to do it, the cd will be bootable, and aside from a few questions, it will install everything you need, including moodle, then point the user to the new moodle admin page to setup moodle.
We tend to use OpenBSD rather than windows, as the security and performance is hugely superior.
We work with schools, and often they just give us old PII machines, so a windows server would cripple them, and then collapse in a heap of worms and trojans.
A windows installer would be great though, I regulary encounter people who have windows admin experience and no unix experience, it's a steep learning curve...
First of all, would it be possible for their to be a separate forum for this "Moodle for Application Windows" discussion? My guess is that the popularity of Moodle for Windows will grow and grow.
For get the below. I downloaded the latest version (uploaded on 4th Oct) and in that Apache starts fine.
When I tried to installl the easy php version Apache would not start, or rather it stopped again almost immediately with a message saying "Apache: Unexpected end of Apache!". Resarting Apache gains the same message, after a while. Pressing the e in the task bar and attempting to see the logs yields an empty notebook window overlapped with an error saying "incorrect path"
I am using Moodle1.4+andEasyPHP from the 4th of september. Perhaps there have been improvements since then.
The reason why I wanted to use it was because the server was not working at my university. It seems to be functioning again now so I am not in a desperate rush to use Moodle on Windows. But it would be nice, since I expect it would be a lot faster.
I am using Japanese Windows 2000.
Often the fact that it is Japanese causes problems.
I have Moodle for Windows working on my win2k home machine and I think it is the most spiffing, cool, useful, fabulous optional addition to the Moodle suite that I have had the pleasure to download. It is wonderful. Everyone should have one!
It is so fast! I recommend it to everyone. Editing an online Moodle installation can take several seconds for each click but editing a Moodle for Windows, each click takes effect instantaneously.
I will update my courses using my Moodle for Windows and then restore them to my Moodles online.
Thank you, thank you, thank you!
Can I post to the general problems forum as well? This deserves the widest appeal.