Jump to content

JamesBray

Members
  • Posts

    9
  • Joined

  • Last visited

Reputation

0 Neutral

1 Follower

About JamesBray

Personal Information

  • Occupation
    IT Systems Manager
  • Location
    Dorset, England
  • Homepage
    http://www.jamesbray.me
  1. Guys, I need help! Yesterday, while preparing my site for upgrading to moodle 2.0, I was looking at my enviroment variables, and I noticed that CURL wasn't installed. This is only a reccomendation in 1.9, but a requirement in 2.0. Anyway, after un-commenting extension=php_curl.dll in my php.ini, it still didn't work, and while googling around, the advice was that PHP 5.2.14 didn't handle CURL very well and that I should upgrade my PHP to 5.3.3. So I removed PHP, which was installed in C:\Program Files\PHP, and following the 5.3.3 installation advice, installed the new version in C:\PHP (because it doesn't contain a space). So I did that, and setup my new PHP.ini (attached) and restarted IIS, and went to phpinfo() which as you can see confirms the install has worked, but when I try and look at any of the moodle pages I get the error message: Error: Database connection 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 Here is the contents on my config.php, which looks fine to me (password changed obviously): ------------------------------------------------------------------ <?php /// Moodle Configuration File unset($CFG); $CFG = new stdClass();$CFG->dbtype = 'mysql'; $CFG->dbhost = 'localhost'; $CFG->dbname = 'moodle'; $CFG->dbuser = 'moodleuser'; $CFG->dbpass = 'SecurePa55w0rd'; $CFG->dbpersist = false; $CFG->prefix = 'mdl_'; $CFG->wwwroot = 'http://moodle.purbeck.dorset.sch.uk'; $CFG->dirroot = 'D:\IIS\inetpub\wwwroot'; $CFG->dataroot = 'D:\moodledata'; $CFG->admin = 'admin'; $CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode $CFG->passwordsaltmain = '{5Q]5?]BK.Hk,358~MTs,hXJqHJttN'; 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.?> ------------------------------------------------------------------- Any advice? I am desperately pulling my hair out at the moment trying to get this going, but to no avail. I am using MySQL, IIS 7, Server 2008 SP2, Moodle 1.9.9+ Thanks in advance for the help! php.txt
  2. Good to see this is being used! Why not invite other support people you know?
  3. Hey guys, just a quick message. Me and a couple of other people from schools around the UK have been chatting on IRC and helping answer each others questions, and I thought you might like to join in. There is a stand alone client here that will take you straight to the correct server/channel: http://www.theatomicedge.com/chat.html (I will pay the $10 a month or whatever to remove the ads if I get enough interest) Alternatively, if you have your own IRC client, we are on the irc network detailed here: Server: irc.synirc.net Channel: #EduTechiesUK I'm AtomicEdge over there. Hopefully I will see you soon!
  4. Yeah I mean setting up and IRC channel somewhere would take 5 minutes, and using a web client like mibbit, everyone will be able to connect okay...
  5. I'm having trouble connecting... Is the problem at my end or yours? Would an IRC channel not work better :-/
  6. Hello from South Dorset!
  7. There is most likely an allow that is overwriting the deny. Check your allow list for any words that may be included in the URL, like db perhaps? On the SWGfL system AN ALLOW OVERWRITES A DENY. Always important to remember!
×
×
  • Create New...