Help plz

Hi all,
sorry I've already posted this msg in the general forum but maybe this is more appropriate, so I repeat it here:

I've a perl script that use sudo in /web/webmail/omail.pl and /web/webmail/contrib/onelogin/index.pl

I've added each directory (/web/webmail/ and /web/webmail/contrib/onelogin) a the end of my httpd.conf
in this way:

<Directory /web/webmail/contrib/onelogin/>
AllowOverride All
</Directory>
<Directory /web/webmail/omail.pl>
AllowOverride All
</Directory>
ScriptAlias /web/webmail/contrib/onelogin/ /web/webmail/

I've chmod 755 omail.pl and index.pl and both the directories

I've added .htaccess in each directory containing this:
Options +ExecCGI
AddHandler cgi-script .pl

I've added in /etc/httpd/conf/vhosts/Vhosts.conf this line for the virtual host that I'm running:

If I start index.pl from the web it work, but when it pass data to omail.pl I get the list of the script inside of omail.pl.
AddHandler cgi-wrapper .pl

If I run it from telnet it work.

Can u help me?
Thank you in advance
Help plz

 

 

 

 

Top