Author Topic: perl scripts in webserver  (Read 2082 times)

ulat

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
perl scripts in webserver
« 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!

ichat

  • Zen Hero
  • *****
  • Posts: 795
  • Karma: +28/-16
  • RTFM!
    • View Profile
Re: perl scripts in webserver
« Reply #1 on: October 24, 2012, 08:05:17 pm »
did you chmod +x  the file?
All tips hints and advices are based on my personal experience.
As I try my best to be as accurate as possible, following my advice is always at your own risk,
I claim absolutely NO responsibility in any way!

ulat

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: perl scripts in webserver
« Reply #2 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>

christian

  • Guest
Re: perl scripts in webserver
« Reply #3 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.

ulat

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: perl scripts in webserver
« Reply #4 on: October 25, 2012, 02:44:05 pm »
Thank you very much! Now it works great!