ConfigurazioneMoodle
\ Risorse: http://docs.moodle.org/en/Administration_FAQ\ \
Configurazione default\
nella cartella /etc/moodle /etc/moodle/apache.conf e /etc/moodle/config.php\ Viene creato un link con nome moodle in /etc/apache2/conf.d\ moodle -> /etc/moodle/apache.conf\ \
Il processo di apache configurazione parte da /etc/apache2/apache2.conf \ \
Include /etc/apache2/conf.d/ \ Include /etc/apache2/sites-enabled/\ \
Il solo sito abilitato è:\ /etc/apache2/sites-enabled/000-default\ \
Configurazione del server elearning\ - rimosso il link /etc/apache2/conf.d/moodle (backup in /etc/moodle/)\ -modificato /etc/apache2/sites-enabled/000-default \ \
Cambiare la dimensione del file di upload
- check http://elearning.apice.unibo.it/admin/phpinfo.php
- modify Apache2 settings in /etc/apache2/apache2.conf
- LimitRequestBody 33554432
- PHP limits, in php.ini or .htaccess /etc/apache2/sites-enabled/000-default file:\
file_uploads = On
upload_max_filesize = 32M
post_max_size = 32M
You may also need to change in php.ini next values
memory_limit = 128M
max_execution_time = 60 ; Maximum execution time of each script, in seconds
max_input_time = 120 ; Maximum amount of time each script may spend parsing
upload_max_filesize = 32M
post_max_size = 32M
You may also need to change in php.ini next values
memory_limit = 128M
max_execution_time = 60 ; Maximum execution time of each script, in seconds
max_input_time = 120 ; Maximum amount of time each script may spend parsing
- Admin section
- Administration>Security -> Site Policies -> Maximum uploaded file size: 32MB
- Administration>Modules -> Activities -> Assignment -> Maximum size: 32MB
- Course -> Administration -> Settings -> Maximum upload size: 32MB
- Scan these dirs for additional files
- /etc/apache2/sites-enabled/
- /etc/php5/apache2/conf.d/
- check php_value in *.conf files \
<IfModule mod_php5.c>
php_flag magic_quotes_gpc On
php_flag magic_quotes_runtime Off
php_flag file_uploads On
php_flag short_open_tag On
php_flag session.auto_start Off
php_flag session.bug_compat_warn Off
php_value upload_max_filesize 32M
php_value post_max_size 32M
</IfModule>
php_flag magic_quotes_gpc On
php_flag magic_quotes_runtime Off
php_flag file_uploads On
php_flag short_open_tag On
php_flag session.auto_start Off
php_flag session.bug_compat_warn Off
php_value upload_max_filesize 32M
php_value post_max_size 32M
</IfModule>
- Remember to reboot apache to get those settings to work.
Troubleshhoting
OS upgrade may change apache2 configuration, writing agan the link /etc/apache2/conf.d/moodle to /etc/moodle )
Database Issue:
sudo -u moodle psql -c "select * from mdl_config order by id;"
sudo -u moodle psql -c "select id,teacher,maxbytes from mdl_course;"
sudo -u moodle psql -c "select id,name,maxbytes from mdl_assignment;"
sudo -u moodle psql -c "select id,teacher,maxbytes from mdl_course;"
sudo -u moodle psql -c "select id,name,maxbytes from mdl_assignment;"