0

I'm trying to install the moodle cms on debian12 and php8.2.

I have followed the official guide.

I'm trying to set the variable max_input_vars to the value of 5000 editing the system php.ini file at the path /etc/php/apache2/php.ini but both the OS and moodle read the default value of 1000.

I checked that i'm using the right ini file using the phpinfo function I rebooted apache service after editing the php.ini file I checked typos and if the line was duplicated or commented out

Neither moodle nor the OS do recognize the changes i made.

Any idea on how i can let moodle or the system read mine value and no the default one? Thanks

5
  • 1
    Neither moodle nor the OS do recognize the changes i made....what actual issue is occurring then? Can you provide a minimal reproducible example of the issue, and any error messages etc? Please edit your question. See also How to Ask Commented Mar 28 at 17:12
  • Did you reload apache2 configuration ? Commented Mar 29 at 7:56
  • “I checked that i'm using the right ini file using the phpinfo" - can you be more specific about how you tested this? For instance, if you tested on the CLI, that might have been a different SAPI. Commented Mar 29 at 12:04
  • Yes i restarted apache2 service. Commented Mar 30 at 11:33
  • How are you editing the file and have you verified that your changes were saved? Commented Apr 13 at 3:25

1 Answer 1

1

Check you are editing the correct php.ini file. There might be multiple instances.

Create a file called info.php and add the following

<?php phpinfo(); ?>

Then in your web browser to go http://yourmoodlesite/info.php

Search on the page for "Loaded Configuration File" - which will show the php.ini file that is being used

eg: etc/php/8.2/apache2/php.ini

You can also check on the same page for the value of max_input_vars

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.