[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to setup OBSD to run CGI
Thanks for all response, I make it work now.
These are what I did to make them work:
For CGI support, I need to change the Options of
cgi-bin from None to ExecCGI in the conf/httpd.conf
<Directory "/var/www/cgi-bin">
AllowOverride None
Options ExecCGI <---here
Order allow,deny
Allow from all
</Directory>
For perl module:
I copied /usr/bin/perl to /var/www/usr/bin
#ldd perl
I found it depends on :
/usr/lib/libperl.so.8.0
/usr/lib/libm.so.1.0
/usr/lib/libc.so.30.1
/usr/lib/libutil.so.9.0
/usr/libexec/ld.so
so I copied all these files to /var/www/usr/lib and
/var/www/usr/libexec seperately.
and I changed mode of cgi-bin/printenv to 440
For shell support:
cp /bin/sh to /var/www/bin/
cp -P -R /dev/fd/5 /var/www/dev/fd/5
chmod 551 /var/www/cgi-bin/cgi-test
Now they're working.
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools