Skip to content

Strict fcgi starter script permissions leads to a 500 server error on debian wheezy

short description

Due to the permissions of the fastcgi script directories you get a 500 server error when enabling fast-cgi on a server running debian wheezy after updating to the latest ISPConfig

correct behaviour

Sites should load with fast cgi enabled

environment

Server OS: Debian Server OS version: Wheezy ISPConfig version: 3.1.12

If it might be related to the problem

Server version: Apache/2.2.22 (Debian)
Server built:   May 30 2018 12:49:05
PHP 5.4.45-0+deb7u14 (cli) (built: May  9 2018 18:47:17) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
    with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans

proposed fix

The issue looks like it was introduced in this commit: a7c4cb62

After debugging the changes it looks like the directory permissions need to be 555 for fastcgi to work correctly in this setup

A quick patch that makes it function correctly on our server is attached.fcgi-scriptdir-permissions-fix.patch

Edited by Till Brehm