Dear N Hansen
It is generally no problem to update the moodle folders in the installed installation package, replacing them with a new version, but leaving the config.php as it is. I have done this a lot.
However, there is one important proviso is that if the old version of EasyPHP or XAMPP uses a version of mysql (or php for that matter) that is not compatible with the version of Moodle that you are trying to install, then it will not work.
As far as I know, for instance, the 1.7 version of EasyPHP is not compatible with moodle 1.6 because the version of MySQL that it contains is not UTF8 compatible. I am not sure about the 1.8 version of EasyPHP (I have written to Floyd but alas I did not recieve a response).
I would use the XAMPP package produced by ELoy, which contains 1.6 but it had issues at the time that I downloaded.
As for testing....you could use a database tool such as My DB Studio (recommended) or PHPMySQLAdmin to take a copy of and then duplicate your database. And then tests out the new version on the copy. If you are using easyphp then the new moodle folder (eg "moodle16") should go in the easyphp/www folder and the config.php will have to be change to reflect the difference in the path to the moodle installation. I have used the latter technique to attempt to upgrade before deleting the old folders, but I have yet to duplicate a database for testing purposes.
The path to the data base is
$CFG->dbhost = 'localhost';
or (I am not sure why you would need the following)
The datafiles are generally at
$CFG->dataroot = 'c:\easyphp/moodledata';
$CFG->dbtype = 'mysql';
In the setup the database user is root and the password is blank.
By the way, I am mystified by the instructions for installing XAMPP in the Moodle docs. I figured out how to install it on my own, and the installation process described in the docs is nothing like what I encountered. They call for downloading some separate XAMPP thing, which wasn't necessary at all with the package from the downloads page. Someone should really take a look at that because it could be totally confusing to someone. I just got lucky because I never saw the instructions before I attempted it (or maybe they didn't exist yet).
The instructions at MoodleDocs are accurate for installing Moodle on a Windows computer using XAMPP. They aren't intended to be for the complete install package found on the download page at moodle.org (they don't claim to be for that either ).
I'll add a comment to the page to make that clear in future. Thanks for pointing this out.
There's a page for the complete windows package which you might wish to update with some instructions.
XAMPP 1.5.1 has the following
Thanks, updated. The page title was one level "up" on the Windows installation page.
Apache 2 is starting...
apache.exe: Syntax error on line 42 of C:\moodle\apache\conf\httpd.conf: ServerRoot must be valid directory
Apache could not be started
Does anyone have any clue about this? Line 42 currently reads:
Also with double checking your Skype settings if Apache won't run - see troubleshooting here
I did have trouble with Skype but I shut it down and things were fine after that, so that isn't the problem I am having now.
Hi, The one below....
You can check if the panel is starting the correct instances on Apache and MySQL by clicking the "Explore" button and checking that the moodle files you are trying to access are within the folders displayed. If not, then you would need to launch Apache and MySQL without using the XAMPP control panel.
I hope this helps as I'm not sure if you're attempting to launch Moodle in the complete install package you downloaded or in the full XAMPP set up. It's probably best to have one or the other.
Btw, I looked at the XAMPP file download pages at Sourceforge last night, the versions of Apache etc. are listed for most releases - click "Notes" next to each release header.
No need to turn it off, just follow the guidance in the Troubleshooting section of the relevant page at MoodleDocs.
If you're launching this from an icon, check its properties to ensure it's pointing to the correct location on your computer. Also compare this location to those in your config.php.
Double check that you really did delete everything too.
Double check the path in your browser corresponds to the location on your computer. What follows "localhost" in your browser address bar should coincide with the path after "htdocs" in your Windows Explorer address bar.
I changed that line to /moodle/apache (and another one to /moodle/moodle) and everything started up, but now when I go to localhost, I get the following message (which I know I didn't get the first time I installed this):
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Apache/2.2.0 (Win32) mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color PHP/5.1.1
I am getting the same Error 403 (Access forbidden!)
I am running MOODLE 1.6 and it was running perfectly alright before i made amendments in httpd.config from #MaxRequestsPerChild 100 to
and in php.ini from #memory_limit = 32M to memory_limit = 16M just to improve the server performance as recommended in http://docs.moodle.org/en/Performance
I have reverted it back but still getting the same error message
Can any body please help?