Perl script is being executed on behalf of Apache user instead of domain owner

Created:

2016-11-16 13:01:15 UTC

Modified:

2017-05-24 10:49:19 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Perl script is being executed on behalf of Apache user instead of domain owner

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

  1. A Perl script with *.pl extension is being executed on behalf of Apache user instead of domain owner. FastCGI support is enabled for domain.
  2. The mod_perl library is turned on under Plesk > Tools & Settings > Apache Webserver Settings > mod_perl.
  3. The Perl support feature is activated under Plesk > Domains > example.com > Hosting Settings > Perl support .

Cause

If mod_perl module is enabled then related directives are added to Apache configuration file and .pl files are running under Apache user and suexec module is avoided.

Resolution

  1. Move the script to WEBSPACE_DIRECTORY/httpdocs/cgi-bin/ directory.
  2. Rename the script from *.pl to *.cgi . In this case the script will be launched under website's user.

  3. Turn off the Perl support feature for the website.
Have more questions? Submit a request
Please sign in to leave a comment.