I'm running an older version of this module, but considering the issue, I don't believe a newer version would affect things.
I'm running a site on a VPS which by default runs php as an apache module, but in order to allow proper file permissions and access to php.ini we must run php as a cgi binary and use php-cgiwrap. When running as an apache module everything works fine.
We had to add the following to our otherwise default drupal .htaccess file.
Action application/x-pair-sphp5 /cgi-sys/php-cgiwrap/VPS_UserName/php5.cgi
AddType application/x-pair-sphp5 .php
On Solr search results pages we now get Internal Server Error 500.
Here's a snippet from the error log
malformed header from script. Bad header=Array: php-cgiwrap
I also tried editing php.ini and .htaccess with information the VPS provides on Using PHP - PHP File Access, but the result was the same. (commented out allow_url_fopen in php.ini and added php_flag allow_url_fopen on to .htaccess)
Any help would be greatly appreciated.
Comments
Comment #1
langworthy commentedI forgot to mention the VPS is running FreeBSD
Comment #2
langworthy commentedAs the VPS supplied php.ini was overriding the .htaccess file I commented out all the php specific .htaccess commands and now things seem to work.
Comment #3
robertdouglass commentedThanks for reporting back what you did to solve the problem.