{"id":70,"date":"2010-01-11T20:14:33","date_gmt":"2010-01-11T19:14:33","guid":{"rendered":"http:\/\/joseperezlozano.com\/lms\/?page_id=70"},"modified":"2010-01-11T20:16:30","modified_gmt":"2010-01-11T19:16:30","slug":"creacion-del-directorio-de-datos-de-moodle","status":"publish","type":"page","link":"https:\/\/joseperezlozano.com\/lms\/?page_id=70","title":{"rendered":"Creaci\u00f3n del directorio de datos de Moodle"},"content":{"rendered":"<p>Moodle nececita un directorio de datos\u00a0 locales donde guarda todo lo relacionado con su actividad.<\/p>\n<p>Por motivos de seguridad y para que no pueda ser accedido f\u00e1cilmente desde la Web Moodle exige que este directorio est\u00e9 el mismo nivel que var, por lo que lo tenemos que crear a mano y con permisos de \u00abroot\u00bb. Una vez creado le ponemos permisos 777.<\/p>\n<p>Recordemos que anteriormente, ya hemos mofificado los permisos de los directorios var y www. Ahora seguiremos la siguiente secuencia de comandos desde la \u00abterminal\u00bb.<\/p>\n<p>Los comandos que tengo que dar est\u00e1n en rojo, las respuestas del sistema est\u00e1n en negro y de ellas hemos cambiado a letra verde los elementos en que me tengo que fijar para comprobar que todo ha ido bien.<\/p>\n<p>adri@ubuntu:~$ <span style=\"color: #ff0000;\">sudo su &#8211;<\/span><br \/>\n[sudo] password for adri:<br \/>\nroot@ubuntu:~# <span style=\"color: #ff0000;\">cd ..<\/span><br \/>\nroot@ubuntu:\/# <span style=\"color: #ff0000;\">cd var<\/span><br \/>\nroot@ubuntu:\/var# <span style=\"color: #ff0000;\">mkdir moodledata<\/span><br \/>\nroot@ubuntu:\/var# <span style=\"color: #ff0000;\">ls -al<\/span><br \/>\ntotal 60<br \/>\ndrwxr-xr-x 17 root root\u00a0 4096 2010-01-05 22:27 .<br \/>\ndrwxr-xr-x 22 root root\u00a0 4096 2010-01-05 21:02 ..<br \/>\ndrwxr-xr-x\u00a0 2 root root\u00a0 4096 2009-11-01 07:42 backups<br \/>\ndrwxr-xr-x 21 root root\u00a0 4096 2010-01-05 20:23 cache<br \/>\ndrwxrwxrwt\u00a0 2 root root\u00a0 4096 2009-11-01 07:35 crash<br \/>\ndrwxr-xr-x\u00a0 2 root root\u00a0 4096 2009-04-20 16:07 games<br \/>\ndrwxr-xr-x 63 root root\u00a0 4096 2010-01-05 20:24 lib<br \/>\ndrwxrwsr-x\u00a0 2 root staff 4096 2009-04-13 11:33 local<br \/>\ndrwxrwxrwt\u00a0 3 root root\u00a0\u00a0\u00a0 60 2010-01-05 21:03 lock<br \/>\ndrwxr-xr-x 17 root root\u00a0 4096 2010-01-05 21:02 log<br \/>\ndrwxrwsr-x\u00a0 2 root mail\u00a0 4096 2009-04-20 15:59 mail<br \/>\n<span style=\"color: #008000;\">drwxr-xr-x\u00a0 2 root root\u00a0 4096 2010-01-05 22:27 moodledata<\/span><br \/>\ndrwxr-xr-x\u00a0 2 root root\u00a0 4096 2009-04-20 15:59 opt<br \/>\ndrwxr-xr-x 19 root root\u00a0\u00a0 680 2010-01-05 22:19 run<br \/>\ndrwxr-xr-x\u00a0 7 root root\u00a0 4096 2009-10-26 12:20 spool<br \/>\ndrwxrwxrwt\u00a0 3 root root\u00a0 4096 2010-01-05 22:25 tmp<br \/>\ndrwxrwxrwx\u00a0 2 root root\u00a0 4096 2010-01-05 20:24 www<br \/>\nroot@ubuntu:\/var# <span style=\"color: #ff0000;\">chmod 777 moodledata<\/span><br \/>\nroot@ubuntu:\/var# <span style=\"color: #ff0000;\">ls -al<\/span><br \/>\ntotal 60<br \/>\ndrwxr-xr-x 17 root root\u00a0 4096 2010-01-05 22:27 .<br \/>\ndrwxr-xr-x 22 root root\u00a0 4096 2010-01-05 21:02 ..<br \/>\ndrwxr-xr-x\u00a0 2 root root\u00a0 4096 2009-11-01 07:42 backups<br \/>\ndrwxr-xr-x 21 root root\u00a0 4096 2010-01-05 20:23 cache<br \/>\ndrwxrwxrwt\u00a0 2 root root\u00a0 4096 2009-11-01 07:35 crash<br \/>\ndrwxr-xr-x\u00a0 2 root root\u00a0 4096 2009-04-20 16:07 games<br \/>\ndrwxr-xr-x 63 root root\u00a0 4096 2010-01-05 20:24 lib<br \/>\ndrwxrwsr-x\u00a0 2 root staff 4096 2009-04-13 11:33 local<br \/>\ndrwxrwxrwt\u00a0 3 root root\u00a0\u00a0\u00a0 60 2010-01-05 21:03 lock<br \/>\ndrwxr-xr-x 17 root root\u00a0 4096 2010-01-05 21:02 log<br \/>\ndrwxrwsr-x\u00a0 2 root mail\u00a0 4096 2009-04-20 15:59 mail<br \/>\n<span style=\"color: #008000;\">drwxrwxrwx\u00a0 2 root root\u00a0 4096 2010-01-05 22:27 moodledata<\/span><br \/>\ndrwxr-xr-x\u00a0 2 root root\u00a0 4096 2009-04-20 15:59 opt<br \/>\ndrwxr-xr-x 19 root root\u00a0\u00a0 680 2010-01-05 22:19 run<br \/>\ndrwxr-xr-x\u00a0 7 root root\u00a0 4096 2009-10-26 12:20 spool<br \/>\ndrwxrwxrwt\u00a0 3 root root\u00a0 4096 2010-01-05 22:25 tmp<br \/>\ndrwxrwxrwx\u00a0 2 root root\u00a0 4096 2010-01-05 20:24 www<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Moodle nececita un directorio de datos locales donde guarda todo lo relacionado con su actividad.<\/p>\n<p>Por motivos de seguridad y para que no pueda ser accedido f\u00e1cilmente desde la Web Moodle exige que este directorio est\u00e9 el mismo nivel que var, por lo que lo tenemos que crear a mano y con permisos de \u00abroot\u00bb. [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":34,"menu_order":20,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-70","page","type-page","status-publish","hentry","odd"],"_links":{"self":[{"href":"https:\/\/joseperezlozano.com\/lms\/index.php?rest_route=\/wp\/v2\/pages\/70","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/joseperezlozano.com\/lms\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/joseperezlozano.com\/lms\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/joseperezlozano.com\/lms\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/joseperezlozano.com\/lms\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=70"}],"version-history":[{"count":3,"href":"https:\/\/joseperezlozano.com\/lms\/index.php?rest_route=\/wp\/v2\/pages\/70\/revisions"}],"predecessor-version":[{"id":72,"href":"https:\/\/joseperezlozano.com\/lms\/index.php?rest_route=\/wp\/v2\/pages\/70\/revisions\/72"}],"up":[{"embeddable":true,"href":"https:\/\/joseperezlozano.com\/lms\/index.php?rest_route=\/wp\/v2\/pages\/34"}],"wp:attachment":[{"href":"https:\/\/joseperezlozano.com\/lms\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}