Jump to content

ExecCGI question


neostrife

Recommended Posts

Thanks for looking at this. If there's a forum that would be better suited for this question please let me know.

 

Problem:

 

I'm running apache2 and am trying to have perl scripts that use binaries owned by root consistently run in public_html. When I try to have these scripts run the browser tries to download the script's source, but even after downloading the source the file is blank. I am able to execute simple perl scripts that don't use binaries (for example, a hello script works fine).

 

None of my scripts have bugs, they are set to 755, and the directory is set to 755 - and I am able to use them on servers that aren't my own and they run in terminal with no problems. I'm not using mod-perl.

 

What didn't work:


chown www-data:www-data myscript.pl
chown -R www-data:www-data public_html

The top part of my sites-enabled file:


NameVirtualHost *
<VirtualHost *>

        ServerAdmin Me
        AddHandler cgi-script .cgi .pl .pm
        DocumentRoot /home/me/public_html

        <Directory />
                Options FollowSymLinks +ExecCGI
                AllowOverride None
                Order allow,deny
                Allow from all

        </Directory>

        <Directory /home/me/public_html>
                Options Indexes FollowSymLinks MultiViews +ExecCGI 
                AddHandler cgi-script .cgi .pl .pm
                AllowOverride None
                Order allow,deny
                Allow from all
                Include /etc/apache2/mods-available/cgid.load
                Include /etc/apache2/mods-available/suexec.load
        </Directory>

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.