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

Re: Installation Error on php max_input_vars

$
0
0
by Rick Jerz.  

Ken, max_input_vars is a php.ini setting, as far as I know.

noorul, perhaps you didn't make this change in the correct php.ini file. If you had the ability to go into your Moodle, admin/Server/php info, you would see the information from your php.ini file. If max_input_vars is not what you set it to, then you either edited the wrong file or have a typo in your php.ini file.

Another technique, without Moodle working, is to create a simple info.php file and put it on your server. It will show the same information that Moodle shows you. I'll attach this file.

Re: Installation Error on php max_input_vars

$
0
0
by Ken Task.  

Dang!  My 'bad' ... true it is a php setting - having 'senior moments' today!

Is DB service localhost (on same machine as code) or is it remote (another server)?   Check config.php for DB server.  Not long ago I was helping someone hosting with AWS and the DB server could be accessed only by Amazon's internal fully qualified domain name.

'SoS', Ken

Re: Installation Error on php max_input_vars

$
0
0
by Rick Jerz.  

I do think that it is odd that noorul says php.info shows 10000. So, I don't know?

Re: Installation Error on php max_input_vars

$
0
0
by Ken Task.  

Make sure the environment.xml file in code/admin/ is of the moodle version you are trying to install.

In a search of all moodle3x/admin/environment.xml directories/files for 'max_input_vars' (acquired via git) shows that only 3.5 had an optional in check for max_input_vars

fgrep 'max_input_vars' ./moodle3?/admin/environment.xml

./moodle35/admin/environment.xml:      <CUSTOM_CHECK file="lib/upgradelib.php" function="check_max_input_vars" level="optional">

Search of versions 3.10 and 3.11 code/admin/environment.xml didn't show any check on max_input_vars:

Kens-MBP-2:MDLGITTEST kentask$ fgrep 'max_input_vars' ./moodle310/admin/environment.xml
Kens-MBP-2:MDLGITTEST kentask$ fgrep 'max_input_vars' ./moodle311/admin/environment.xml

'SoS', Ken


Re: Installation Error on php max_input_vars

$
0
0
by noorul arshad.  

Hi ken,

It shows max input vars = optional

Re: oauth2 debug information

$
0
0
by Leon Stringer.  

I think this will happen if the endpoint URLs in /o/.well-known/openid-configuration are HTTP instead of HTTPS.

If you change Debug messages to DEVELOPER and Display debug messages is Yes then this error becomes a bit more helpful, you'd probably get: error/invalidpersistenterror (url: For security reasons only https connections are allowed, sorry.).

However I don't think you should need to change the debug settings to see this and there's actually a bug with the language strings, see MDL-71860.

Re: Installation Error on php max_input_vars

$
0
0
by Ken Task.  

What version of Moodle are you trying to install?

Since server is Linux (Ubuntu) you should have php-cli installed and can access to it via ssh.  One can install a moodle via command line:

first check you do have php-cli installed:

php -v

should show that.

Then

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

php install.php

You will be prompted for all the same things the GUI would have prompted for.

'SoS', Ken


RFC: Running moodle cron via docker.

$
0
0
by Dimitrios Desyllas.  

In my FOSS solution for dockerized moodle https://github.com/ellakcy/docker-moodle I am implementing a feature that allows you to run the moodle cron script. And I want to know if it is a good idea to run it on a seperate installation that points into the same database and data. any data will be shared via volumes.


For now I build images for php 3.5, 3.8, 3.9, 3.10, 3.11 in apache based images and in alpine based images as well. Each image is perfoming a full database installation as seen in entrypoint script: https://github.com/ellakcy/docker-moodle/blob/b91b6944b1c25154fbdb84d738d543f9b3e454a9/scripts/entrypoint.sh#L177-L181


So I wanted to know if would be a good idea to ship a full moodle installation and share the data volume or would be better just to have php and ship only the required php and modules.


Re: Installation Error on php max_input_vars

$
0
0
by noorul arshad.  

Hi Ken,

I’m trying to install Moodle 3.11 and I have php -cli installed. And I can see php - cli is installed.

I can access the install.php file. Is there any changes I should make ? and I don’t use guy version.

pls help me with this.

Re: Installation Error on php max_input_vars

$
0
0
by Ken Task.  

I am trying to help ... but .. help is only as good as answers to questions ... and those answers include what was shown to you! smile

What did you see when you issued: php -v

Ubuntu doesn't have a '16' ... there is a 1.6 ... when it comes to installing moodle, details (versions) are important.

Please see:

http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases

to make sure you have minimal versions required for 3.11 installed.

Ok 3.11 is the version you are attempting to install ... please verify that by looking at the version.php file in code root.  Show me what it shows you! smile

Have never seen that max_input_vars check ... but then again, I install via command line.   Maybe, just maybe, one can 'get by' this issue by installing via command line.

Before you try, however, do an environment check from command line:

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

php checks.php

If ALL is ok, that script will show:

OK: All 'status' checks OK

Let's see if command line install by passes your issue.

'SoS', Ken


Re: Installation Error on php max_input_vars

$
0
0
by Leon Stringer.  

Ken: You might need to do a git pull because that line is in 3.10.4 and 3.11.

Re: Installation Error on php max_input_vars

$
0
0
by Leon Stringer.  

Noorul: Your screenshot of the PHP setting:

max_input_vars => 10000 => 10000

Is from the command line (php -i) but the error is from the web interface (GUI). So maybe you need to restart the web server service to read the new max_input_vars setting from the PHP .ini file. The service you need to restart might be apache2 or php-fpm.

If you're still getting this error then you can see max_input_vars for the web server by creating a file called phpinfo.php in the Moodle source code folder containing two lines:

<?php 
phpinfo();

Then go to /phpinfo.php at your site's web address and search for max_input_vars:

Screenshot of phpinfo() output showing max_input_vars => 10000 => 10000

Delete this phpinfo.php file afterwards.

The check for max_input_vars ≥ 5000 is a mandatory check with PHP 8.0 but is an optional check with PHP 7.x.

Dowload stuck at APACHE and MYSQL are running screen

$
0
0
by Megan Longwill.  

I have downloaded the full Moodle LMS 3.1.11 install package for Windows zip and extracted the files to my C drive. I am on Windows 10 64bit. 

After selecting Moodle Start, the install appears to stall at: 



Does it just take a loooooong time or am I am doing something wrong?

Regards.

Megan.

Re: Dowload stuck at APACHE and MYSQL are running screen

Re: Installation Error on php max_input_vars

$
0
0
by Ken Task.  

Duh!  Begin ... red in face ...

Yep ... you are correct ...

./moodle310/version.php:$release  = '3.10.3 (Build: 20210325)';// Human-friendly version name
./moodle311/version.php:$release  = '3.11dev (Build: 20201224)';// Human-friendly version name

prior to git pull
not there
fgrep 'max_input_vars' ./moodle31?/admin/environment.xml renders nada.

git pull on 310:
admin/environment.xml  |   4 +-

on 311 which (red in face) was a dev release (double red in face):
admin/environment.xml  |   187 +

check for the check

fgrep 'max_input_vars' ./moodle310/admin/environment.xml
present and optional

fgrep 'max_input_vars' ./moodle311/admin/environment.xml
present and optional

one more reason to use git!

Thanks, Leon.

Let's hope OP having issue might consider git install. smile

'SoS', Ken


Re: Moodle 3.10+ files missing.

$
0
0
by Mahmut TEKER.  

Hello Walter,

Thanks for clarification. I think problem is different on our side however we could not find any solution. Everything seems OK but some of the submission files are not on their places according to contenthash. We also use NFS but it is also used by other systems with no problem (not Moodle). All logs are as usual and there is no error. I think I should keep digging.

Re: Installation Error on php max_input_vars

$
0
0
by Ken Task.  

Related follow up and a high recommendation to use git for installs and updates/upgrades ...

Moodle code now has a checks.php that does an environment check from CLI.   That's great ... now my up and upgrade scripts will run checks.php and pause.   If I (red in face) wasn't aware of a new check 'making it's way into required, doing the check before the pull means I haven't touched the code files nor have I altered the DB and tables! smile

Can cancel my up/upgrade ... fix ... then run again - which is a time saver!!! (don't have to restore site from backup).

Softac and other one click wonders at present don't run checks.  One more reason to stay away from them!

Anyhoo ... an additional 5 cents! smile

'SoS', Ken

Error driver database problem detected

$
0
0
by Megan Longwill.  

I appreciate this has been asked before but the solutions read like gobbly gook to me. Can some please explain in plain English for dummies how to resolve the following error:

Error: database driver problem detected

The site administrator should verify server configuration

PHP has not been properly configured with the MySQLi extension for it to communicate with MySQL. Please check your php.ini file or recompile PHP.

Megan.

Re: Error driver database problem detected

$
0
0
by Ken Task.  

It's saying your server is missing php-mysql an extension to PHP (the 'driver' for talking to the MySQL DB server).

The 'fix' depends upon factors ...

how you are hosted?  

Shared? 

With whom? ... not trying to be nosey, but different providers have different tools for you to activate/install a php extension and considering you've not shared info on hosting, would be a guess thus leading to even more confusion.

Do you have a panel to admin your server? (like cPanel or Plesk [would be nice if you'd share that also - not url to it, but if you have access to either of those or whatever panel your provider is providing it's customers].

Good providers have FAQ's or Knowledge Bases for their customers that show/tell how -2 lots of things.

That's about as close as I can get to 'in plain english'. :|

Awaiting responses to attempt to assist further, if I can! smile

'SoS', Ken


Re: Error driver database problem detected

$
0
0
by Howard Miller.  

Oddly (unless you're running Windows) checking php.ini or recompiling PHP are very unlikely to be the solution.

It should be a simple matter of installing the missing module but how depends on your operating system and how PHP was installed in the first place.
Viewing all 46917 articles
Browse latest View live


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