-----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@xxxxxxxxxxxxxxxxxxxxxxx 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