Xin chao moi nguoi,

Truoc tien An xin gui loi chuc den nhom Hanoilug mot nam moi Thinh Vuong, Suc 
Khoe va Thanh dat.

Sau loi chuc la mot so cau hoi lien quan den viec cai dat moodle.

Cach day hai tuan, An co nho Jean-Christophe huong dan cai dat cac goi phan mem 
tren Ubuntu, trong do co ca goi LAMP: 
    -    mysql-server-5.0
    - apache 2
    - php5-mysql
sau do cai them Moodle.

Ngay sau khi cai dat xong, tat ca deu chay binh thuong.
Sau do, trong qua trinh tap huan, toi co cai them phpmyadmin. Luc ay
Moodle van dang mo tren firefox nen toi chu quan khong kiem tra lai, ma
chi kiem tra phpmyadmin.

Hom sau khoi dong lai thi co ket qua nhu sau:
    - localhost: it works
    - http://localhost/phpmyadmin/ : van vao duoc.
    - Nhung http://localhost/moodle: erreur 403 forbidden
Thong bao nhu sau: "You don't have permission to access /moodle
on this server."

Toi co kiem tra ben cua so lenh bang cach thu lai tat ca cac buoc cai
dat goi Lamp, ket qua thong bao ve server web nhu sau: "Could not
reliably determine the server's fully qualified domain name, using
127.0.1.1 for ServerName"

Nhu vay, xin hoi toi phai lam gi de khac phuc loi tren va cai dat lai Moodle ???
Xin gui kem day bang copy cua so dong lenh.
Rat mong duoc giup do.
Xin chan thanh cam on.
 
Cordialement
 
Doan Huu Nhat An

________________________________

Service de L'Education et la Formationde Thua Thien Hué
Centre de Ressources Francophones (CRF) - Trung Tâm Nguôn Tiêng Pháp
Ad: 10, Tran Cao Van - Hué, Viet Nam
Tél:  054. 3623 804
Portable: 0914 489 325
Email: [email protected],[email protected]
Web: http://www.thuathienhue..edu.vn/phap/
Blog: http://crf-infos.blogspot.com/


      
crf-...@crf-hue:~$ service apache2 restart 
 * Restarting web server apache2                                                
 * We failed to correctly shutdown apache, so we're now killing all running 
apache processes. This is almost certainly suboptimal, so please make sure your 
system is working as you'd expect now!
kill: 235: Operation not permitted

apache2: Syntax error on line 278 of /etc/apache2/apache2.conf: Could not open 
configuration file /etc/apache2/conf.d/moodle: Permission denied
                                                                         [fail]
crf-...@crf-hue:~$ root
Le programme « root » n'est pas installé actuellement.  Vous pouvez l'installer 
en tapant :
sudo apt-get install root-system-bin
bash: root : commande introuvable
crf-...@crf-hue:~$ /var/www#
bash: /var/www#: Aucun fichier ou dossier de ce type
crf-...@crf-hue:~$ sudo -i
[sudo] password for crf-hue: 
r...@crf-hue:~# /var/www#
-bash: /var/www#: Aucun fichier ou dossier de ce type
r...@crf-hue:~# aptitude install mysql-server
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Lecture de l'information d'état étendu      
Initialisation de l'état des paquets... Fait
Écriture de l'information d'état étendu... Fait
Aucun paquet ne va être installé, mis à jour ou enlevé.
0 paquets mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de télécharger 0o d'archives. Après dépaquetage, 0o seront 
utilisés.
Écriture de l'information d'état étendu... Fait
Lecture des listes de paquets... Fait             
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Lecture de l'information d'état étendu       
Initialisation de l'état des paquets... Fait

r...@crf-hue:~# aptitude install apache2 apache2-mpm-prefork
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Lecture de l'information d'état étendu      
Initialisation de l'état des paquets... Fait
Aucun paquet ne va être installé, mis à jour ou enlevé.
0 paquets mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de télécharger 0o d'archives. Après dépaquetage, 0o seront 
utilisés.
Écriture de l'information d'état étendu... Fait
Lecture des listes de paquets... Fait             
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Lecture de l'information d'état étendu       
Initialisation de l'état des paquets... Fait

r...@crf-hue:~# a2enmod mime
Module mime already enabled
r...@crf-hue:~# nano /etc/apache2/conf.d/charset
r...@crf-hue:~# apache2ctl configtest
apache2: Could not reliably determine the server's fully qualified domain name, 
using 127.0.1.1 for ServerName
Syntax OK
r...@crf-hue:~# apache2ctl graceful
apache2: Could not reliably determine the server's fully qualified domain name, 
using 127.0.1.1 for ServerName
r...@crf-hue:~# aptitude install libapache2-mod-php5 php5-mysql
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Lecture de l'information d'état étendu      
Initialisation de l'état des paquets... Fait
Aucun paquet ne va être installé, mis à jour ou enlevé.
0 paquets mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de télécharger 0o d'archives. Après dépaquetage, 0o seront 
utilisés.
Écriture de l'information d'état étendu... Fait
Lecture des listes de paquets... Fait             
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Lecture de l'information d'état étendu       
Initialisation de l'état des paquets... Fait

r...@crf-hue:~# chown crf-hue /var/www/
r...@crf-hue:~# ls -la
total 96
drwx------ 17 root root 4096 2009-12-22 15:23 .
drwxr-xr-x 21 root root 4096 2009-12-22 15:15 ..
drwx------  2 root root 4096 2009-12-30 14:39 .aptitude
-rw-------  1 root root 1050 2009-12-18 11:05 .bash_history
-rw-r--r--  1 root root 2227 2008-12-24 01:53 .bashrc
drwxr-xr-x  3 root root 4096 2009-12-11 15:07 .cache
drwx------  3 root root 4096 2009-12-11 15:04 .config
drwx------  3 root root 4096 2009-12-08 14:09 .dbus
drwxr-xr-x  2 root root 4096 2009-12-30 14:39 .debtags
drwxr-xr-x  2 root root 4096 2009-12-11 15:01 Desktop
drwx------  3 root root 4096 2009-12-28 09:38 .gconf
drwx------  2 root root 4096 2009-12-28 09:39 .gconfd
drwxr-xr-x  6 root root 4096 2009-12-14 17:44 .gnome2
drwx------  2 root root 4096 2009-12-14 17:44 .gnome2_private
drwx------  3 root root 4096 2009-12-11 15:10 .local
drwxr-xr-x  3 root root 4096 2009-12-11 15:01 .nautilus
-rw-r--r--  1 root root  140 2007-11-20 00:57 .profile
drwx------  2 root root 4096 2009-12-22 15:16 .pulse
-rw-------  1 root root  256 2009-12-08 20:47 .pulse-cookie
-rw-------  1 root root 9495 2009-12-22 15:23 .recently-used.xbel
drwx------  3 root root 4096 2009-12-30 14:33 .synaptic
drwxr-xr-x  2 root root 4096 2009-12-14 18:03 .wapi
r...@crf-hue:~# ls -la
total 96
drwx------ 17 root root 4096 2009-12-22 15:23 .
drwxr-xr-x 21 root root 4096 2009-12-22 15:15 ..
drwx------  2 root root 4096 2009-12-30 14:39 .aptitude
-rw-------  1 root root 1050 2009-12-18 11:05 .bash_history
-rw-r--r--  1 root root 2227 2008-12-24 01:53 .bashrc
drwxr-xr-x  3 root root 4096 2009-12-11 15:07 .cache
drwx------  3 root root 4096 2009-12-11 15:04 .config
drwx------  3 root root 4096 2009-12-08 14:09 .dbus
drwxr-xr-x  2 root root 4096 2009-12-30 14:39 .debtags
drwxr-xr-x  2 root root 4096 2009-12-11 15:01 Desktop
drwx------  3 root root 4096 2009-12-28 09:38 .gconf
drwx------  2 root root 4096 2009-12-28 09:39 .gconfd
drwxr-xr-x  6 root root 4096 2009-12-14 17:44 .gnome2
drwx------  2 root root 4096 2009-12-14 17:44 .gnome2_private
drwx------  3 root root 4096 2009-12-11 15:10 .local
drwxr-xr-x  3 root root 4096 2009-12-11 15:01 .nautilus
-rw-r--r--  1 root root  140 2007-11-20 00:57 .profile
drwx------  2 root root 4096 2009-12-22 15:16 .pulse
-rw-------  1 root root  256 2009-12-08 20:47 .pulse-cookie
-rw-------  1 root root 9495 2009-12-22 15:23 .recently-used.xbel
drwx------  3 root root 4096 2009-12-30 14:33 .synaptic
drwxr-xr-x  2 root root 4096 2009-12-14 18:03 .wapi
r...@crf-hue:~# cd /var/www
r...@crf-hue:/var/www# ls -la
total 36
drwxr-xr-x  2 crf-hue root    4096 2009-12-18 10:36 .
drwxr-xr-x 16 root    root    4096 2009-12-14 18:57 ..
-rw-r--r--  1 crf-hue crf-hue 1644 2009-12-18 10:34 form.html
-rw-r--r--  1 crf-hue crf-hue 1016 2009-12-18 10:33 formulaire.html
-rw-r--r--  1 root    root      45 2009-12-14 18:57 index.html
-rw-r--r--  1 crf-hue crf-hue  991 2009-12-18 10:35 reponse.php
-rw-r--r--  1 crf-hue crf-hue  336 2009-12-16 14:19 test.php
-rw-r--r--  1 crf-hue crf-hue  336 2009-12-16 14:19 test.php~
-rw-r--r--  1 crf-hue crf-hue 1644 2009-12-18 10:35 welcome.php
r...@crf-hue:/var/www# service apache2 restart
 * Restarting web server apache2                                                
apache2: Could not reliably determine the server's fully qualified domain name, 
using 127.0.1.1 for ServerName
 ... waiting apache2: Could not reliably determine the server's fully qualified 
domain name, using 127.0.1.1 for ServerName
                                                                         [ OK
_______________________________________________
POST RULES : http://wiki.hanoilug.org/hanoilug:mailing_list_guidelines
_______________________________________________
HanoiLUG mailing lists: http://lists.hanoilug.org/
HanoiLUG wiki: http://wiki.hanoilug.org/
HanoiLUG blog: http://blog.hanoilug.org/

Trả lời cho