Search Engine: Elastic

Article ID: 2320, created on Oct 29, 2007, last review on Apr 18, 2012

  • Applies to:
  • Pro Control Panel Linux


View Knowledge
Knowledge ID 1051
Product : WEBppliance for Linux
Version : 3.5.20
Topic : FAQ

Custom compiled PHP causes apache errors in some cases

Custom compiled PHP causes apache errors in some cases



Custom compilation of PHP to enable additional features may cause apache errors.  In some cases you may see apache 500 error.  Apache logs may show  "Premature end of header...".

This can indicate that the custom compiled PHP is not compiled in CGI mode.  To check this run the following command:

php -v

This should print something similar to:

PHP 4.3.3 (cgi) (built: Sep 1 2003 04:45:21)

If the output shows (cli), then you need to recompile so that the php binary is running in cgi mode.  Please refer to PHP documentation on how to recompile in cgi mode.

Related Links

Configuration Options


Related Knowledge

Related Links
Last ModifiedUsageSatisfiedLast Used
8/20/2004 12:45:50 PM75 10/11/2007 5:58:40 AM

4cc899da08664637a8bc437308d3ddd7 3ccb419cf98083f3bb45808fba8dbc7c 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF