Search Engine: Elastic

Article ID: 130340, created on Feb 27, 2017, last review on Feb 27, 2017

  • Applies to:
  • Operations Automation 6.0

Symptoms

One of site applications, deployed in customer's webspace does not work. This application utilizes Perl as main scripting language. The following error could be seen in webspace error_log:

Premature end of script headers: script.pl

Suexec logs show the following set of errors:

error: directory is writable by others: (/usr/local/pem/vhosts/.../webspace/siteapps/.../cgi-bin)
error: file is writable by others: (/usr/local/pem/vhosts/.../webspace/siteapps/.../cgi-bin/script.pl)

Cause

Incorrect permissions on deployed site applications. They were set by customer or by incorrectly packaged application.

Resolution

Suexec is responsible for running Perl and Python scripts on Legacy Linux Shared Hosting. Therefore, at first, check location of Suexec logs via the following command:

# suexec -V
 -D AP_DOC_ROOT="/var/www" 
 -D AP_HTTPD_USER="apache"
 -D AP_LOG_EXEC="/var/log/httpd/suexec.log"
...

Suexec logs usually show exact cause of the issue. In this case - incorrect permissions were set on siteapp files and directories. As per OA requirements, permissions 755 should be set on all CGI files inside the webspace. If write permissions are granted to group or others, suexec will not execute the script.

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 956c448bddc7e1f3585373687602379f 6f1456866eed87488c0f02b298a741c0

Email subscription for changes to this article
Save as PDF