Thanks Nick Holmes and misc for
http://www.openbsdsupport.org/GalleryInChroot.html. It was very helpful
in getting Gallery working in OpenBSD in the chrooted Apache environment
for me. However, I need to use an external smtp server to handle
registration emails. I was getting this error message in my logs when I
tried to use the registration feature:
[Mon Jan 2 10:23:57 2006] [error] PHP Warning: fsockopen():
php_network_getaddresses: gethostbyname failed in
/htdocs/gallery/classes/Mail/smtp.php on line 87
[Mon Jan 2 10:23:57 2006] [error] PHP Warning: fsockopen(): unable to
connect to smtp-server.houston.rr.com:25 in
/htdocs/gallery/classes/Mail/smtp.php on line 87
So I just copied resolv.conf to /var/www/etc/resolv.conf and it now
works just fine.
So, Nick, if you feel like modifying your script:
patch gallery-openbsd-chroot-install.sh << EOF
103a104
> mkdir -p /var/www/etc
114a116,118
> echo 'Copying resolv.conf...'
> cd /var/www/etc
> cp /etc/resolv.conf .
EOF
Thanks again,
Justin H Haynes