I'm building a LiveCD with a built-in LAMP stack. Everything works
well enough within the chroot environment as I can access the Apache
and MySQL services there. However, within the LiveCD environment,
Apache doesn't seem to process CSS and image files properly (and quite
possibly, other types of files). It does process HTML and PHP files
correctly, though.
Anyone seen this problem before? Any suggestions?
I installed my LAMP stack via the terminal and apt-get. Main
components installed were apache2, php5, php5-mysql, and mysql-
server-5.0.
My apps, Joomla and PmWiki, are installed in /var/www.
No problem with processing PHP pages and MySQL databases. Just the
other types of files.
Thanks in advance.
Apparently, it's an Apache bug / feature. Apache won't serve files
from unionfs unless add the following line to the configuration file:
EnableSendfile Off
The bug is described in https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/95393
More details on the directive at http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile