running perl scripts on Solaris 9

  • Follow


Hi,

I've Solaris 9 on my box and i configured Apache web server on it. My
basic task is to run perl/cgi scripts to generate web pages. I edited
the /etc/apache/httpd.conf file to point cgi-bin script alias to
/home/xxx/mysite/cgi-bin and all the perl scripts are located at the
same location.

But why i try to open the url like this
http://localhost/cgi-bin/example01.pl, it does't work. And i tried
http://localhost/example01.pl which also does't work.

Can someone please help me to configure this setup to generate web
pages using perl & cgi scripts.

Thanks in advance
rk
0
Reply rkmullapudi 11/17/2003 8:46:00 AM

> I've Solaris 9 on my box and i configured Apache web server on it. My
> basic task is to run perl/cgi scripts to generate web pages. I edited
> the /etc/apache/httpd.conf file to point cgi-bin script alias to
> /home/xxx/mysite/cgi-bin and all the perl scripts are located at the
> same location.
>
> But why i try to open the url like this
> http://localhost/cgi-bin/example01.pl, it does't work. And i tried
> http://localhost/example01.pl which also does't work.

The error log in /etc/apache/logs/ should give you some hints.


0
Reply Oscar 11/17/2003 1:11:14 PM


rk <rkmullapudi@engineer.com> wrote:
> But why i try to open the url like this
> http://localhost/cgi-bin/example01.pl, it does't work. And i tried
> http://localhost/example01.pl which also does't work.
> 
> Can someone please help me to configure this setup to generate web
> pages using perl & cgi scripts.

Could have a lot of different reasons. Things to try first would
be running one of the perl scripts from the command line instead
as CGI, and taking a look into apache's error log file after
trying to access a CGI script.

mp.
-- 
Systems Administrator | Institute for Software Science | Univ. of Vienna
0
Reply Martin 11/17/2003 1:27:04 PM

Martin Paul <map@par.univie.ac.at> wrote in message news:<3fb8cca8$0$11742$3b214f66@usenet.univie.ac.at>...
> rk <rkmullapudi@engineer.com> wrote:
> > But why i try to open the url like this
> > http://localhost/cgi-bin/example01.pl, it does't work. And i tried
> > http://localhost/example01.pl which also does't work.
> > 
> > Can someone please help me to configure this setup to generate web
> > pages using perl & cgi scripts.
> 
> Could have a lot of different reasons. Things to try first would
> be running one of the perl scripts from the command line instead
> as CGI, and taking a look into apache's error log file after
> trying to access a CGI script.
> 
> mp.

Yes, I got the errors in the error.log which says about the permissions. 

Thanks for making me alert!
rk
0
Reply rkmullapudi 11/17/2003 5:49:20 PM

Approximately 11/17/03 05:11, Oscar del Rio uttered for posterity:

>> I've Solaris 9 on my box and i configured Apache web server on it. My
>> basic task is to run perl/cgi scripts to generate web pages. I edited
>> the /etc/apache/httpd.conf file to point cgi-bin script alias to
>> /home/xxx/mysite/cgi-bin and all the perl scripts are located at the
>> same location.
>>
>> But why i try to open the url like this
>> http://localhost/cgi-bin/example01.pl, it does't work. And i tried
>> http://localhost/example01.pl which also does't work.
> 
> The error log in /etc/apache/logs/ should give you some hints.

  Dimly recall the secret is to either configure Apache to look
  at the "execute" bit for determining "cgi-ability" of a file or
  just adding *.pl to the mime-types.  May be recalling iPlanet,
  but suspect is similar.  Also make sure that the directory is
  executable by the userid of Apache CGI [yehudi is a good id,
  with privileges similar to nobody] and all files are readable
  and executable by same.

-- 
My governor can kick your governor's ass

0
Reply Lon 11/17/2003 6:24:13 PM

4 Replies
486 Views

(page loaded in 0.198 seconds)

Similiar Articles:













7/26/2012 8:47:40 AM


Reply: