Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: ulat on October 24, 2012, 04:51:11 pm

Title: perl scripts in webserver
Post by: ulat on October 24, 2012, 04:51:11 pm
Hi!
I tried zu execute a cgi file on the apache webserver, yet it doesn't execute the script. Instead it shows only the source-code? Any idea why?
Thanks!
Title: Re: perl scripts in webserver
Post by: ichat on October 24, 2012, 08:05:17 pm
did you chmod +x  the file?
Title: Re: perl scripts in webserver
Post by: ulat on October 25, 2012, 09:39:12 am
Yes, I did....

But I found that apache2 overwrites the httpd.conf file every time it is restartet.... So the Directory tag is overwritten....

Where do I put this tag in zentyal webserver?

<Directory /var/www/bugzilla>
AddHandler cgi-script .cgi
Options +ExecCGI
DirectoryIndex index.cgi index.html
AllowOverride Limit FileInfo Indexes Options
</Directory>
Title: Re: perl scripts in webserver
Post by: christian on October 25, 2012, 11:16:30 am
But I found that apache2 overwrites the httpd.conf file every time it is restartet.... So the Directory tag is overwritten....

Indeed this is described here (http://doc.zentyal.org/en/develop.html#advanced-service-customisation).
Title: Re: perl scripts in webserver
Post by: ulat on October 25, 2012, 02:44:05 pm
Thank you very much! Now it works great!