AddHandler php-fastcgi .php AddType application/x-httpd-php .php DirectoryIndex index.php index.html Action php-fastcgi /cgi-bin/fastcgi-php-wrapper # below SetHandler is not needed but nice for shebanged .sh or .pl scripts SetHandler cgi-script Options +FollowSymLinks +ExecCGI # # # with this i enable php via fastcgi server wide, might want to narrow it down to specific vhosts # # SetHandler is am override, redundant here since AddHandler already registered .php extension # SetHandler php-fastcgi # # below probably redundant since it looks like only the wrapper needs this bit ON # Options +ExecCGI # # almost worked, blew up on: # # mod_fastcgi: error reading data from FastCGI server # [Sun Nov 30 01:00:59.663064 2014] [core:error] [pid 11886] [client ::1:46027] End of script output before headers: php-fastcgi-wrapper # # what a fucking joke