You are swimming upstream to do a Mason install on OpenBSD with
chroot. It may be possible, I do have mod_perl apps running in
OpenBSD chroot, but you have to pay attention to the assumptions
about directory structure.
Anything which is loaded by the root user, as the apache process
starts, uses the full directory structure. Everything after than is
relative to /var/www and can't see anything outside of this.
so, for instance, there are no files in /var/www/mason/obj because
the post-chroot apache process can't find /var/www/var/www/mason/obj
Study that line and understand it completely if you want to run in
chroot.
Are all your modules loaded at startup under root? If not, your
component path needs to be something the process can find.
One thing you can do is:
mkdir /var/www/var
cd /var/www/var
ln -s ../ www
so that /var/www/var/www/mason/obj IS /var/www/mason/obj
which is a bit of hack, but can save on the brain cells once it's
established.
Then you have to worry about perl modules which use things like
autoload to look for modules in the usual perl places ... once apache
is in chroot, it won't be able to find them. auto/Storable.pm is a
case of this I believe. At any rate, I had to copy that to a path
under /var/www before I could get Cache:FileCache to work on OpenBSD
w/mod_perl and chroot
Or if you don't think someone is going to do a script insertion hack
and try to gain root on your site, you can turn off chroot apache
with the -u option to httpd in /etc/rc.conf.
-- devin
On Feb 23, 2006, at 8:11 PM, Matthew wrote:
I am fairly newcomer to all this...I suspect whatever the default
is on
installation!
Matthew
On Thu, 23 Feb 2006, Devin Ceartas wrote:
have you deactivated chroot or are you operating in the default
chroot of OpenBSD?
On Feb 23, 2006, at 3:48 PM, Matthew wrote:
Hi,
I am running HTML-Mason-1.04 on OpenBSD3.6. Also running
php4-core-4.3.8, mod_perl-1.29 and Apache/1.3.29. However when I
try and
access my index.html page I get the following error.
Alert!: HTTP/1.1 404 File Not Found.
In my /var/www/logs/error_log
Cannot resolve file to component: /htdocs/index.html (is file
outside
componet root?)
This is what I added to my httpd.conf file for mason.
PerlSetVar MasonCompRoot /var/www/htdocs
PerlSetVar MasonDataDir /var/www/mason
PerlModule HTML::Mason::ApacheHandler
<FilesMatch "*.html">
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
</FilesMatch>
I have however noticed that there are no files in /var/www/mason/obj
Which I am presuming, may be the cause of the problem.
Help..
Many thanks
matthew
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users