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

Re: easyer way to upgrade

$
0
0

by Howard Miller.  

It's very easy if you don't have optional plugins. It's not much harder if you do because even if you forget to include them you can add them later with no loss of data. 

If you modified the core code then you are on your own wink

However, as has been said, take backups and if in the slightest doubt clone the site and do a test upgrade. 


Re: Moodledata directory has some files owned by root

$
0
0

by Mike Normal.  

That's sounds interesting. How?

Could you advide me what search sentece I should google?

Doing that now, but have no success yet.


Thanks!

Re: easyer way to upgrade

$
0
0

by Marcus Green.  

Even if you have no doubts whatsoever and are 100% certain it will go smoothly, take a backup first smile

Re: Moodle on macOS Server (some infos & some issues...)

$
0
0

by Emma Richardson.  

Are your tables all utf8mb4?  You can switch the database but you need to update the tables too.

Help with Session and Request Cache configuration

$
0
0

by Sharath Chandra Kogila.  

I am using latest Moodle (3.3+)


I am planning to use MemCached for Application, Session and Request Data Caching. I have couple of questions regarding the same. Looking for some help  in configuration

Configuring Application Cache

I added Memcached Store Instance Successfully and also mapped the store instance to Application Chache. But i get the following tool tip error when i see the mapping from the configuration page (tool tip is shown on exclamation mark) 

"This store doesn't meet the requirements for all known definitions. Definitions for which this store is inadequate will be given the original default store instead of the selected store." 

Also, how does the config.php variables, $CFG->tempdir, $CFG->cachedir relate to above configuration. If i configure the application cache from Site Administration, should i enable these variables (actually i disabled them currently)


Configuring Session Cache

How do i configure Session Cache to use MemCached backend. Is it possible from Site Administration console  or config.php

Configuring Request Cache

How do i configure Request Cache to use MemCached backend. Is it possible from Site Administration console  or config.php

 

Thank you,

Sharath

Re: Moodledata directory has some files owned by root

$
0
0

by Ken Task.  

What does one of these temp files look like?    By that I mean, contents.

cd /path/to/moodlecode/

head -n 10 [filenameoftempfile]

Will attempt to display the top 10 lines of a file.   Terminal might bong/make a sound and you might see head's attempt to display characters that it can't really display.   That's normal.  But there could be a clue in there ... like a zip file will show PK on the first line ... the rest might be some characters and machine language that terminal cannot display.

The other command:

file -b [filenameoftempfile]

Might also provide a clue.

'spirit of sharing', Ken

Re: Moodledata directory has some files owned by root

$
0
0

by Mike Normal.  

Firstly there are files in temp, filedir, lang, trashdir, lock, cache too.

In the temp we have 5 apache and 2 root owned .log files with zero length now.

I looked at them before, for example one of them was a video file one of our teachers uploaded.


It isn't possibble for httpd-moodle to step out of it's user by using plugins? I hope so.


Thank you for providing. smile



Re: easyer way to upgrade

$
0
0

by Rick Jerz.  

You might be gathering from these few posts that if your moodle is simple, upgrading can be simple.  If you moodle is complex, upgrading can be complex.

Personally, I upgrade my experimental moodle first (on MAMP) before I upgrade my production moodle.  Having an experimental moodle provide you a lot of time to (well...) experiment.


Here is my quickie video:



Re: Moodledata directory has some files owned by root

$
0
0

by Ken Task.  

You've kinda avoided answering the question using the commands suggested.

0 byte sized .log files are normal in moodledata/temp/backup/ as they indicate a successful backup of a course.   If one is running the command line scripts for backing up a course in moodlecode/admin/cli/ as root then the files created by those php scripts executed by root are tagged as belonging to the root user and root group.

Temp files could be written to operating system temp directory during a php upload.  They normally have php[bunchoflettersnumbers] as file names and one can watch, realtime, them grow with the watch command in CentOS/Linux.

So let me try to get even more specific with a command.   The following an example ... you adjust the location and filename.

A temp file (we still don't know what that filename looks like ... do they have .tmp extensions or no extensions at all?) is in 'trashdir'.   BTW, when cron jobs run, any uploaded file that is no longer linked in Moodle, is moved to trashdir in a subdirectory xx/yy/somelongfilenamewithnoextension.

Let's say there are 33/zz/aslfkjfhrgnvslsdlkjewoq23lsls file in trash dir.

cd /path/to/moodledata/trashdir/33/zz/

file -b aslfkjfhrgnvslsdlkjewoq23lsls

shows what?

What is displayed when one issues:

head -n 10 aslfkjfhrgnvslsdlkjewoq23lsls

If we can't see the process that's creating the files then maybe by looking at the files themselves we might be able to get a clue as to what/where to look in the OS or in Moodle code.

Do the same for one of those temp files in moodlecode/lang/

Come back here an post what you find .... but you have to provide more information ... none of use willing to help can do 'vulcan mind melds'!!!! ;)

'spirit of sharing', Ken

Re: PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_xhprof.dll' - The specified module could not be found.

$
0
0

by Paul L.  

You nailed it !


Thanks a million.

Installing moodle app server with separate db server

$
0
0

by Arnel Jr. Rubiano.  

Can anyone help me or point some link for installing moodle 3.3 to two(2) linux servers.

1 for moodle application and 1 for data and databaseserver.

Thanks in advance!

Re: Moodledata directory has some files owned by root

$
0
0

by Mike Normal.  

All right sir, I stand corrected! ;)


-rw-rw-rw-. 1 root root 48587 Aug 14 11:13 693507dff0442d0d8391d0a1af0a72fe93e63cfd

file -b 693507dff0442d0d8391d0a1af0a72fe93e63cfd 

PNG image data, 827 x 1169, 8-bit/color RGB, non-interlaced

---

head -n 10 693507dff0442d0d8391d0a1af0a72fe93e63cfd 

PNG

IHDR;m~pHYsaa?itEXtSoftwareGPL Ghostscript 9.07< IDATxo,

...et cetera...

+++ In the lang:

file -b survey.php 

PHP script, UTF-8 Unicode text, with very long lines

---

head -n 10 survey.php 

<?php


// This file is part of Moodle - http://moodle.org/

//

// Moodle is free software: you can redistribute it and/or modify

// it under the terms of the GNU General Public License as published by

// the Free Software Foundation, either version 3 of the License, or

// (at your option) any later version.

//

// Moodle is distributed in the hope that it will be useful,

+++

As moodlecode/admin/cli you've meant the html directory?

There are php files under apache:apache, and one as ricsi:ricsi (an user for our php coder).


Awaiting further information - thank you.

Re: Moodledata directory has some files owned by root

$
0
0

by Ken Task.  

Yes ... 'moodlecode' directory is whatever moodle code is located.

The examples provided aren't temp files.

The file in moodle data ... 693507dff0442d0d8391d0a1af0a72fe93e63cfd has a content hash name as do all files in moodle data/filedir/ and it appears to be a graphic (png).   Your concern is that the ownership/group are root.    That is strange as files should have ownerships of the web service user (apache or www-data on most standalone Linux systems).   But, if a coder was executing a php script via command line that used the file system as the root user then the file could be tagged as belonging to root.

The info on the .php file you've shared shows the typical header of something included in moodle code.   Is it also located in moodledata/filedir/?

Think you need to have a talk with your coders and inquire.

'spirit of sharing', Ken


Re: Moodledata directory has some files owned by root

$
0
0

by Mike Normal.  

Indeed so, my good Sir. smile

I already talked with our coder and he swears he did not run anything outside of moodle and it's plugins - thats why I've inquired after that kind if problem.

---

Let me quote my first post on this topic:

"

Howdy?

Yes, root level "random" files are appearing in moodledata.

Centos, so we are using apache:apache to run.

We have no crontab (really sure) which runs at root level - fresh install 3.3 haven't put in cron yet.

Everything is in moodledata, and html/moodle are apache:apache.

The httpd config set to run as apache.

I've became suspicious when the first suggestion is to set moodledata to 777 here: https://docs.moodle.org/33/en/Installing_Moodle

Selinux is permissive, can't make problems.

php 7.1


So we closed out the possibilities of cron and permission problems.

What else you can suggest please? smile

"

---

So the exact symptoms are:
-I set everything apache:apache in moodledata and the html moodle dir
-time passes while the coder isn't doing anything, nor does the cron, just teachers/students using moodle
-there are seemingly random root level files appearing inside the moodledata and moodle html directories

So yes, the examples I've provided aren't temp files this time.

I think I've included the paths of those examples, but as it was a php file it should belong into the html moodle dir.
Sorry, but I refer to two directories, one is empty at install: moodledata, and the other is downloaded from here, that is moodle html dir for me.

And in both of those directories, root level files are appearing. ;(

I wonder if the coder is lazy, and uploads his php-s onto the server carelessla, leaving them as root, it is the apache which runs it, and should beand stay on apache level?


Re: 403 Forbidden error

$
0
0

by Вит Мак.  

I have the same problem and find solution. I put in nginx config file this bold line:

        location / {
            index  index.php index.html index.htm;
            try_files $uri $uri/ /index.php?$args;
        }

After that I reload nginx and can see right page.


Popup error

$
0
0

by Francesca Alloatti.  

Hello!


I have a problem with the Moodle platform that I use with my class. It is hosted by TMD Hosting and I asked them to upgrade it from version 2.6 to 3.3.1. 


Now I have a problem: when I access a course and click on' + add a task or resource', the popup with all activities is grey and inactive....


What to do? 


Thank you in advance for your collaboration!

Re: "Call to undefined function display_auth_lock_options()"

$
0
0

by Andreas Stassen.  

what can i do to solve this problem?

I can´t install anything sad

Re: Popup error

$
0
0

by Howard Miller.  

Are all optional plugins up to date as well? Are all optional plugins compatible with version 3.3? Are you using a custom theme? If you are, try switching back to a core theme (Boost or More) to see if it makes a difference. 

Failing that, switch on Javascript Console in your browser and try again. Any (red) javascript errors?

Re: "Call to undefined function display_auth_lock_options()"

$
0
0

by Howard Miller.  

Find someone who can. The only answer to this is to update the old plugin. The only other answer (!) is if it happens to be an auth plugin you have enabled and don't use. As you cannot open the admin menu you would need to delete the plugin - which I suppose you can't do either. 

Who updated the site? Speak to them!

Coding error detected, it must be fixed by a programmer: The data source class does not exist.

$
0
0

by Jonathan Davey.  

Hi, I'm struggling to get to the root of this problem.

I am using 3.1.6 version and can't upgrade or delete anything. I keep getting this message.

Can anyone help me?

Viewing all 46873 articles
Browse latest View live


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