On Mar 26, 2014, at 10:17 AM, Bachtel, Michael wrote:

Hi all,

Some of us have had issues with Apache not serving some deployed files.

In short the issue is one with the OS's file context and was fixed by running
$ sudo restorecon -r /opt/<APP_DIR>

Longer version sourced from https://www.centos.org/forums/viewtopic.php?t=6834

"The issue is caused when you mv something from one place to another. It preserves the selinux context of the original when you move it, so if you untar something in /home or /tmp it gets given an selinux context that matches its location. Now you mv that to /var/www/html and it takes the context saying it belongs in /tmp or /home with it and httpd is not allowed by policy to access those files.

If you cp the files instead of mv them, the selinux context gets assigned according to the location you're copying to, not where it's coming from. Running restorecon puts the context back to its default and fixes it too."

~Mike

Copying static content to VM’s

First you need to copy static content from here:
cp -R /wbi/haldata/webdev/* /home/jboss1/HAL/

And then supplement it from your workspace:

On developer VM, to copy static content from the checked out halwebsite folder to the apache document root and compile at the same time, you can run the following command from the root of your checked out project:

cp -R halwebsite/* /home/jboss1/HAL/halwebsite/ && mvn install

The && shell operator is a logic AND, it means that the 'mvn install' command only runs if the left part of the commands succeeds.

Deploy static content and deploy in JBoss (using hot deploy):

mvn install && cp hal-ear/target/hal-*.ear /home/jboss1/programs/jboss-eap-5.1/jbossas/server/haldev-vm-template/deploy/ && cp -R halwebsite/* /home/jboss1/HAL/halwebsite/

Running XAMPP on Different Ports

You will need to access the application by the following:
http://localhost:8080/
https://localhost:444/

Change port 80 to 8080 twice in the following file:
F:\Programs\xampplite\apache\conf\httpd.conf

Change port 443 to 444 three times in the following file
F:\Programs\xampplite\apache\conf\extra\httpd-ssl.conf