Changes

Jump to: navigation, search

OPS335 Lab 7 2018

657 bytes added, 11:24, 29 September 2016
m
Added instructions to make roundcube work with SELinux.
'''Perform the following steps on vm1:'''
#*Perform a search on the roundcube application in order to access the website.#*Either Download the "zipped tarball" from their website from a direct link or use the wget command to download directly from a download link (This part may take some effort depending on the Sourceforge website).#*Extract the "zipped tarball" and rename the generated directory that contains download source code to: '''webmail'''.#::* Use the '''--no-same-owner''' option when extracting the tar achive to ensure that the files do not keep the original owner (who will not exist on your system).*Change the ownership of the '''temp''' and '''logs''' directories so they belong to apache.*This service needs to be able to write to several directories ('''temp''' and '''logs''') that SELinux prevents write access to. For this lab onlyIf you are in a section that has SELinux set to '''enforcing''', run the following commands to let it is permissable know that apache should be allowed to write to set SELinux files in those directories.<source lang="bash">semanage fcontext -a -t httpd_log_t '/var/www/html/webmail/temp(/.*)?'semanage fcontext -a -t httpd_log_t '/var/www/html/webmail/logs(/.*)?'restorecon -v -R /var/www/html/webmail</source>::*If your machine does not have the semage command, use yum to PERMISSIVE on VM1install the policycoreutils-python package.#*In the directory now named "webmail", there will be a file named '''INSTALL''' which will walk you through the rest of the Roundcube installation.<br /><br />Some installation tips to consider:
::* Be careful about copying &amp; pasting the MySQL setup part: take time and pay attention to detail: do not try to "rush it".
::* Don't forget to set the password in the roundcube configuration.
<ol><li value="3">*Note that both of your IMAP and SMTP servers are on different machines (i.e. not on vm1). Therefore, you will need to set the following options for Roundcube:</li></ol>
::* '''$config['smtp_server']'''
:::'''NOTE:''' The last <u>two</u> entries above refer to your IMAP server
<ol><li value="4">*You should be able to test the configuration in your Roundcube installer after completing Step 3.</li><li>Try to test if the roundcube webmail application is working by sending and receiving e-mail messages.</li></ol>*
'''Record steps, commands, and your observations on this investigation in your OPS335 lab log-book'''
932
edits

Navigation menu