[英]Installing Moodle: It is requesting 5000 under Max_input_vars
I cannot find the php.ini file or .htaccess file where I'm meant to change the max_input_vars to 5000 in my moodle website folder.我找不到 php.ini 文件或 .htaccess 文件,我打算在我的 moodle 网站文件夹中将 max_input_vars 更改为 5000。 I'm using mamp and myphpadmin我正在使用 mamp 和 myphpadmin
Moodle explains "To change max_input_vars you can either set it in php.ini or modify it in runtime, for example for Apache you can create .htaccess file: php_value max_input_vars 5000" Moodle 解释说“要更改 max_input_vars,您可以在 php.ini 中设置它或在运行时修改它,例如,对于 Apache,您可以创建 .htaccess 文件:php_value max_input_vars 5000”
I searched in finder.我在取景器中搜索。
Create a test php file in the root of the Moodle folder with在 Moodle 文件夹的根目录中创建一个测试文件 php
<?php
phpinfo();
Then open it from the browser, not the command line (the command line and web server might use different versions of php)然后从浏览器打开,不是命令行(命令行和web服务器可能使用不同版本的php)
eg: yourmoodlesite/test.php例如: yourmoodlesite/test.php
This will display the location of the php.ini file that is being used, eg:这将显示正在使用的 php.ini 文件的位置,例如:
Loaded Configuration File /etc/php/7.4/apache2/php.ini
I haven't used MAMP, but the documentation says the php file can also be edited via the menu in MAMP PRO我没有使用过 MAMP,但文档说 php 文件也可以通过 MAMP PRO 中的菜单进行编辑
File > Open Template > PHP > [PHP version] -> php.ini文件 > 打开模板 > PHP > [PHP 版] -> php.ini
It also says the location is它还说位置是
/Library/Application Support/appsolute/MAMP PRO/conf
https://documentation.mamp.info/en/MAMP-PRO-Mac/Menu/ https://documentation.mamp.info/en/MAMP-PRO-Mac/Menu/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.