source: moodle/trunk/fuentes/debian/README.Debian @ 1331

Last change on this file since 1331 was 1331, checked in by jrpelegrina, 3 years ago

Updated to moodle 3.0.3

File size: 3.7 KB
Line 
1UPGRADING FROM moodle 2.6.x TO 2.7.x
2------------------------------------
3
4Quick howto on upgrading, by Joost van Baal-Ilić, feb 2015.
5
6
7Maintenance mode
8- - - - - - - -
9
10Put site in maintenance mode; no web access will be allowed
11
12 # sudo -u www-data php /usr/share/moodle/admin/cli/maintenance.php --enable
13
14
15Database dumps
16- - - - - - -
17
18Make sure you have backups of your moodle database content.
19
20Make sure you have e.g.
21
22 22 4 * * *  postgres  exec /usr/local/sbin/pgsqldumps
23
24in /etc/cron.d/pgsqldumps, and have e.g.
25
26 #! /bin/sh
27 set -e
28 umask 027
29 cd /var/backups/pgsql
30 for i in $(psql -Atc "SELECT datname FROM pg_catalog.pg_database WHERE datallowconn")
31 do
32        pg_dump -Fc -f $i.new $i
33        mv $i.new $i.pg
34 done
35
36in /usr/local/sbin/pgsqldumps .
37
38
39Backups of uploaded files
40- - - - - - - - - - - - -
41
42Backup all uploaded files, e.g. site and course files uploaded via Moodle
43located in moodledata:
44
45 grep dataroot /etc/moodle/config.php
46
47Typically, in /var/lib/moodle.
48
49
50Upgrade moodle software
51- - - - - - - - - - - -
52
53 # aptitude dist-upgrade
54
55
56Disable maintenance mode
57- - - - - - - - - - - -
58
59 # sudo -u www-data php /usr/share/moodle/admin/cli/maintenance.php --disable
60
61
62See also
63- - - - -
64
65See also https://docs.moodle.org/27/en/Upgrading
66
67
68
69
70
71
72
73------------------------------------------------------------
74NOTE: information below is likely obsolete; use with caution
75------------------------------------------------------------
76
77Moodle quickstart for Debian
78----------------------------
79
80INSTALLATION
81
82  After installation, Moodle will not be available/exposed by default.
83 
84INSTALLATION WITH VIRTUAL HOST
85  If you would like to use a virtual host edit file (as a root user):
86  /etc/moodle/apache.vhost.conf
87 
88  * make sure that ServerName is correct (the host should match what
89    you provided during the installation).
90  * enter correct email address for ServerAdmin.
91
92  If you would like to keep your Apache logs separate for Moodle, change:
93  * ErrorLog
94  * CustomLog
95  to a location of your choice (i.e. ${APACHE_LOG_DIR}/moodle.error.log).
96
97  Save the file and link it to your Apache configuration:
98  ln -s /etc/moodle/apache.vhost.conf /etc/apache2/sites-enabled/moodle
99
100  Restart Apache:
101  /etc/init.d/apache restart
102
103  Go to the Moodle URL and finish installation - follow instructions on screen.
104 
105VIRTUAL HOST EXAMPLE
106  To configure Moodle on the URL: www.example.com. The URL should be configured
107  already and point to the IP of the server.
108
109  During the package installation request www.example.com URL:
110  Please enter the URL for the Moodle site: www.example.com
111
112  Review /etc/moodle/apache.vhost.conf - it should contain valid entries already.
113
114  Execute as root:
115  ln -s /etc/moodle/apache.vhost.conf /etc/apache2/sites-enabled/moodle
116  /etc/init.d/apache restart
117 
118  Go to www.example.com and finish installation.
119
120INSTALLATION WITH ALIAS DIRECTIVE
121  If you decide to use Apache Alias directive, Moodle site will be available
122  for all the virtual hosts you may have.
123  You can use Alias only if the URL you have selected during package installation
124  has a non-empty path, e.g. www.example.com/moodle.
125
126  Apache configuration file is located at /etc/moodle/apache.conf to enable it:
127  ln -s /etc/moodle/apache.conf /etc/apache2/conf.d/moodle
128
129  Restart Apache:
130  /etc/init.d/apache2 restart
131
132  By default Moodle installation will only be available from localhost, to make
133  it available from any IP, edit /etc/moodle/apache.conf and comment out the line:
134  #allow from all
135  and restart Apache.
136 
137UNINSTALLATION
138  After uninstalling Moodle, remove any symoblic links created for Apache, e.g.:
139  * /etc/apache2/sites-enabled/moodle
140  * /etc/apache2/conf.d/moodle
141
142--Tomasz Muras <tomasz.muras.eu>, May 2010
143
Note: See TracBrowser for help on using the repository browser.