Perl/Python Scripts Fail to Access Internet/Network through Web GUI
<p>Another way I could ask this question is:</p>

<p><strong>How do I set pages served by Apache to have higher privileges?</strong> This would be similar to me setting an Application Pool in IIS to use different credentials.</p>

<p>I have multiple Perl and Python scripts I am publishing through a web front end. The front end is intended to run any script I have in a database. With most of the scripts I have no issues... but anything that seems to utilize the network returns nothing. No error messages or failures reported. Running from CLI <strong>as ROOT</strong> works, run from WEB GUI <strong>as www-data</strong> calling same command fails.</p>

<p>I am lumping Python and Perl together in this question because the issue is the same leading me to believe it isn't a code issue, it is a permissions issue. Also why I am not including code, initially.</p>

<p>These are running on linux using Apache and PHP5. Python 2.7 and Perl5 I believe. Here are examples of apps I have that are failing:</p>

<ol>
<li>Python - Connecting out to VirusTotal API</li>
<li>Perl - Connecting to Domains and Creating a Graph with GraphViz</li>
<li>Perl - Performing a Wake On LAN function on a local network segment.</li>
</ol>