• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Premature end of script headers

RickD75

New Pleskian
Hi All,

We have migrated an old Plesk server (7.5) to Plesk 11. It seems everything worked out well, but we face one issue. Websites are not allowed to execute Perl script within the cgi-bin directory. Example: formmail.pl (chmod 755)

Error_log reports: Premature end of script headers. Anyone got an asnwer to this issue?

[Sun Feb 17 17:24:42 2013] [error] [client 192.168.1.220] failed to open log file /var/log/httpd/suexec_log
[Sun Feb 17 17:24:42 2013] [error] [client 192.168.1.220] fopen: Permission denied
[Sun Feb 17 17:24:42 2013] [error] [client 192.168.1.220] Premature end of script headers: formmail.pl

Thanks!
 
Check the ownership on the cgi-bin directory. It is likely to be wrong. This happened to me too after a migration.

Cross-check with a domain that you create on the new server from scratch for the right way for the owenership to be set. It is either domainuser.psacln or domainuser.psasrv. One of these gives you the error, the other is the right one. I'm afraid I don't remember exacly which one it is supposed to be :-(
 
Dear Faris,

I have created a new domain on the server, this is what I have found:

drwxr-x--- 3 user-new-domain psaserv 4096 Feb 18 21:12 cgi-bin
drwxr-x--- 2 user-mig-domain psaserv 4096 Feb 17 17:24 cgi-bin

So, user-mig-domain is the dir thats migrated from the old server. user-new-domain is the new created cg-bin dir. Can you see anything wrong with it?
 
Argh! Those look fine and match mine. I thought it would be a simple fix :-(

What about the permissions on the file itself? Try adjusting those?
 
The problem has been solved now, in my case it was caused by a missing Perl Package 'perl-CGI' that was not installed correct or not installed at all. An easy way to find out:

[root@machine cgi-bin]# perl formmail.pl

If you get an error, like 'Can't locate CGI.pm' it's most likely the Perl Package is missing.
 
Back
Top