work related

June 12, 2008

misclanious collection

So I've been installing moodle currently. I do have to say I'm not overly impressed with the package as a whole.

Installing this product was not terrably hard but the documentation was severly lacking in tailoring an install to be both robust and stable. I have the system up on a VM and have created snapshots to revert back which makes life much simpler.

So far the best part of this exercise is learning more about RHEL5 and an assortment of other commands related to httpd/selinux/php. Here's some of the fun :-)

First since this is now RHEL5 I had to force myself to start thinking in terms of yum instead of up2date. This was pretty fun actually I very much like the new-to-me package manager. I also added the fedora EPEL repository to this host.

# yum --enablerepo=epel search php
# yum groupinfo "Web Server"
# yum groupinstall "Web Server"
# yum search php-ldap

Next moodle need a bunch of php modules that needed to be located and installed. I did this with a combination of yum commands and finding out what was compiled with php. The second is handy in finding out what MPM mechanasim you are going to be using.

# php -m
[PHP Modules]
-list of modules-
# httpd -l
Compiled in modules:
-list of modules-

Last SELINUX was giving me fits about stuff on this box however, SELINUX is alwase the last thing you remember to check. Once I located the culprit the fix was not hard at all. This got me playing with the suite of SELINUX tools and the audit tools on the host.

# sealert -l longalertstring
# audit2why
# audit2allow
# chcon system_u:object_r:httpd_sys_content_t moodle_data/
# ls -Zd moodle_data/
drwxrwx--- moodlepilot apache system_u:object_r:httpd_sys_content_t moodle_data/