vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| On Sat, 5 Jul 2003 20:00:24 +0200 "Bulba007" <bulba007@wp.pl> wrote: > > How to config httpd.conf file to run cgi scripts wrtitten in Perl. > > OpenBSD 3.3 stable The default httpd.conf has the ScriptAlias directive you need to run scripts from /var/www/cgi-bin. The scripts won't run under the default configuration though because the httpd runs chrooted to ServerRoot (/var/www default); they won't be able to find the perl executable among other things. The fast fix is to add "-u" to httpd's options in /etc/rc.conf. This will cause apache to not chroot. You should understand the implications of this before you do it. --Alex |
| |||
| Uzytkownik "Alex" <alex.ferguson@NOSPAMdartmouth.edu> napisal w wiadomosci news:20030705141646.4ea33d0e.alex.ferguson@NOSPAMd artmouth.edu... > On Sat, 5 Jul 2003 20:00:24 +0200 > "Bulba007" <bulba007@wp.pl> wrote: > > > > > How to config httpd.conf file to run cgi scripts wrtitten in Perl. > > > > OpenBSD 3.3 stable > > The default httpd.conf has the ScriptAlias directive you need to run scripts from /var/www/cgi-bin. The scripts won't run under the default configuration though because the httpd runs chrooted to ServerRoot (/var/www default); they won't be able to find the perl executable among other things. The fast fix is to add "-u" to httpd's options in /etc/rc.conf. This will cause apache to not chroot. I won't do this, apache must be in chroot jail. Is there another way? B. |
| |||
| On Sat, 5 Jul 2003 21:54:43 +0200 "Bulba007" <bulba007@wp.pl> wrote: > I won't do this, apache must be in chroot jail. > Is there another way? Yep. You need to copy every system file, executable, and library the scripts and perl might use into /var/www. e.g. /var/www/usr/bin/perl /var/www/usr/lib/... and so on. --Alex |
| |||
| On Sat, 5 Jul 2003 23:15:50 +0200 "Bulba007" <bulba007@wp.pl> wrote: > Which is more safety (for server) way: first one or second? The second, provided that you remember to keep all the copied files up to date as you patch their counterparts. There will be a fair amount of trial and error before your scripts work though. --Alex |
| ||||
| Wouldn't it be simpler to just make symbolic links to all the files? "Alex" <alex.ferguson@NOSPAMdartmouth.edu> wrote in message news:20030705201111.2bd2b7ca.alex.ferguson@NOSPAMd artmouth.edu... | On Sat, 5 Jul 2003 23:15:50 +0200 | "Bulba007" <bulba007@wp.pl> wrote: | | > Which is more safety (for server) way: first one or second? | | The second, provided that you remember to keep all the copied files up to date as you patch their counterparts. There will be a fair amount of trial and error before your scripts work though. | | --Alex |