~ubuntu-branches/ubuntu/breezy/moodle/breezy

« back to all changes in this revision

Viewing changes to lang/vi_utf8/docs/faq.html

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Mitchell
  • Date: 2005-10-13 02:00:59 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051013020059-y2qcyo41t7nqppcg
Tags: 1.5.2-1ubuntu1
* Resync with debian (security update)
* changed dependencys to php5
* changed apache dependency to apache2 
* References
  CAN-2005-2247

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<head>
 
3
<title>Moodle Docs: Frequently Asked Questions (FAQ)</title>
 
4
<link rel="stylesheet" href="docstyles.css" type="TEXT/CSS">
 
5
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 
6
</head>
 
7
 
 
8
<body bgcolor="#FFFFFF">
 
9
<h1><font face="Arial">Các câu hỏi thường gặp(FAQ)</font></h1>  
 
10
<p class="normaltext"><font face="Arial">Trang này chứa các câu trả lời về một số câu hỏi thường gặp ở những người cài đặt Moodle 
 
11
. Nếu bạn đã làm theo <a href="./?file=install.html">hướng dẫn cài đặt</a> nhưng bạn vẫn gặp trục trặc
 
12
 thì đây là nơi tốt nhất giải đáp các thắc mắc của bạn.</font> </p> 
 
13
 
 
14
<p class="normaltext"><font face="Arial">Nếu không tìm thấy câu trả lời của bạn ở đây
 
15
 thử cua học <a href="http://moodle.org/mod/forum/index.php?id=5" target="_top">Using 
 
16
  Moodle</a> trên moodle.org. Bắt đầu tìm kiếm các diễn đàn sử dụng một số từ khóa, 
 
17
  có thể vấn đề của bạn đã được thảo luận. Nếu bạn không tìm thấy bất kỳ cái gì
 
18
  , thì thử gửi câu hỏi của bạn tới diễn đàn thích hợp - mọi người có thể sẽ giúp bạn.</font></p>
 
19
 
 
20
 
 
21
<p class="normaltext"><font face="Arial">Nếu bạn thử một số giải pháp
 
22
không giải quyết được vấn đề và bạn đang chạy bên cạnh một bức tường lửa,
 
23
tốt nhất bạn nên cấu  hình lại bức tường lửa của bạn để đảm bảo rằng nó không ngăn chặn một
 
24
chức năng được yêu cầu hoặc truyền thông cần thiết. Các bức tường lửa rất
 
25
có thể là nguyên nhân gây ra các vấn đề của Moodle nhưng đôi khi nó là nguyên nhân của việc 
 
26
cấu hình bị thiếu trong thiết lập cấu hình cho bức tường lửa.</font>
 
27
 
 
28
 
 
29
 
 
30
<p class="normaltext"><font face="Arial">Sử dụng danh sách này để chuyển tới các câu trả lời thích hợp với vấn đề của bạn:</font></p>
 
31
 
 
32
<p class="questionlink"><a href="#filenotfound"><font face="Arial">Bất cứ khi nào tôi thử truy cập hoặc xem một file mà tôi vừa tải lên, tôi nhận được một lỗi &quot;File không tìm thấy &quot;</font></a></p>
 
33
 
 
34
 
 
35
 
 
36
<p class="questionlink"><a href="#php"><font face="Arial">PHP - có phải nó đã được cài đặt và phiên bản nào tôi đang dùng ?</font></a></p>
 
37
 
 
38
 
 
39
 
 
40
<p class="questionlink"><a href="#blankpages"><font face="Arial">Tại sao tất cả các trang của tôi lại trống ?</font></a></p>
 
41
 
 
42
 
 
43
 
 
44
<p class="questionlink"><a href="#errorgetstring"><font face="Arial">Các trang của tôi xuất hiện các lỗi như : gọi một hàm chưa được định nghĩa: get_string()</font></a></p>
 
45
 
 
46
 
 
47
 
 
48
<p class="questionlink"><a href="#headerssent"><font face="Arial">Tại sao tôi nhận các thông báo lỗi về vấn đề &quot;các phần đầu của trang sẵn sàng được gửi &quot;?</font></a></p>
 
49
 
 
50
 
 
51
 
 
52
<p class="questionlink"><a href="#failedopen"><font face="Arial">Tôi nhận được lỗi này: yêu cầu mở bị thất bại '/web/moodle/lib/setup.php'</font></a></p>
 
53
 
 
54
 
 
55
 
 
56
<p class="questionlink"><a href="#quotes"><font face="Arial">Bất kỳ văn bản tôi thêm với một dấu nháy đơn (') hoặc một dấu nháy kép (&quot;) đều gây ra lỗi hoặc có dấu gạch chéo thêm vào</font></a></p>
 
57
 
 
58
 
 
59
 
 
60
<p class="questionlink"><a href="#sessiontmp"><font face="Arial">Tôi nhân được thông báo lỗi về session_start</font></a></p>
 
61
 
 
62
 
 
63
 
 
64
<p class="questionlink"><a href="#fixdirroot"><font face="Arial">When I go to the admin page, I get told to make dirroot blank!</font></a></p>
 
65
 
 
66
 
 
67
 
 
68
<p class="questionlink"><a href="#loginsetting"><font face="Arial">Tôi đăng nhập nhưng kết nối đăng nhập không thay đổi. Tôi được đăng nhập và có thể điều hướng tự do.</font></a></p>
 
69
 
 
70
 
 
71
 
 
72
<p class="questionlink"><a href="#resource1"><font face="Arial">Khi thử thêm một nguồn tài nguyên tôi nhận được các thông báo lỗi.</font></a></p>
 
73
 
 
74
 
 
75
 
 
76
<p class="questionlink"><a href="#noadmin"><font face="Arial">Trong quá trình xử lý thiết lập ban đầu, tôi không bao giờ nhận được yêu cầu
 
77
 tạo một tài khoản admin!</font></a></p>
 
78
 
 
79
<p class="questionlink"><a href="#nologin"><font face="Arial">Tôi không thể đăng nhập ở bất kỳ thời điểm nào - Tôi bị mắc kẹt ở màn hình  đăng nhập.</font></a></p>
 
80
 
 
81
<p class="questionlink"><a href="#backup"><font face="Arial">Làm thế nào tôi có thể sao lưu site Moodle của tôi ?</font></a></p>
 
82
 
 
83
<p class="questionlink"><a href="#locale"><font face="Arial">Tại sao site Moodle của tôi không hiển thị đúng ngày và giờ 
 
84
 
 
85
 ?</font></a></p>
 
86
 
 
87
<p class="questionlink"><a href="#cron"><font face="Arial">Các bản sao Email không được gửi tới các diễn đàn của tôi
 
88
</font></a></p>
 
89
 
 
90
<p class="questionlink">&nbsp;</p>
 
91
 
 
92
 
 
93
 
 
94
 
 
95
 
 
96
 
 
97
 
 
98
<h3><a name="filenotfound"></a>Bất cứ khi nào tôi cố gắng truy cập hoặc xem một file mà tôi tải lên, tôi đều nhận được một 
 
99
lỗi &quot;File không tìm thấy &quot;</h3>  
 
100
 
 
101
 
 
102
 
 
103
<p class="answer">Ví dụ: không tìm thấy: URL được yêu cầu  /moodle/file.php/2/myfile.jpg 
 
104
 
 
105
 
 
106
 
 
107
  không tìm thấy trên server này. </p>
 
108
 
 
109
 
 
110
 
 
111
<p class="answer">Web server của bạn cần được cấu hình lại để cho phép một phần URL sau tên một kịch bản
 
112
có thể được truy cập trực tiếp tới kịch bản đó. Điều này thường được cho phép trong 
 
113
 
 
114
 
 
115
 Apache 1, nhưng lại không cho phép trong Apache 2. Để bật nó thành on
 
116
 
 
117
 
 
118
 
 
119
  , thêm dòng này tới httpd.conf của bạn , hoặc tới một file .htaccess trong thư mục của bạn 
 
120
 
 
121
 
 
122
  (xem <a href="./?file=install.html#webserver">Tài liệu hướng dẫn cài đặt</a> 
 
123
 
 
124
 
 
125
 
 
126
  để biết thêm chi tiết ): </p>
 
127
 
 
128
 
 
129
 
 
130
<p class="answercode"><b>AcceptPathInfo</b> on</p>
 
131
 
 
132
 
 
133
 
 
134
<p class="answer">Chú ý rằng, điều này chỉ làm việc đối với Apache phiên bản 2.x. </p>
 
135
 
 
136
 
 
137
 
 
138
<p class="answer">Nếu bạn không sử dụng Apache 2 và bạn vẫn gặp trục trặc 
 
139
 
 
140
 
 
141
  (hiếm khi) thì bạn có thể quay trở lại Moodle để sử dụng một giải pháp khác. Điều bất lợi ở đây là 
 
142
 
 
143
 
 
144
 
 
145
 nó thường không được quan tâm đối với người dùng của bạn và  are a slight loss of performance for your users and you won't be able to use 
 
146
 
 
147
 
 
148
 
 
149
  relative links within HTML resources. </p>
 
150
 
 
151
 
 
152
 
 
153
<p class="answer">Để sử dụng phương pháp khác này: đăng nhập như là Admin, đi tới trang 
 
154
 
 
155
 
 
156
 
 
157
  "Cấu hình các thông số" và thay đổi thiết lập đối với "<b>slasharguments</b>". 
 
158
 
 
159
 
 
160
 
 
161
  Bây giờ bạn sẽ có khả năng truy cập các file bạn đã tải lên.</p>
 
162
 
 
163
 
 
164
 
 
165
<p class="answer">&nbsp;</p>
 
166
 
 
167
 
 
168
 
 
169
  
 
170
 
 
171
 
 
172
 
 
173
  <h3><a name="php"></a>PHP - có phải nó đã được cài đặt và phiên bản nào tôi dang dùng ?</h3>  
 
174
 
 
175
 
 
176
 
 
177
  <p class="answer">Tạo một file mới trên web site của bạn gọi là info.php, chứa các văn bản sau
 
178
 
 
179
 
 
180
    , và gọi nó từ trình duyệt của bạn:</p>
 
181
 
 
182
 
 
183
 
 
184
    
 
185
 
 
186
 
 
187
 
 
188
  <p class="answercode">&lt;?PHP phpinfo() ?&gt;</p>
 
189
 
 
190
 
 
191
 
 
192
<p class="answer">Nếu không có điều gì xảy ra thì bạn không cần phải cài đặt PHP. Xem tài liệu cài đặt để biết thêm chi tiết về 
 
193
 
 
194
 
 
195
 
 
196
 
 
197
 nơi để bạn download xuống máy tính của bạn.</p>
 
198
 
 
199
 
 
200
 
 
201
<p class="answer">&nbsp;</p>
 
202
 
 
203
 
 
204
 
 
205
<h3><a name="blankpages"></a>Tại sao tất cả các trang  của tôi lại trống ? </h3>   
 
206
 
 
207
 
 
208
 
 
209
<p class="answer">Check the dirroot variable in config.php. You must use complete, 
 
210
 
 
211
 
 
212
 
 
213
  absolute pathnames, eg:</p>
 
214
 
 
215
 
 
216
 
 
217
<p class="answercode"> $CFG->dirroot = "d:\inetpub\sites\www.yoursite.com\web\moodle";</p>
 
218
 
 
219
 
 
220
 
 
221
<p>&nbsp; </p>
 
222
 
 
223
 
 
224
 
 
225
<p class="answer">Redhat Linux platform please see: <a href="http://moodle.org/doc/?file=installamp.html">Redhat Linux</a></p>  
 
226
 
 
227
 
 
228
 
 
229
<p>&nbsp; </p>
 
230
 
 
231
 
 
232
 
 
233
<h3><a name="errorgetstring"></a>My pages show fatal errors such   
 
234
 
 
235
 
 
236
 
 
237
  as : call to undefined function: get_string()</h3>  
 
238
 
 
239
 
 
240
 
 
241
<p class="answer">If you see errors like:</p>
 
242
 
 
243
 
 
244
 
 
245
<p class="answercode">Parse error: parse error, unexpected T_VARIABLE in c:\program 
 
246
 
 
247
 
 
248
 
 
249
  files\easyphp\www\moodle\config.php on line 94 <br />
 
250
 
 
251
 
 
252
 
 
253
  Fatal error: Call to undefined function: get_string() in c:\program files\easyphp\www\moodle\mod\resource\lib.php 
 
254
 
 
255
 
 
256
 
 
257
  on line 11</p>
 
258
 
 
259
 
 
260
 
 
261
<p class="answer">then it's likely you have left out a semi-colon or ending quote 
 
262
 
 
263
 
 
264
 
 
265
  from a line in config.php (previous to line 94).</p>
 
266
 
 
267
 
 
268
 
 
269
<p class="answer">Another reason could be that you have opened config.php in a 
 
270
 
 
271
 
 
272
 
 
273
  program like Word to edit it, and saved it as a HTML web page, instead of a 
 
274
 
 
275
 
 
276
 
 
277
  proper text file.</p>
 
278
 
 
279
 
 
280
 
 
281
<p>&nbsp;</p>
 
282
 
 
283
 
 
284
 
 
285
<h3><a name="headerssent"></a>Why do I keep getting error messages   
 
286
 
 
287
 
 
288
 
 
289
  about &quot;headers already sent&quot;?</h3>  
 
290
 
 
291
 
 
292
 
 
293
<p class="answer">If you see errors like this:</p>
 
294
 
 
295
 
 
296
 
 
297
<p class="answercode">Warning: Cannot add header information - headers already 
 
298
 
 
299
 
 
300
 
 
301
  sent by (output started at /webs/moodle/config.php:87) in /webs/moodle/lib/moodlelib.php 
 
302
 
 
303
 
 
304
 
 
305
  on line 1322 </p>
 
306
 
 
307
 
 
308
 
 
309
<p class="answercode"> Warning: Cannot add header information - headers already 
 
310
 
 
311
 
 
312
 
 
313
  sent by (output started at /webs/moodle/config.php:87) in /webs/moodle/lib/moodlelib.php 
 
314
 
 
315
 
 
316
 
 
317
  on line 1323 </p>
 
318
 
 
319
 
 
320
 
 
321
<p class="answercode"> Warning: Cannot add header information - headers already 
 
322
 
 
323
 
 
324
 
 
325
  sent by (output started at /webs/moodle/config.php:87) in /webs/moodle/login/index.php 
 
326
 
 
327
 
 
328
 
 
329
  on line 54 </p>
 
330
 
 
331
 
 
332
 
 
333
<p class="answer">You have blank lines or spaces after the final ?> in your config.php 
 
334
 
 
335
 
 
336
 
 
337
  file. Sometimes text editors add these - for example Notepad on Windows - so 
 
338
 
 
339
 
 
340
 
 
341
  you may have to try a different text editor to remove these spaces or blank 
 
342
 
 
343
 
 
344
 
 
345
  lines completely. </p>
 
346
 
 
347
 
 
348
 
 
349
<p class="answer">&nbsp;</p>
 
350
 
 
351
 
 
352
 
 
353
<h3><a name="failedopen"></a>I keep getting this error: Failed   
 
354
 
 
355
 
 
356
 
 
357
  opening required '/web/moodle/lib/setup.php'</h3>  
 
358
 
 
359
 
 
360
 
 
361
<p class="answer">In your config.php, the setting that you use for the dirroot 
 
362
 
 
363
 
 
364
 
 
365
  variable must be the <strong>complete path from the root of your server's hard 
 
366
 
 
367
 
 
368
 
 
369
  drive</strong>.</p>
 
370
 
 
371
 
 
372
 
 
373
<p class="answer">Sometimes people only use the path from their home directory, 
 
374
 
 
375
 
 
376
 
 
377
  or relative to the root of the web server directory.</p>
 
378
 
 
379
 
 
380
 
 
381
<p class="answer">&nbsp;</p>
 
382
 
 
383
 
 
384
 
 
385
<h3><a name="quotes" id="quotes"></a>Any text I add with an apostrophe   
 
386
 
 
387
 
 
388
 
 
389
  (') or a quote (&quot;) causes errors or comes up with a slash added</h3>  
 
390
 
 
391
 
 
392
 
 
393
<p class="answer">Problems caused by apostrophes are caused by incorrect &quot;magic 
 
394
 
 
395
 
 
396
 
 
397
  quotes&quot; settings. Moodle requires the following settings (which are usually 
 
398
 
 
399
 
 
400
 
 
401
  the default):</p>
 
402
 
 
403
 
 
404
 
 
405
<p class="answercode">magic_quotes_gpc = On<br />
 
406
 
 
407
 
 
408
 
 
409
  magic_quotes_runtime = Off</p>
 
410
 
 
411
 
 
412
 
 
413
<p class="answer">See the section on <a href="./?file=install.html#webserver">webserver 
 
414
 
 
415
  configuration</a> in the Installation docs for more details.</p>
 
416
 
 
417
<p class="answer">&nbsp;</p>
 
418
 
 
419
 
 
420
 
 
421
 
 
422
 
 
423
 
 
424
 
 
425
 
 
426
 
 
427
 
 
428
 
 
429
 
 
430
 
 
431
 
 
432
 
 
433
<h3><a name="sessiontmp"></a>I keep getting error messages about session_start</h3>  
 
434
 
 
435
 
 
436
 
 
437
<p class="answer">If you see errors like this:</p>
 
438
 
 
439
 
 
440
 
 
441
<p class="answercode">Warning: session_start() [function.session-start]: open(/tmp\sess_d40f380d37d431fc1516e9a895ad9ce0, O_RDWR) failed: No such file or directory (2) in G:\web\moodle\lib\setup.php on line 123</p>
 
442
 
 
443
 
 
444
 
 
445
<p class="answercode">Warning: session_start() [function.session-start]: open(/tmp\sess_d40f380d37d431fc1516e9a895ad9ce0, O_RDWR) failed: No such file or directory (2) in G:\web\moodle\lib\setup.php on line 123</p>
 
446
 
 
447
 
 
448
 
 
449
<p class="answercode">Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at G:\web\moodle\lib\setup.php:1) in G:\web\moodle\lib\setup.php on line 123</p>
 
450
 
 
451
 
 
452
 
 
453
 
 
454
 
 
455
 
 
456
 
 
457
<p class="answer">... these are all related to the fact that PHP is failing to save 
 
458
 
 
459
 
 
460
 
 
461
  "session" files on your hard disk (in a directory called /tmp).  Usually the 
 
462
 
 
463
 
 
464
 
 
465
  reason is that you don't HAVE a directory called /tmp on your computer.  This 
 
466
 
 
467
 
 
468
 
 
469
  is usually the case with Windows installations.
 
470
 
 
471
 
 
472
 
 
473
 
 
474
 
 
475
 
 
476
 
 
477
<p class="answer">The solution is to fix the PHP setting for this path to point to a real directory.  You can do this in your php.ini file:</p>
 
478
 
 
479
 
 
480
 
 
481
<p class="answercode">session.save_path = C:\temp</p>
 
482
 
 
483
 
 
484
 
 
485
<p class="answer">or otherwise in a .htaccess file in your main moodle directory:</p>
 
486
 
 
487
 
 
488
 
 
489
<p class="answercode">php_value session.save_path "/home/moodle/sessions"</p>
 
490
 
 
491
<p class="answercode">&nbsp;</p>
 
492
 
 
493
 
 
494
 
 
495
 
 
496
 
 
497
 
 
498
 
 
499
<h3><a name="fixdirroot"></a>When I go to the admin page, I get told to make dirroot blank!</h3>  
 
500
 
 
501
 
 
502
 
 
503
<p class="answer">If you see errors like this in Moodle 1.0.9:</p>
 
504
 
 
505
 
 
506
 
 
507
 
 
508
 
 
509
 
 
510
 
 
511
<table class="generalbox" cellspacing="0" cellpadding="5" align="center" border="0">
 
512
 
 
513
 
 
514
 
 
515
<tbody>
 
516
 
 
517
 
 
518
 
 
519
<tr>
 
520
 
 
521
 
 
522
 
 
523
<td bgcolor=#ffbbbb>Please fix your settings in config.php: 
 
524
 
 
525
 
 
526
 
 
527
<p>You have: 
 
528
 
 
529
 
 
530
 
 
531
<p>$CFG-&gt;dirroot = "/home/users/fred/public_html/moodle"; 
 
532
 
 
533
 
 
534
 
 
535
<p>but it should be: 
 
536
 
 
537
 
 
538
 
 
539
<p>$CFG-&gt;dirroot = "";</p></td></tr></tbody></table>
 
540
 
 
541
 
 
542
 
 
543
 
 
544
 
 
545
 
 
546
 
 
547
<p class="answer">then you have encountered a small bug that occurs on some servers. The problem is with the error-checking mechanism, not with your actual path.  To fix it, find this line (line 66) in the file admin/index.php: </p>
 
548
 
 
549
 
 
550
 
 
551
<p class="answercode">if ($dirroot != $CFG->dirroot) {</p>
 
552
 
 
553
 
 
554
 
 
555
<p class="answer">and change it to this:</p>
 
556
 
 
557
 
 
558
 
 
559
<p class="answercode">if (!empty($dirroot) and $dirroot != $CFG->dirroot) {</p>
 
560
 
 
561
<p class="answercode">&nbsp;</p>
 
562
 
 
563
 
 
564
 
 
565
 
 
566
 
 
567
<h3><a name="loginsetting"></a>I login but don't appear to be. I am logged in and can navigate freely.</h3>  
 
568
 
 
569
 
 
570
 
 
571
<p class="answer">Make sure the URL in your $CFG->wwwroot setting is exactly the 
 
572
 
 
573
  same as the one you are actually using to access the site.</p>
 
574
 
 
575
<p class="answer">&nbsp;</p>
 
576
 
 
577
 
 
578
 
 
579
<h3><a name="resource1"></a>When trying to add a resource I receive error messages.</h3>  
 
580
 
 
581
 
 
582
 
 
583
<p class="answer">Assuming you are using Apache, then it's quite likely that your 
 
584
 
 
585
  setting in config.php for $CFG->wwwroot is different from the actual URL you 
 
586
 
 
587
  are using to access the site. Also try turning off "<b>secureforms</b>" in the 
 
588
 
 
589
  admin settings.</p>
 
590
 
 
591
<p class="answer">&nbsp;</p>
 
592
 
 
593
 
 
594
 
 
595
 
 
596
 
 
597
 
 
598
 
 
599
<h3><a name="noadmin"></a>During the initial setting-up process, I never get asked to create an admin account!</h3>  
 
600
 
 
601
 
 
602
 
 
603
<p class="answer">This is a known bug in versions of Moodle up to 1.0.9, now fixed in the main code and version 1.1.</p>
 
604
 
 
605
 
 
606
 
 
607
<p class="answer">It doesn't affect all people, it only occurs when the person installing Moodle has a
 
608
 
 
609
  cookie in their browser from another program on the same site, called "user", "admin", or "teacher".</p>
 
610
 
 
611
 
 
612
 
 
613
<p class="answer">Quick fixes include deleting those cookies from your browser before installing, using a different browser, or editing the file moodle/admin/user.php to insert these lines near the top:</p>
 
614
 
 
615
 
 
616
 
 
617
<p class="answercode">unset($user);<br />unset($admin);<br />unset($teacher);</p>
 
618
 
 
619
 
 
620
 
 
621
<p class="answer">After performing any of these fixes it might be a good idea 
 
622
 
 
623
  to drop all the tables in your database and re-install again from scratch.</p>
 
624
 
 
625
<p class="answer">&nbsp;</p>
 
626
 
 
627
 
 
628
 
 
629
 
 
630
 
 
631
 
 
632
 
 
633
<h3><a name="nologin"></a>I can't log in - I just stay stuck on the login screen.</h3>  
 
634
 
 
635
 
 
636
 
 
637
<p class="answer">The most common cause for this is that your own computer (not your Moodle server) 
 
638
 
 
639
                  has a firewall that is stripping referrer information from the browser.  Here are 
 
640
                  
 
641
                  some instructions for fixing <a href="http://service1.symantec.com/SUPPORT/nip.nsf/46f26a2d6dafb0a788256bc7005c3fa3/b9b47ad7eddd343b88256c6b006a85a8?OpenDocument&src=bar_sch_nam">Norton firewall products</a>.</p>
 
642
 
 
643
 
 
644
 
 
645
<p class="answer">The server admin can also fix this for everyone by editing the Moodle configuration 
 
646
 
 
647
                  page and changing the variable "<b>secureforms</b>" to "No".</p>
 
648
 
 
649
 
 
650
 
 
651
<p class="answer">Another possible cause of this problem is that sessions are 
 
652
 
 
653
  not configured properly on the server. You can test this by calling the script 
 
654
 
 
655
  http://yourserver/moodle/lib/session-test.php.</p>
 
656
 
 
657
<p class="answer">&nbsp;</p>
 
658
 
 
659
 
 
660
 
 
661
 
 
662
 
 
663
 
 
664
 
 
665
<h3><a name="backup"></a>How do I backup my whole Moodle site?</h3>  
 
666
 
 
667
 
 
668
 
 
669
<p class="answer">There are two main things you need to make a copy of: the database and the uploaded files.  The Moodle scripts themselves are less important, since you can always download a fresh copy if you have to.</p>
 
670
 
 
671
 
 
672
 
 
673
<p class="answer">There are many ways to do such backups.  Here is an outline of a little script you can run on Unix to backup the database (it works well to have such a script run daily via a cron task</p>
 
674
 
 
675
<p class="answercode">cd /my/backup/directory</p>
 
676
 
 
677
<p class="answercode">mv moodle-database.sql.gz moodle-database-old.sql.gz</p>
 
678
 
 
679
<p class="answercode">mysqldump -h example.com -u myusername --password=mypassword -C -Q -e -a mydatabasename > moodle-database.sql</p>
 
680
 
 
681
<p class="answercode">gzip moodle-database.sql</p>
 
682
 
 
683
<p class="answer">For the files, you can use rsync regularly to copy only the changed files to another host:</p>
 
684
 
 
685
<p class="answercode">rsync -auvtz --delete -e ssh mysshusername@example.com:/my/server/directory 
 
686
 
 
687
  /my/backup/directory/</p>
 
688
 
 
689
<p class="answercode">&nbsp;</p>
 
690
 
 
691
 
 
692
 
 
693
 
 
694
 
 
695
<h3><a name="locale"></a>Why doesn't my Moodle site display the time & date correctly?</h3>  
 
696
 
 
697
 
 
698
 
 
699
<p class="answer">Each language requires a specific language code (called a <strong>locale</strong> 
 
700
 
 
701
  code) to allow dates to be displayed correctly. The language packs contain default 
 
702
 
 
703
  standard codes, but sometimes these don't work on Windows servers. </p>
 
704
 
 
705
<p class="answer">You can find the correct locale codes for Windows on these two 
 
706
 
 
707
  pages: <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_language_strings.asp" target="_blank">Language 
 
708
 
 
709
  codes</a> and <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_country_strings.asp" target="_blank">Country/region 
 
710
 
 
711
  codes</a>.(eg &quot;esp_esp&quot; for spanish)</p>
 
712
 
 
713
<p class="answer">These new locale codes can be entered on the Admin -&gt; Configure 
 
714
 
 
715
  -&gt; Variables page, where they override the ones in the currently chosen language 
 
716
 
 
717
  pack.</p>
 
718
 
 
719
<p class="answer">&nbsp;</p>
 
720
 
 
721
<h3><a name="cron"></a>Email copies are not being sent   
 
722
 
 
723
  from my forums </h3>  
 
724
 
 
725
<p class="answer">You <strong>must</strong> set up cron properly if you want Moodle 
 
726
 
 
727
  to send out automatic email from forums, assignments etc. This same 
 
728
 
 
729
  process also performs a number of clean-up tasks such as deleting old unconfirmed 
 
730
 
 
731
  users, unenrolling old students and so on.</p>
 
732
 
 
733
<p class="answer">Basically, you need to set up a process to regularly call the 
 
734
 
 
735
  script http://yoursite/admin/cron.php. Please see <a href="./?file=install.html#cron">the 
 
736
 
 
737
  section on cron in the Installation documentation</a>.</p>
 
738
 
 
739
<p class="answer">Tip: Try the default setting in Moodle variables page. Leave the smtphost blank.
 
740
 
 
741
This will be acceptable for the majority of users.
 
742
<p class="answer">&nbsp;
 
743
<p class="answer">&nbsp;
 
744
 
 
745
 
 
746
<hr />
 
747
 
 
748
 
 
749
 
 
750
<p align="center" class="normaltext"><a href='ma&#105&#108t&#111:ma%72%74in@%6d%6fo%64%6c%65.o%72g' title='mar&#116&#105n@&#109oo&#100&#108&#101&#46&#111&#114g'>Suggest 
 
751
 
 
752
 
 
753
 
 
754
  a new FAQ</a> (include the answer!)</p>
 
755
 
 
756
 
 
757
 
 
758
<hr />
 
759
 
 
760
 
 
761
 
 
762
<p align="right"><strong><em>Thanks to John Eyre for helping to maintain this 
 
763
 
 
764
 
 
765
 
 
766
  FAQ.</em></strong></p>
 
767
 
 
768
 
 
769
 
 
770
<p align="CENTER"><font size="1"><a href="." target="_top">Moodle Documentation</a></font></p>
 
771
 
 
772
 
 
773
 
 
774
<p align="CENTER"><font size="1">Version: $Id: faq.html,v 1.6 2003/03/30 13:54:28 
 
775
 
 
776
 
 
777
 
 
778
  moodler Exp $</font></p>
 
779
 
 
780
 
 
781
 
 
782
 
 
783
 
 
784
 
 
785
 
 
786
</body>
 
787
 
 
788
 
 
789
 
 
790
</html>
 
791