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

Migrqting from windows installer to moodle 3.1.2 Full Server

$
0
0

by Maverick IT.  

I have a moodle windows installer and i want to migrate it to a new server with separate XAMPP installed separately ..pls help me to migrate the  moodle data .I dont want to loose anything since it has lot of data


Re: Error after update to 3.2

$
0
0

by Ken Task.  

Well, might be gaining on this ... at least you see something in the popup screen that provides clues/places to look.

In the screen shot, it cuts off the file it was pointed to ... but line number is provided.   What is the name of that file?

So let's go back here a minute ... upgraded from 2.7 to 3.2.   How did you do that?

Jump from 2.7.x (maybe not highest) directly to 3.2.highest?

Overwrite files in moodle code?  Fresh 3.2 code from zip and config.php file + others (theme?) moved into/over to new code?  Git?

Just did a diff on the javascript.php file between a 2.7.x and a 3.2.x and there are lines that have been changed.   The filrst file (the one I cannot see) might have also undergone a change.

No one else seems to be saying 'me too' .... soooooooo ....

What is the default theme using right now?  Have we tried changing theme?

'spirit of sharing', Ken


Re: Can't get through the installation process! Problem with admin account setup

$
0
0

by Ken Task.  

That's rather strange ... don't think I've ever had the CLI install fail.

So did you happen to record what those errors were?

Also, I noticed one has to be very accurate with mouse click to open the password box.   You are clicking on the pencil icon, correct?

'spirit of sharing', Ken


Re: Migrqting from windows installer to moodle 3.1.2 Full Server

$
0
0

by Ken Task.  

A migration of a site on any OS platform requires making a full site backup ... that's an archive of the code, an SQL dump of the database, an archive of the moodledata directory.

https://docs.moodle.org/32/en/Moodle_migration

So on the server where the site is to be cloned ... guess you use your GUI installer ... then find the locations of code directory and data directory created.   Replace (not overwrite) those with backups from the other server.   Drop the database created by the GUI, re-create a new fresh database using PHPMyAdmin then import the sql file.

Not done yet ... edit config.php file and update wwwroot for the new server ... IP, FQDN of new server.

And then login, go to: http://site/admin/tool/replace/ via URL of browser, Search for:

http://oldsite/ - include the protocol and trailing slash

replace with http://newsite/ - ditto.

Purge the caches.

Test.

'spirit of sharing', Ken



Re: Deactivate the mandatory field

$
0
0

by Emma Richardson.  

All that checkbox does is make it mandatory to have an enrollment key.  It does change the functionality of the feature at all.  The only reason to have it checked is if you do not want teachers to be able to remove the keys.  Just uncheck it and leave it unchecked.

Re: Database connection failed - Moodle 3.2.1

$
0
0

by Joao Beca.  

Hello Emma,

The Database is webhosted, Its created and is empty.

I think i'm using the correct location as i typed in the file config.php the web server URL (phpmyadmin.nuxit.com)

If i go to the website and type the username and password, I get access to the database. But just if I use the "server choice"sql3, and I don't know how can I put this in the file.

Thanks a lot.

Re: Database connection failed - Moodle 3.2.1

$
0
0

by Joao Beca.  

Since is web hosted, i need to ask to the service provider do that, right?

hugs.

Re: Error after update to 3.2

$
0
0

by Daniel meanock.  

its Left to the moodle guru once again!! smile:P

Right ok to answer the questions :


That is the full error provided : 

JSON Parse error: Unrecognized token '<'


parse@[native code]ln: 23http://portal.athenaschool.co.uk/theme/yui_combo.php?ro

parse

ln: 89http://portal.athenaschool.co.uk/lib/javascript.php

complete

ln: 40http://portal.athenaschool.co.uk/theme/yui_combo.php?ro

_notify

ln: 31http://portal.athenaschool.co.uk/theme/yui_combo.php?ro

notify

ln: 23http://portal.athenaschool.co.uk/theme/yui_combo.php?ro

_notify

ln: 43http://portal.athenaschool.co.uk/theme/yui_combo.php?ro

_procSubs

ln: 27http://portal.athenaschool.co.uk/theme/yui_combo.php?ro

fireSimple

ln: 39http://portal.athenaschool.co.uk/theme/yui_combo.php?ro

_fire

ln: 27http://portal.athenaschool.co.uk/theme/yui_combo.php?ro

fire

ln: 26http://portal.athenaschool.co.uk/theme/yui_combo.php?ro

_evt

ln: 18http://portal.athenaschool.co.uk/theme/yui_combo.php?ro

complete

http://portal.athenaschool.co.uk/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js&rollup/1487455498/mcore-debug.js:23968:28


So if you remember (probably not) but i had issues around 12 months ago moving a moodle site from one server to another i think the issue was ftp causing all downloadable content within my moodle to become corrupt, any who recently i have solved this this was the step i took, it might also be worth nothing the them i was using was redundant and no longer supported by the developer, so here are the steps i took to achieve it :

1 - Set up a new moodle (2.7 to match the current version of the old moodle) on new server (dedicated) and new domain (moved moodle to new domain)

2 - I copied my moodle data to new server from old

3 - Imported DB from old moodle to new

4 - Removed redundant theme and any no used / redundant plugins (the proper way, using uninstall within moodle)

5 - Checked all data was their and it was (might be worth noting at this point i was getting these pop up errors whilst using the default basic moodle theme

6 - Updated straight to 3.2 (it says according to moodle this can be done 2.7+ ? ) - to update i completely deleted the whole moodle directory, i then copied in the 3.2 fresh copy then finally copied back over my config.php when i loaded the site it updated the Db and showed successful.

7 - I installed our new theme - on the whole works great apart from these errors and occasionally failing to load the odd icon but when refreshed they load

- I still get the same using any theme  although i did have the Barracuda convert error, which i have now recitfied and it seems much better since that, would that have any bearing on it ? 


Thanks again Ken <<<---- Genius! 



Re: Database connection failed - Moodle 3.2.1

$
0
0

by Rick Jerz.  

Probably so, unless they have provided you the tools to do it yourself.

Re: Cannot Install Moodle 3.2.

$
0
0

volgens Marcus Green.  

Running Moodle on Unix on the AS400 is a very rare combination (I am old enough to remember it as the replacement for the IBM System 38).

That looks to me like a PHP problem rather than a Moodle problem, is PHP being processed at all?  I suspect that at even a modest rate per hour the time spent getting it all working on that machine you could have purchased and configured several standard Linux machines.

Re: Error after update to 3.2

$
0
0

by Ken Task.  

Appreciate the compliment, but wouldn't say 'genius' ... rather one who has learned what doesn't work ... many, many, many times.

From this last posting, I cannot really tell if the error has gone away or not.

Do know, that how one updates/upgrades Moodle now-a-days makes a difference.

However, "I installed our new theme" ... then the errors ...

Before you installed the new theme, did you try the uploading of files in a course?    Did it work?

What if you switch the theme to something that is standard ... ie, comes with the moodle code.   Does the error occur with a standard theme?

If it doesn't have the errors using a standard theme, then there is your culprit ... 'our new theme'.

Barracuda relates to DB innodb format files and really nothing to do with the code/js/ or whatever files not functioning in this case for sure.

https://dev.mysql.com/doc/refman/5.5/en/innodb-file-format.html

'spirit of sharing', Ken



Re: Error after update to 3.2

$
0
0

by Daniel meanock.  

Sorry Ken,


I wasnt very clear, ok so i have swapped the theme to clean and still get the errors,


I can make one happen when i click on an assignment and grade, the popup appears but its completely blank.


It never displays a line 


It appears whenever some java is loaded such as file upload or grading etc .. where it tries to load the submission inline/embedded.  


Its really strange, on server check all is green ok's

debug is on and displaying nothing sad 

Thanks Ken 

Re: Can't get through the installation process! Problem with admin account setup

$
0
0

by Jesse Nahan.  

Thanks.

Web-based installed:

On the admin page, none of the icons appeared including the pencil icon. When I checked in firebug for their location to see them directly, the link resulted in an error.


Command line install:

The command line install displayed these errors, then dumped the HTML of an install web page where one chooses the language. I won't post that HTML but here are the install.php errors:

PHP Notice:  Undefined index: HTTP_HOST in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 55

Notice: Undefined index: HTTP_HOST in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 55

PHP Notice:  Undefined index: SERVER_PORT in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 57

Notice: Undefined index: SERVER_PORT in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 57

PHP Notice:  Undefined index: SERVER_PORT in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 57

Notice: Undefined index: SERVER_PORT in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 57

PHP Notice:  Undefined index: SERVER_PORT in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 58

Notice: Undefined index: SERVER_PORT in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 58

PHP Notice:  Undefined offset: 1 in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 62

Notice: Undefined offset: 1 in /var/www/html/mydomain.com/moodle/lib/installlib.php on line 62


--- Article Removed ---

$
0
0
***
***
*** RSSing Note: Article removed by member request. ***
***

Re: During upgrade site now shows 10,000 spam accounts

$
0
0

by Randy Thornton.  

So if you neither you nor your application admin created this large test course, who did?

Go to Site admin > Report > Logs, choose the name of the test course to see its history and who created it.


Re: During upgrade site now shows 10,000 spam accounts

$
0
0

by Leticia Dark-rose.  

phew!

That's wonderful news. Will these disappear when it is deleted?

Re: During upgrade site now shows 10,000 spam accounts

$
0
0

by Leticia Dark-rose.  

Thanks Randy got it....someone told porkies

I appreciate your help. smile

After upgrading to 3.2 Cron-Job is not working

$
0
0

by Oliver Bay.  

Hi!

After upgrading (to 3.2.1+) Cron-Job is not working any more. I checked the crontab-file for path-errors etc. But I couldn't see any error.

Question: Are there any settings in Moodle 3.2 itself, which I have to change something?

Every idea is welcome!

Regards,

Oliver

Re: After upgrading to 3.2 Cron-Job is not working

$
0
0

by Ken Task.  

Moodle 3.2.x does have task ... and it still has what is called a 'cron job' ... which really is calling crond (see the 'd') which in Linux means daemon .. a service.

Maybe, on your system, crond is no longer running ... thus the php script (cron.php) cannot call the crond daemon to execute the task or legacy cron jobs - the entry in crontab.

https://linux.die.net/man/8/crond

Got commnad line access?

cd /path/to/moodlecode/admin/cli/

then issue

php cron.php

to see what happens.

'spirit of sharing', Ken


Re: After upgrading to 3.2 Cron-Job is not working

$
0
0

volgens Ken Task.  

which php shows which php would be used if one issued a php command without a full path such as the command I asked you to run.

See if /usr/bin/php is really an alias (has been symlinked):

cd /usr/bin/

ls -l php

IF it is an alias/symlink it will show something like this:

lrwxrwxrwx 1 root root 22 Feb  4  2010 php -> /path/to/one/of/those/php's

Since /usr/bin/php is the one used when one issues just php (no path), wonder what would showfor the following php commands:

php -i (would show all the same stuff shown in phpinfo link in Moodle IF it's finding the same php version your Moodle is using.

php -m would show the modules php loads.

Have no idea what's in cronTest.php but in moodlecode/admin/ there  is a cron.php file and it has  not only require lines that point to config.php and as wel know moodle has php version requirements but comments:

// This is a fake CLI script, it is a really ugly hack which emulates
// CLI via web interface, please do not use this hack elsewhere
define('CLI_SCRIPT', true);
define('WEB_CRON_EMULATED_CLI', 'defined'); // ugly ugly hack, do not use elsewhere please
define('NO_OUTPUT_BUFFERING', true);

require('../config.php');
require_once($CFG->libdir.'/clilib.php');
require_once($CFG->libdir.'/cronlib.php');

Could use full path to the cron.php file that resides in /moodlecode/admincli/

From command line see what happens with:

/usr/bin/php /kunden/homepages/36/xxxxxxxx/htdocs/[moodlecode]/admin/cli/cron.php

/usr/bin/pathtophp5or7/php then the path to your Moodle cron.php file.

Does your system have wget or curl?    Those are CLI utilties that use URL's and might be better in your 1&1 cron tab than /usr/bin/php

See:

https://docs.moodle.org/32/en/Cron

if using wget or curl test from command line first to see you are getting what is desired, ,then add the 'silent' switches when adding to crontab.

Example:

curl http://site/admin/cron.php?password=yourcronpassword

If that works great ... then add the same command to crontab but add the quite switches so you won't be getting an email or other some such notice every time the cronjob runs.

If that is a dedicated host, I think I'd ask 1&1 why the old 4.x version?   You would never use them using Moodle and don't really need 4.x ... for anything.

'spirit of sharing', Ken


Viewing all 47350 articles
Browse latest View live


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