Quantcast
Channel: Installing and upgrading help
Viewing all 46816 articles
Browse latest View live

Re: MySQL problems when installing/upgrading to Moodle 2.9

$
0
0
by Petr Skoda (Totara LMS).  

The problem is that it is not MySQL - you are using MariaDB. In your config.php change $CFG->dbtype = 'mysqli'; to $CFG->dbtype = 'mariadb'; and your problem will be solved.

Re: MySQL problems when installing/upgrading to Moodle 2.9

$
0
0
by Usman Asar.  

Elaine,

Though there are side-by-side versions of MariaDB and MySQL that matches the versions numbers, like 5.x.x of MySQL will as well be available as 5.x.x of MariaDB.

But, recently MariaDB have released another branch starting from version 10.x.x together with their already available branch series of 5.x.x

now your webhost have installed the 10.0.14 version, and whilst install, you may be choosing MySQL as your installation database, so try choosing MariaDB as your database, like shown below (if doing a new install).


Else if you want to modify current install, then simply try changing the config.php and choosing "mariadb" as database driver rather "mysqli" ----> but I doubt on version 10 it will work straight away.

This MAY solve your issue, though choosing MySQL where MariaDB is installed shouldn't be an issue as MariaDB is drop-in replacement for MySQL as well, but only for version 5.x.x series, not sure about version 10.x series.

btw, which hosting provider are you with? (want to know who is dumb enough to install 10 series rather than usual 5 series MariaDB)

Re: MySQL problems when installing/upgrading to Moodle 2.9

$
0
0
by Elaine Wilson.  

Petr Skoda  Thank you.  It seems so obvious now.

The system administrators at my hosting company had this for 3 days and could only advise me to upgrade.

Much appreciated.  The installation has run without any problems.


Thank you Usman. My hosting company is 123-reg.  I have passed on the solution to them in case they have other clients with the same issue. 

Re: Problem during moodle upgrade from 2.3.2+ to 2.9

Re: Help backing up my course

$
0
0
by Rick Jerz.  

Ken, I am glad that you explained why you do this.  I thought you do these things just for fun.  smile

(Good old file naming problems...)

Re: Help backing up my course

$
0
0
by Ken Task.  

In a way it is 'fun' ...  like solving a 'mystery' ... but hate when it's machine over man ... when it should be the other way round ... MAN OVER MACHINE!

Since I've probably been unsuccessful more times than successful (I learn the hard way!), I've a higher tolerance for failure - but at my age, it's wearing me down! :|

BTW, have been successful restoring what was a 2.7.1 course backup to a 2.9.new after 'doctoring' some .xml files and repackaging. 

Took a long time!  But don't have the time to find quizzes that have missing images, etc..   so have invited Curt (offline) to login to the site where restored so there are at least 2 sets of eyes on the issues.

'spirit of sharing', Ken

Re: Help backing up my course

$
0
0
by Ken Task.  

For those following this 'mystery' ...

Guess on first error line above from observing the backend of a restore of this course:

97223f272b24319bfd108819819461ae looks like a hashed named directory which Moodle creates in

/moodledata/temp/backup/.   and uses as a build area for restoring.  Contained there in are the extracted directories and related .xml files ... as well as moodle_backup.xml which is the 'road map' (so to speak) for the restore process.

When I restored this course to another server it did take a long time ... and there was only one warning in logs:

PHP Warning:  Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0, referer: http://site/backup/restore.php

"How many input variables may be accepted. Use of this directive mitigates the possibility of denial of service attacks which use hash collisions. If there are more input variables than specified by this directive, an E_WARNING is issued, and further input variables are truncated from the request. This limit applies only to each nesting level of a multi-dimensional input array."

Server to which it was restored:

CentOS Linux 5.11

Intel(R) Xeon(R) CPU E5520 @ 2.27GHz, 4 cores

Memory 16GB
PHP 5.5.25 (cli) (built: May 15 2015 07:47:31)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies
    with Xdebug v2.3.2, Copyright (c) 2002-2015, by Derick Rethans

So from what I read above and know that some providers of remotely hosted stuff actually hide such from customers that might be an issue for Curt.  That's a guess.

Have the course restored on another server and invited Curt to login and check it out.

We'll see if I guessed right on what was 'doctored' in xml files before repackaging the backup and restoring.

'spirit of sharing', Ken



Re: Help backing up my course

$
0
0
by curt bixel.  

Rick,

I also have a small VPS server.  I am hosted a Cloudways.  They have been excellent and have 1 click moodle 2.9 installation.

There is nothing else going on on this server aside from this one class.  I have another server that has 2GB ram and it seems to hold up well with 3 classes running even if 25 students are actively clicking away on a quiz.  (In my experience, if the quiz module won't crash the site, pretty much nothing will. )


Re: Help backing up my course

$
0
0
by curt bixel.  

Ken,

I think we are onto something.  I went and checked out my course that you uploaded to your website.  Everything works perfectly.   The images are showing in the questions and everything else works. 

One interesting thing I noticed that might actually be related.  If you notice at the top of my page there are some pictures and to the right of them are the names of all my units.  These are actually links to the individual units.  Clicking one hides all of the other units.  It is similar to the jump menu, but the students find it easier to use.   These seem to work just fine on your server.  In the past, whenever I have restored a course, these links would point to the old server and I would have to go through them and fix them one at a time.  I am not sure how these links managed to make it through the restore process, but they seem to.

I think that pretty much points to my server as the problem.   Do you think I need to change one or more of the settings?

Cloudways has a very nice user interface I used to set the following settings:







No longer see Course Administration block

$
0
0
by Marilyn Komarnisky.  

We upgraded to 2.8.5 a few weeks ago.  Since then, if we create a new course neither teachers nor managers can see the Course Administration block.  In order to get to course administration we now have to follow this path:  My home > Site administration > Courses > Manage courses and categories > click on the category the course is in > click on the specific course name to finally arrive to the point where we can click on Enrolled users.  To say this is tedious is a gross understatement.

Is there a likely explanation why the Course Administration block is no longer visible in newly created courses.?  It still appears for courses created before the upgrade.  Even our site administrator cannot see the Course Administration block And Course Administration is not a choice available in the Add Block menu.  We have checked to see if some plugins became disabled but all looks fine there.

We are really stumped.

Re: Help backing up my course

$
0
0
by Ken Task.  

In the second panel under MySQL - encoding is US ASCII - for a long time now Moodle checks for encoding and thought it required UTF8.   But compare this server with the one you have working if on same hosting provider systems.

I saw your response to Rick - me thinks 2 Gig memory is pretty low.   Would love to watch a realtime 'top' when you are running something massive like a restore.

A backup of a course should insert a thing to have the restore process read the CFG's URL parameter when restoring for full URL's to local server resources.   That's why your build menu in Section 0 does work on mine.   Those sorts of customizations were designed to get around the scroll of death.   Your course is set to show one section at a time ... provides links to previous section and next section automagically in 2.9.

There were several items I 'doctored' by editing files.xml ... once I saw a pattern I did a global search/replace in nano to fix them.   Some had up to 20+ references in the .xml file.   All the references in the files.xml filenames that had () characters in their name were changed to remove those characters.

When the backup was extracted during the restore processes review screen, several references like this one:

 [ [ pluginname ] ] Scientific Notation and Sig Figs Checklist

The [ [ pluginname ] ]  means my server didn't have some addon you have installed on your 2.7.  Have it on the 2.9?   Is it compatible with 2.9?  The name you gave it suggest 'Checklist' add-on.   The restore did work even though I saw no 'checklist' resources in the course that restored.

So ... you could copy the code in that Section 0 and paste it into a TextEdit (know you use a Mac) file edit/store locally.  You need to download the images in that Section 0 as well.   Keep all of that in an archive folder should you want to put it back.   Then remove it.  When I view your course, it's 'hefty' processing just to get Section 0 generated and shipped to browser (am on a farily fast connection at home too!).

As per question in a private message sent to you, did you check out the quizzes that had images missing?

There are too many of them for me to check/find out.   So please return to the site provided and check that those images are indeed there.

If everything looks ok in the course on my site, let me back it up (don't try the Moodle UI to backup).  I do the command line thing out to a directory NOT in Moodle's filedir.    I also 'watch' the build in realtime as well as logs while the backup is being run.   Once I've backed it up sucessfully, I'll put it out somewhere for you to download.   I've given you my EMail address.   Please use it.   And, please use your own EMail so I can communicate directly with you providing the download link.   Once you have downloaded and communicated back that you have successfully downloaded, I need to remove any/all files, etc. related to the course.

BTW, I cannot promise that you will be able to restore this course to your system, but it's work a shot.

'spirit of sharing'. Ken


Re: Help backing up my course

$
0
0
by Ken Task.  

I didn't take a screen shot when I restored your course, but my server did the same thing with your course ... uhhhhh, I waited a lot longer than you did.   Matter of fact, did some other chores, left it running at that point and returned about 30 minutes later to see the 'progress bar' did start progressing.

So it could be that you just didn't wait long enough?

See other posting concerning your course from HELL below ...

'spirit of sharing', Ken

Re: Help backing up my course

$
0
0
by Ken Task.  

BTW, didn't say this earlier ... have to compliment you on that course.  It's pleasing to the eye and I can tell you've put a lot of time into it.   It's NO wonder you want to keep it and restore to your 2.9. ;)

Let me hear from you via regular EMail.   Can't leave your course on the server where it resides right now.

'spirit of sharing', Ken

Re: Upgrading to 2.9 - get PHP MySQLi Error with PHP 5.5

$
0
0
by Emma Richardson.  

I am running 2.8 and 2.9 in a development environment on PHP 5.6.7 so I can't see why 5.5 wouldn't work...

Re: New Video Tutorial- How to Install Moodle on Shared Hosting via cPanel (Not Fantastico)

$
0
0
by tom edwards.  

Hi Antoine,

Get PHP installed with a web server. Unless you want to do it under IIS or some other way, the packages on the Moodle download page are a good solution. With this properly configured, you can continue with a standard Moodle installation on IIS.

Had the same problem with my no-show socks blog dedicated to teach how to dress up for men when I first started with a IIS server, but it worked fine after a few tweaks.

I recently switched for wordpress and I have to start again to find a solution for that platform.

Let me know if I can help,

All the best,





Re: Upgrading to 2.9 - get PHP MySQLi Error with PHP 5.5

$
0
0
by Geoff Diggles.  

It may well work with PHP 5.6 I didn't really go into that version, and the server is happy with PHP on all versions relating up to 5.4 when doing windows IIS test for PHP and I got ok results on 5.6 as far as windows was concerned but 5.5 was not a happy bunny. As I say I have time ti dig into that a bit further knowing 5.4 will work for me.

Re: Mixed Moodle versions detected

$
0
0
by Joey Barclay.  

I have tried everything I have seen on these old posts to try and resolve my issue. I have the same problem of the "Mixed Moodle versions" error page and I have tried to do the rename of old moodle folder create new one upload and unzip new version, etc... Nothing has worked. First problem is I am running Linux on a VPS using the Plesk panel hosted by GoDaddy. I am not able to access the server and run any command line utilities as they do not allow SSH. Their isn't even a Moodle folder, it is called httpdocs but even after that realization and renaming that to old and creating new httpdocs with new version of Moodle and copying over config.php, moodledata it still doesn't work. I also looked for the "search" folder to remove it, as a temp workaround, and I cannot even find a folder called "search" anywhere in httpdocs or even my moodledata folder. 

PHP version is 5.4 and I was trying to install 2.8. Obviously the error is a result of PHP scripts of different versions. (FYI: I hired someone to do this for me who had experience and he up and quit and I have been learning from the beginning as I have never has experience with Moodle prior to this. 

Anyway, I was finally was getting the "Session Handler is Misconfigured" error. Cleared local cookies and cache in two different browsers and then I got a blank screen so I thought I was closer but to try and resolve that I removed the "Cache" and localcache" folders from moodledata and now I am back to getting the session handler is misconfigured and no cookie or cache removal will do anything now. Seriously stuck in nowhere ville... Any assistance from anyone would be fantastic.

Re: Upgrading to 2.9 - get PHP MySQLi Error with PHP 5.5

$
0
0
by Ken Task.  

CentOS 5.11

PHP 5.5.25 (cli) (built: May 15 2015 07:47:31)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies
    with Xdebug v2.3.2, Copyright (c) 2002-2015, by Derick Rethans

mysql  Ver 14.14 Distrib 5.5.37 using mysqli (socket - localhost)

Multiple Moodles:
elis/version.php:$release  = '2.7.8+ (Build: 20150521)'
ltimoodle/version.php:$release  = '2.7.8+ (Build: 20150521)'
moodle19/version.php:    $release = '1.9.19+ (Build: 20130513)'
moodle25/version.php:$release  = '2.5.9 (Build: 20141110)'
moodle26/version.php:$release  = '2.6.11 (Build: 20150511)'
moodle27/version.php:$release  = '2.7.8 (Build: 20150511)'
moodle28/version.php:$release  = '2.8.6 (Build: 20150511)'
moodle29/version.php:$release  = '2.9+ (Build: 20150514)'

Apache running under mod.

Issues?  There might be but haven't run across them yet.

'spirit of sharing', Ken

Re: same server can have moodle2.4 and m2.8?

$
0
0
by Usman Asar.  

Chris, I dont see any issue with latest versions of PHP and MySQL to handle 2.4 or even earlier, as if you see requirements for PHP and MySQL, it always says minimum, so any version above that should work fine.

If you still think there could be issue, then a web server can handle multiple versions of PHP at same time, where one application may not be updated to handle latest PHP can make use of older versions side-by-side.

Re: Data directory - data location is not secure

$
0
0
by Rick Jerz.  

You probably don't want to hear this.  Seek out a different hosting company.

Many of the $5/month hosting companies provide the ability to move your moodledata folder up, and out of your public Internet folder.

Viewing all 46816 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>