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

Re: Moodle downgrade

$
0
0
by Gregor McNish.  

I dont think you can downgrade moodle— each version can change the database structure. The changes are generally minor for point releases, and more signifcant for minor and major releases.
If you have a coppy of the moodle before you upgraded, you could return to that — but of course this doesn’t work ona production system because you lose everything that’s been done since.

In any case, the server can be cionfigured to run different versiions of PHP for different folders or sites. Each PHP should have it’s own config, and should have whatever extensions are required to work with your database, Moodle’s config will specify the type of dbserver, but the extensions to support that need to be in the php.ini so they’re loaded by PHP

Re: Odp: Re: Plugins to be delete during upgrade

$
0
0
by Gregor McNish.  

Yes, moodle will run the uninstall scripts for each plugimn, which fixes up the database, then you should manually remove those plugin folders.
It’s the same when you remove a plugin yourself— run the uninstall for it through the moodle interface, then remove the folder.

Re: Plugin files missing

$
0
0
by Gregor McNish.  

You might try clearing caches? Especially if the images are coming in with javascript.
I’d use the browser development tools to see the url which is trying to load the image, and make sure it works there.

Re: Wrong $CFG->dbtype. You need to change it in your config.php file from 'mysqli' to 'mariadb'.

$
0
0
by Gregor McNish.  

Moodles config.php should be in the root of the moodle server. Moodle’s site admin/server page has an option to see php info— this will tell you which php.ini is being used. The php.ini has to load the php extensions for the database server you’re using.

Re: Moodle downgrade

$
0
0
by Rick Jerz.  

You can't downgrade.  When your system admin switched back to PHP 7.4, maybe they also switched to a different database version.  Or maybe they disabled some PHP extensions, such as MySQLi.

Problems updating Moodle to version 4.3.3

$
0
0
by Márcio Bacci.  

Hello

I'm trying to update Moodle from version 4.1.1 to 4.3.3 on Debian 11. I updated to PHP 8.3 and it still didn't work. Then I verified that I was using MariaDB 10.5 and I had to update to 10.6, but this update is not available even in the Debia 11 backports. So I ran the following to update MariaDB:

curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | bash

apt-get install mariadb-server

After that, the Moodle application can no longer connect to the DB.

In the shell I can connect and even use the Moodle BD with root, however the following command does not work:

MariaDB [(none)]> grant all privileges on moodle.* to 'root'@'localhost' identified by 'password';

ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'moodle'

Here is also my config.php:

<?php // Moodle configuration file

unset($CFG);

global $CFG;

$CFG = new stdClass();

$CFG->debug = 6143;

$CFG->debugdisplay = 1;

@ini_set('display_errors','1');

$CFG->dbtype = 'mariadb';

$CFG->dblibrary = 'native';

$CFG->dbhost = 'localhost';

$CFG->dbname = 'moodle';

$CFG->dbuser = 'ze';

$CFG->dbpass = 'ze@123';

$CFG->prefix = 'mdl_';

$CFG->dboptions = array (

   'dbpersist' => 0,

   'dbport' => '3306',

   'dbsocket' => '/var/run/mysqld/mysqld.sock',

   'dbcollation' => 'utf8mb4_general_ci',

   'dbsocket' => '',

);

$CFG->wwwroot = 'https://ead.empresa.com/moodle';

$CFG->dataroot = '/var/www/moodledata';

$CFG->admin = 'admin';

//$CFG->diroot = '/var/www/html/moodle';

$CFG->directorypermissions = 0777;

require_once(__DIR__ . '/lib/setup.php');

// There is no php closing tag in this file,

// it is intentional because it prevents trailing whitespace problems!


can anybody help me?

Re: Problems updating Moodle to version 4.3.3

Re: Odp: Re: Plugins to be delete during upgrade

$
0
0
by Visvanath Ratnaweera.  

In case the web server has the write privilege in the Moodle code directory, you may not have to delete those plug-in directories manually. Could somebody confirm this? I never encounter this situation since my Moodle code directory is never writable by the web server.

Re: Odp: Re: Plugins to be delete during upgrade

$
0
0
by Gregor McNish.  

That may be the case-- my Moodle code directory isn't writeable by the web server either.

Re: Plugin files missing

$
0
0
by Mohamed Hamza Falih.  

Hello,
First of all, thank you for your answer.
I tried clearing Moodle cache and even the browser cache but it didn't solve anything (the new images I added in the pix folder of the plugin I installed were still not found by the server). The images are indeed being called up with JavaScript.
The URLs are correct, it's just that the server can't find them.

Missing images after URL change, please help :-(

$
0
0
by L P.  

Hello,
I just installed moodle with "Step-by-step_Installation_Guide_for_Ubuntu"
URL of my moodle had h t t p : / / ip.address.of.server /moodle , but i want moodle on h t t p : / / ip.address.of.server

i changed config.php from $CFG->wwwrooth t t p : / / ip.address.of.server/moodle to h t t p : / / ip.address.of.server
and
/etc/apache2/sites-available/000-default.conf DocumentRoot from /var/www/html to /var/www/html/moodle

Now i missing images all over UI like on the picture.
How can i repair it?
Thx for advice !!!

Re: Missing images after URL change, please help :-(

Re: Odp: Re: Plugins to be delete during upgrade

$
0
0
by Leon Stringer.  

Can you share the exact messages you get? Because if you're seeing this for core plugins it suggests you have some old files in your Moodle source code folder (which happens if the new files were copied over the old files)

Re: In my Moodle Ubuntu server auth.log and auth1.log is consuming a lot of space

$
0
0
by Binoy Chacko.  

Thanks Ken. 

I am noticing the following  in the logrotate.d directory. There are number of number of files. I just did a cat of the file.  How does does one interpret this?

root@localhost:/etc/logrotate.d# cat apache2

/var/log/apache2/*.log {

    daily

    missingok

    rotate 14

    compress

    delaycompress

    notifempty

    create 640 root adm

    sharedscripts

    prerotate

        if [ -d /etc/logrotate.d/httpd-prerotate ]; then

            run-parts /etc/logrotate.d/httpd-prerotate

        fi

    endscript

    postrotate

        if pgrep -f ^/usr/sbin/apache2 > /dev/null; then

            invoke-rc.d apache2 reload 2>&1 | logger -t apache2.logrotate

        fi

    endscript

}


Re: Missing images after URL change, please help :-(

$
0
0
by L P.  

There is no Search_and_replace_tool step in Guide: https : / / docs.moodle.org/403/en/Step-by-step_Installation_Guide_for_Ubuntu . But i dont know what i need to change in DB? In "Moodle Migration" you provided is "Enter the url for your old server (https: / / oldserver.com/) and new server (https: / / newserver.com/) and it will fix any links stored in the database." But i dont think there is "hardcoded" IP adress of my server in DB (and i dont use DNS name yet) so what i need to replace? Then if i start to use DNS name, i will need to replace DB text again? thx

Re: Missing images after URL change, please help :-(

Re: Missing images after URL change, please help :-(

$
0
0
by Emma Richardson.  

The tool is in your admin/tools folder. And yes, when you switch to a dns tool you will need to run the tool again. All files have hard coded urls in the db.

Re: In my Moodle Ubuntu server auth.log and auth1.log is consuming a lot of space

$
0
0
by Ken Task.  

Time for you to learn how to admin your server - operating system.
Please see:
https://manpages.ubuntu.com/manpages/jammy/man8/logrotate.8.html

If installed, there is a 'man' command (short for manual) you could use that would show your version of Ubuntu.
man -k logrotate
would show what online manual pages it finds matching logrotate and one of those should be similar if not the same for your server.

Another resource:
https://help.ubuntu.com/community/LinuxLogFiles

That particular log is for authentication - probably ssh into server.   If it is large and contains many entries, someone or something is testing the security of your server.   IF you don't have secure password for root, for example, someone/thing could eventually guess the root password.
If successful, bad news for you ... if they can login as root, your server is 'toast'.

'SoS', Ken

Re: Plugin files missing

$
0
0
by Emma Richardson.  

I would check permissions on your plugin folders - are the folders and files owned by webserver and does the webserver have read/execute permissions?

Re: Ri: Re: Ri: Re: Scrolling freezes on mobile devices after upgrade to 4.3

$
0
0
by Jason Hollowell.  

Thanks for posting these inquiries and the solution here. I departed on a family trip with only my iPhone thinking I’d be able to deal with simple site administration issues with it (course requests were all I planned for) but was frozen as a result of this Atto bug 😱 glad I was able to get back in business by switching to TinyMCE…back to it after switching to Atto a few years ago when that was the direction…at any rate…I’m thankful for the documented troubleshooting here. 🙏

Viewing all 46925 articles
Browse latest View live


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