Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

PERL DOES NOT WORK

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
webdotapp
Posts: 33
Joined: Thu Jan 29, 2015 2:04 pm

PERL DOES NOT WORK
  • Quote

Post by webdotapp » Sun Dec 20, 2015 2:09 pm

Hello,

I have tried to place following simple .pl script in web/domain/cgi-bin folder, and given its 755 permission, but when i try to load it into browser, it asks to download the file instead of execution.

Code: Select all

#!/usr/bin/perl

print "content-type: text/html \n\n";
Please help. Thanks
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: PERL DOES NOT WORK
  • Quote

Post by skurudo » Mon Dec 21, 2015 6:57 am

Works fine, but need a little adjustment in apache virtual host:

Code: Select all

<Directory /your-directory>
Options +ExecCGI
AddHandler cgi-script .cgi
DirectoryIndex index.cgi
</Directory>
Top

host79
Posts: 21
Joined: Wed Apr 01, 2015 2:30 pm

Re: PERL DOES NOT WORK
  • Quote

Post by host79 » Sat Sep 01, 2018 11:46 pm

didn't work, still asking for download page
Top

host79
Posts: 21
Joined: Wed Apr 01, 2015 2:30 pm

Re: PERL DOES NOT WORK
  • Quote

Post by host79 » Sat Sep 01, 2018 11:59 pm

get this done!
need to change web template in domain properties to 'phpcgi' and then put this .htaccess in public_html folder.

Code: Select all

AddHandler cgi-script .cgi
Options +ExecCGI
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password