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

Ang: Re: Migration Ubuntu 16.04 to 20.04

$
0
0
by Michael Weinreich Jensen.  

Thank you I have already folowed thoose steps.
As i wrote i did an export in phphmyadmin and copy/cloned data and moodle- the servers get the same ip and hostname, so dont think i should run any replace cmd. ?
It still gives me "reading problems"

Re: Ang: Re: Migration Ubuntu 16.04 to 20.04

Ang: Re: Ang: Re: Migration Ubuntu 16.04 to 20.04

$
0
0
by Michael Weinreich Jensen.  

thx- i will start a new VM up- and try all over first.

Re: Styles not working after Window 2016 Installation

$
0
0
by Claudionir Queiroz.  

Hi Asar, all is well now. I followed your tutoria to install Moodle, but the issue happened after the installation.

My PHP version is 7.3.3 Non-Thread safety. 

Thanks,

Claudionir

Απάντηση: Re: RFC: Running moodle cron via docker.

$
0
0
by Dimitrios Desyllas.  

So you ship moodle with into is own dedicated cron and use only the volume for moodledata.

TypeError problem when navigating some sections of the site

$
0
0
by Gerlando Lo Savio.  

Hello, I recently installed Moodle 3.11 on an Ubuntu 20.04 server running Apache 2.4, PHP 7.4 and MySQL 8.0, located at https://scuola.itolman.net 

I often get a "TypeError: Cannot create property 'stack' on string 'Forbidden'" error when visiting some pages of the site - most often when I try to use the "Messages" and "Dashboard" pages of Moodle, like in this screenshot: 

TypeError Cannot create property 'stack' on string 'Forbidden' error when trying to open messages

Usually I need to reload the page to workaround this problem.

Sometimes I even get a "403 Forbidden -You don't have permission to access this resource." error page from Apache server: 

Forbidden you don't have the permission to access this resources

Again, reloading the page seems to work around the problem. 

Where should I look to try to understand and fix this problem? 

Thanks in advance,

Gerlos


Re: TypeError problem when navigating some sections of the site

Ri: Re: TypeError problem when navigating some sections of the site

$
0
0
by Gerlando Lo Savio.  

Good point -  I should have thought of that. 😅
I looked at /var/log/apache2/error.log and found it was my fault.

I found several lines like this:

[Sat Jun 12 00:27:53.398305 2021] [evasive20:error] [pid 33171] [client xx.xx.xx.xx:60850] client denied by server configuration: /var/www/scuola.itolman.net/lib/ajax/service.php, referer: https://scuola.itolman.net/my/index.php?lang=en

The cause is that I have enabled mod_evasive on Apache, and my previous configuration was too restrictive. 

To solve the problem I needed to edit /etc/apache2/mods-enabled/evasive.conf and set DOSPageCount to 8 and DOSSiteCount to 100. 

Thanks again for your suggestion! 
-Gerlos



[solve]: Error message - "requce_once(): Failed opening required" during Moodle upgrade about the file setup.php in lib - "/usr/local/moodle/lib/setup.php"

$
0
0
by Kelvin Ma.  

My boss replied that the switches options are ./configure --enable-so --enable-authnz-ldap --enable-ldap --enable-ssl --with-ssl--enable-rewrite

We cloned the production site. We turn on the debugging mode as you advised and perform moodle upgrade. The moodle can be upgraded successfully in much shorter time. There is no fatal error message except some minor errors which can be easily fixed.

One warning message is "cache/Unable to load the cache configuration file" - "Permission denied in /usr/local/moodle/cache/classes/config.php on line 334". We had fixed it by changing the permission of /mnt/sdb/moodledata/muc" to 777 although we don't know what caused the problem.

Another error message is that "error/Unable to obtain session lock". The problem had been fixed by turning off the Redis session handler.

It seems that the previous dummy moodle is unhealthy which causes serious error about cache and setup.php. We can give up troubleshooting the problematic dummy moodle.

Thank you very much for your advice. Your advice of turning on debugging mode is very useful.

Re: [solve]: Error message - "requce_once(): Failed opening required" during Moodle upgrade about the file setup.php in lib - "/usr/local/moodle/lib/setup.php"

$
0
0
by Ken Task.  

Welcome ... glad you resolved.

For those who might find this thread ...

One of the reasons I gave up compiling AMP was updates.   Couldn't mix a OS repo upgrade (OS package manger) to any piece of compiled AMP stack.   While compiled AMP stack did allow running  well on non-server class workstations that were beefed up a little, the frequency of updates and upgrades using compile meant longer downtime.

One more piece of advice ... and now would be a good time for ya ... install/and maintain core moodle code via git.   See

https://docs.moodle.org/311/en/Git_for_Administrators

*by far* the best way to maintain moodle core code - fewer moving parts - and literally takes only minutes ... less prone to human error also! smile

'Spirit of Sharing', Ken




Moodle Zend Opcache enabling

$
0
0
by Gagan Kapoor.  

Hello, 

I have installed moodle 3.10 on ubuntu 20.04 at digitalocean droplet with the help of command line instructions given at 

https://docs.moodle.org/311/en/Step-by-step_Installation_Guide_for_Ubuntu

I am not at  IT professional and I was able to install moodle properly, thanks for the document but got stuck in the last of the document which suggests some performance tweaks like Opcache, cron job and clamAV settings. Please excuse me if I am asking very basic points

Although the documents and resource material is very good but still I have some confusions to enable them. The document says

Suggestions: Enable Zend OpCache/Change Document Root

The documents says to add opcache settings to a separate file (what I understand) and suggests a command which is

sudo vi /etc/php7/apache2/conf.d/05-opcache.ini       although  I think it should be /etc/php/7.4/conf.d/05-opcache.ini

At the above there is a link to settings that need to be added https://docs.moodle.org/26/en/OPcache  the required settings are

[opcache] 

opcache.enable = 1 

opcache.memory_consumption = 128 

opcache.max_accelerated_files = 10000 

opcache.revalidate_freq = 60

I have observed that PHP.ini file also contains these opcache settings lines that are suggested above, 

So, my confusion is 

(1) Should I create opcache.ini as mentioned in the document or uncomment these instructions in the PHP.ini file. 

(2) the document link also suggests one command         zend_extension=/full/path/to/opcache.so 

Should I need to add this to the PHP.ini file or ignore it?

I have attached the screenshot of PHP info for Zend Opcahe section from my Moodle instance, if required




Re: Moodle Zend Opcache enabling

$
0
0
by Leon Stringer.  

PHP reads configuration from php.iniand from other .ini files depending on the server's operating system and configuration. So it's sometimes difficult to describe exactly where changes should be made.

However from your screenshot OPcache is enabled and running so you're most of the way there. You don't need zend_extension=/full/path/to/opcache.so.

The only thing you should do is check the OPcache settings shown in your PHP info match the recommended settings:

opcache.enable = 1  opcache.enable_file_override = 0  opcache.max_accelerated_files = 10000  opcache.memory_consumption = 128...

(The link to the OPcache documentation in the Ubuntu page was to the old Moodle 2.6 page, …/26/en/OPcache. I've updated this so it links to the current version of the OPcache page).

moodle installation - Configuring DB

$
0
0
by Geethan Samarawickrama.  

I'm getting the below error while running the moodle installation on ubuntu 20.04. This happens during the configuration of DB settings.


"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



Warning: mysqli::__construct(): (HY000/2002): No such file or directory in /var/www/html/moodle/lib/dml/mysqli_native_moodle_database.php on line 83 "


Re: moodle installation - Configuring DB

$
0
0
by Ken Task.  

A mysqldatabaseserver on same server as code set to localhost would not use TCP/IP port for DB server, but it would use 'socket' by default.  So do not fill in the port ... leave blank.

IF there is already a config.php file in moodle code directory, edit the config.php file with a text editor and in the section for DB variables, set both the following as shown:

  'dbport' => '',
  'dbsocket' => '',

Also ... you've posted in Developers forum ... don't think this is a developer question.    There is a forum for installing and upgrading.   So, next time you post, please pick an appropriate forum for the problem.  Plus it does help to have some info about Moodle version as well.

'SoS', Ken

Re: moodle installation - Configuring DB

$
0
0
by Howard Miller.  

Moving to Installation forum...

Re: moodle installation - Configuring DB

$
0
0
by Howard Miller.  

...strange error, don't you think?

Re: moodle installation - Configuring DB

$
0
0
by Ken Task.  

Thanks for moving ...

Not so 'strange' if not familiar with MySQLDB server on localhost ...

* That line in that file:

        ob_start();
*        $conn = new mysqli($dbhost, $dbuser, $dbpass, '', $dbport, $dbsocket); //  Connect without db
        $dberr = ob_get_contents();
        ob_end_clean();
        $errorno = @$conn->connect_errno;

Am assuming OP did create the DB and knows creds prior to trying install.  MySQLD service has to be running to do that.

Am also assuming that OP has followed:

https://docs.moodle.org/311/en/Step-by-step_Installation_Guide_for_Ubuntu

'SoS', Ken

Re: Ri: Re: TypeError problem when navigating some sections of the site

$
0
0
by Jon Witts.  

Glad you got it resolved, and thank you for sharing the fix back smile

Re: moodle installation - Configuring DB

$
0
0
by Howard Miller.  

To be fair - I never set up Moodle any other way than by creating my own config.php so I don't really know what that form does. Normally 'localhost' means 'use the socket' and any IP address means 'use TCP/IP'. It doesn't hurt to try 127.0.0.1 in place of localhost - just in case it works.

Having said that - the culprit is more often than not misuse of the GRANT command.

Re: moodle installation - Configuring DB

$
0
0
por Visvanath Ratnaweera.  

Wild guess: Are you sure that you are not running MariaDB? MariaDB has its own driver (the previous screen).

Also try without entering the database port. Moodle will take the default.
Viewing all 46855 articles
Browse latest View live


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