Re: Re: f18 moodle setup
On 04/10/2013 10:35 AM, Remi Collet wrote: ... /var/www/moodle(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0) Why this ? Does we really need to allow apache to write the moodle web pages ? Yes, we do - during the *configuration* of moodle either using the web route, which is broken in F18 :( or running some php configuration scripts from the command line as the apache user. This is the recommended way according to the official moodle docs. BUT which scripts in which sequence? - that was my original question. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: f18 moodle setup
Le 11/04/2013 10:45, Virágh János a écrit : Does we really need to allow apache to write the moodle web pages ? Yes, we do - during the *configuration* of moodle No, configuration should be in /etc/moodle, not within the static content. Please read FHS. So my current recommendation for this package : don't use it, as it doesn't conform to guidelines / FHS, and have no additional value from the upstream tarball. Remi -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: f18 moodle setup
El 10/04/13 00:47, M A Young escribió: On Tue, 9 Apr 2013, Virágh János wrote: After #yum install moodle what's the proper way of configuring and starting moodle on Fedora 18? You just need to tell the config.php file how to find your database - see the /usr/share/doc/moodle-2.3.6/README-rpm file. You also need to fix SElinux permissions (see below) However, there is a problem with the current Fedora and EPEL moodle packages because they remove some php QuickForm files that the moodle source ships with in favour of Fedora's packaged version. Unfortunately moodle is expecting a couple of extra files that aren't in the Fedora version because they are now obsolete. Michael Young I had lots of problems to install moodle into Fedora, and also you should know that every time it is updated by yum you will need to fix permissions (SELinux mostly). I work developing courses in moodle for my clients (schools) and they have a certain version of moodle in their servers. To keep everything simple, I installed in my computer the same version they have and I do not want yum to update it. To put it to work, I ended up using the rpm from moodle.org, and yum localinstall it so that it would pull dependecies. All the php and mysql packages are from remi collet's repository (again it was just easier than fight against Fedora's packages). From my notes: install moodle, mysql, mysql-server give permisions to apache to the moodle folder /var/www/moodle chcon -R -t httpd_sys_content_rw_t /var/www/moodle setup moodle database in mysql edit config.php to add login, passw, root for www Then, when updating with yum, remember to exclude moodle. Anyway, you don't want it to be updated every few weeks if you are developing courses for others like I do. Keep in mind that I only develop courses in this server, and then transfer them for teaching... I mean, this is just development. I do not have students or other users accessing so I don't know how would that go. If this would be a live server I would not go for Fedora, I would pick some other linux flavour that does not change so quickly. HTH, Ester -- Ester Muñoz Aparicio C/ San Isidro 2 Urb. Altos del Cantal 11 - 04638 - Mojácar (Almería) - Spain GSM: (+34) 629457700 Vuorikatu 7 C25 - 18130 - Heinola - Finland GSM: (+358) 408019020 email: memunoz at gmail dot com skype: ester.munoz.aparicio -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: f18 moodle setup
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/10/2013 02:03 AM, Ester Muoz Aparicio wrote: El 10/04/13 00:47, M A Young escribi: On Tue, 9 Apr 2013, Vir£gh J£nos wrote: After #yum install moodle what's the proper way of configuring and starting moodle on Fedora 18? You just need to tell the config.php file how to find your database - see the /usr/share/doc/moodle-2.3.6/README-rpm file. You also need to fix SElinux permissions (see below) However, there is a problem with the current Fedora and EPEL moodle packages because they remove some php QuickForm files that the moodle source ships with in favour of Fedora's packaged version. Unfortunately moodle is expecting a couple of extra files that aren't in the Fedora version because they are now obsolete. Michael Young I had lots of problems to install moodle into Fedora, and also you should know that every time it is updated by yum you will need to fix permissions (SELinux mostly). I work developing courses in moodle for my clients (schools) and they have a certain version of moodle in their servers. To keep everything simple, I installed in my computer the same version they have and I do not want yum to update it. To put it to work, I ended up using the rpm from moodle.org, and yum localinstall it so that it would pull dependecies. All the php and mysql packages are from remi collet's repository (again it was just easier than fight against Fedora's packages). From my notes: install moodle, mysql, mysql-server give permisions to apache to the moodle folder /var/www/moodle Well we had the correct label for /var/www/moodledata(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0) I will update policy and Fix it for RHEL6, and all Supported Fedora. /var/www/moodle(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0) chcon -R -t httpd_sys_content_rw_t /var/www/moodle setup moodle database in mysql edit config.php to add login, passw, root for www Then, when updating with yum, remember to exclude moodle. Anyway, you don't want it to be updated every few weeks if you are developing courses for others like I do. Keep in mind that I only develop courses in this server, and then transfer them for teaching... I mean, this is just development. I do not have students or other users accessing so I don't know how would that go. If this would be a live server I would not go for Fedora, I would pick some other linux flavour that does not change so quickly. HTH, Ester -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.13 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlFlbUQACgkQrlYvE4MpobPzcQCeIcE2g9TlhxDCmw6775Iw/XwE sF8AniEIMrZY0K/ioYfKEr44vUA6zw0s =CWDk -END PGP SIGNATURE- -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: f18 moodle setup
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le 10/04/2013 15:46, Daniel J Walsh a écrit : On 04/10/2013 02:03 AM, Ester Muoz Aparicio wrote: El 10/04/13 00:47, M A Young escribi: On Tue, 9 Apr 2013, Vir£gh J£nos wrote: After #yum install moodle what's the proper way of configuring and starting moodle on Fedora 18? You just need to tell the config.php file how to find your database - see the /usr/share/doc/moodle-2.3.6/README-rpm file. You also need to fix SElinux permissions (see below) However, there is a problem with the current Fedora and EPEL moodle packages because they remove some php QuickForm files that the moodle source ships with in favour of Fedora's packaged version. Unfortunately moodle is expecting a couple of extra files that aren't in the Fedora version because they are now obsolete. Michael Young I had lots of problems to install moodle into Fedora, and also you should know that every time it is updated by yum you will need to fix permissions (SELinux mostly). I work developing courses in moodle for my clients (schools) and they have a certain version of moodle in their servers. To keep everything simple, I installed in my computer the same version they have and I do not want yum to update it. To put it to work, I ended up using the rpm from moodle.org, and yum localinstall it so that it would pull dependecies. All the php and mysql packages are from remi collet's repository (again it was just easier than fight against Fedora's packages). From my notes: install moodle, mysql, mysql-server give permisions to apache to the moodle folder /var/www/moodle Well we had the correct label for /var/www/moodledata(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0) I will update policy and Fix it for RHEL6, and all Supported Fedora. /var/www/moodle(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0) Why this ? Does we really need to allow apache to write the moodle web pages ? currently : $ ll -Z /var/www/moodle/ drwxr-xr-x. apache apache system_u:object_r:httpd_sys_content_t:s0 data drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 web @moodle packager, Why not use a more standard (FHS) layout /var/www/moodle/web = /usr/share/moodle /var/www/moodle/data = /var/lib/moodle @Dan, we already have some other web app with SElinux context (ex, see glpi), managed in package scriptlet. Do you really plan to add all this directories in default policy ? Remi. chcon -R -t httpd_sys_content_rw_t /var/www/moodle setup moodle database in mysql edit config.php to add login, passw, root for www Then, when updating with yum, remember to exclude moodle. Anyway, you don't want it to be updated every few weeks if you are developing courses for others like I do. Keep in mind that I only develop courses in this server, and then transfer them for teaching... I mean, this is just development. I do not have students or other users accessing so I don't know how would that go. If this would be a live server I would not go for Fedora, I would pick some other linux flavour that does not change so quickly. HTH, Ester -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlFleKAACgkQYUppBSnxahjFwQCgmOJQPciHsXYQwM+56TfPTqZN Jc0AoPKlNcitBQ7DGXFgn3FWgLlaU77V =x1T6 -END PGP SIGNATURE- -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: f18 moodle setup
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/10/2013 10:35 AM, Remi Collet wrote: Le 10/04/2013 15:46, Daniel J Walsh a écrit : On 04/10/2013 02:03 AM, Ester Muoz Aparicio wrote: El 10/04/13 00:47, M A Young escribi: On Tue, 9 Apr 2013, Vir£gh J£nos wrote: After #yum install moodle what's the proper way of configuring and starting moodle on Fedora 18? You just need to tell the config.php file how to find your database - see the /usr/share/doc/moodle-2.3.6/README-rpm file. You also need to fix SElinux permissions (see below) However, there is a problem with the current Fedora and EPEL moodle packages because they remove some php QuickForm files that the moodle source ships with in favour of Fedora's packaged version. Unfortunately moodle is expecting a couple of extra files that aren't in the Fedora version because they are now obsolete. Michael Young I had lots of problems to install moodle into Fedora, and also you should know that every time it is updated by yum you will need to fix permissions (SELinux mostly). I work developing courses in moodle for my clients (schools) and they have a certain version of moodle in their servers. To keep everything simple, I installed in my computer the same version they have and I do not want yum to update it. To put it to work, I ended up using the rpm from moodle.org, and yum localinstall it so that it would pull dependecies. All the php and mysql packages are from remi collet's repository (again it was just easier than fight against Fedora's packages). From my notes: install moodle, mysql, mysql-server give permisions to apache to the moodle folder /var/www/moodle Well we had the correct label for /var/www/moodledata(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0) I will update policy and Fix it for RHEL6, and all Supported Fedora. /var/www/moodle(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0) I guess this should be /var/www/moodle/data(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0) Why this ? Does we really need to allow apache to write the moodle web pages ? currently : $ ll -Z /var/www/moodle/ drwxr-xr-x. apache apache system_u:object_r:httpd_sys_content_t:s0 data drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 web Sounds good to me, please open a bugzilla. I also already added labeling for /var/lib/moodle @moodle packager, Why not use a more standard (FHS) layout /var/www/moodle/web = /usr/share/moodle /var/www/moodle/data = /var/lib/moodle @Dan, we already have some other web app with SElinux context (ex, see glpi), managed in package scriptlet. Do you really plan to add all this directories in default policy ? Remi. chcon -R -t httpd_sys_content_rw_t /var/www/moodle setup moodle database in mysql edit config.php to add login, passw, root for www Then, when updating with yum, remember to exclude moodle. Anyway, you don't want it to be updated every few weeks if you are developing courses for others like I do. Keep in mind that I only develop courses in this server, and then transfer them for teaching... I mean, this is just development. I do not have students or other users accessing so I don't know how would that go. If this would be a live server I would not go for Fedora, I would pick some other linux flavour that does not change so quickly. HTH, Ester -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.13 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlFlm0MACgkQrlYvE4MpobOL1ACdEO6IDI3LZkCrFgi56Pobt55V 3bIAn1jDYXpv25YLcSORGCyjc2+93YpP =sq1V -END PGP SIGNATURE- -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
f18 moodle setup
After #yum install moodle what's the proper way of configuring and starting moodle on Fedora 18? The web-based install doesn't work because of the missing install.php file: # grep install.php moodle.spec rm config-dist.php install.php filter/tex/mimetex.* filter/tex/README.mimetex The command-line alternatives from the official documentation http://docs.moodle.org/23/en/Installing_Moodle die with various (selinux, file permission, locale or other) errors... Does there exist some step-by-step fedora-specific documentation? J. Virágh -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: f18 moodle setup
Hi Janos, Try this. http://pkgs.org/fedora-18/fedora-i386/moodle-2.3.3-1.fc18.noarch.rpm.html HTH, Zoltan 2013/4/9 Virágh János vir...@inf.u-szeged.hu After #yum install moodle what's the proper way of configuring and starting moodle on Fedora 18? The web-based install doesn't work because of the missing install.php file: # grep install.php moodle.spec rm config-dist.php install.php filter/tex/mimetex.* filter/tex/README.mimetex The command-line alternatives from the official documentation http://docs.moodle.org/23/en/Installing_Moodle die with various (selinux, file permission, locale or other) errors... Does there exist some step-by-step fedora-specific documentation? J. Virágh -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org -- PGP: 06853DF7 -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: Re: f18 moodle setup
Hi Janos, Try this. http://pkgs.org/fedora-18/fedora-i386/moodle-2.3.3-1.fc18.noarch.rpm.html HTH, Zoltan Installing with yum is OK, but what to do after? -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org