• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • 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.

Trying to run cgi-irc - 500 Server error

M

mandrich

Guest
Hello,

I'm migrating over from a Plesk 5.5 installation to Plesk 7.5 Reloaded. I need to run cgi-irc because I have clients who can only connect to irc via port 80 through a browser. Everything appears to be working correctly for cgi scripts, but irc.cgi returns a 500 error and the logs show a "premature end of script headers" in the logs. This is the exact script that I am able to run on the Plesk 5.5 box I have, leading me to believe it's an environment issue.. Here are the details:

Level.domain.com is a sub-domain of domain.com. CGI support is turned on for the child domain, but not the parent. The files have been copied into the cgi-bin of the subdomain. The permissions are as follows -

drwxr-xr-x 2 ftpltm psacln 4096 Jan 29 11:57 .
drwxr-xr-x 5 root root 4096 Jan 29 10:56 ..
-rwxr-xr-x 1 ftpltm psacln 2376 Jan 29 11:23 client-perl.cgi
-rwxr-xr-x 1 ftpltm psacln 6727 Jan 29 11:23 irc.cgi
-rwxr-xr-x 1 ftpltm psacln 36485 Jan 29 11:23 nph-irc.cgi
-rwxr-xr-x 1 ftpltm psacln 88 Jan 29 11:57 test.cgi

I wrote a basic "Hello World" test script (test.cgi) that works fine and tells me that cgi is functional. The irc.cgi script I'm trying to run has #! /usr/bin/perl -w as the path. Permissions look correct. Same configration I ran on the previous server. Any guidance is appreciated.
 
Found the issue. Incorrect permissions on my config file. A chmod 644 fixed everything. :eek:
 
Back
Top