php-cgi errors on new server install..

Hi,

I have just setup a new server using the script install… I have setup a test site with a php script that simply runs phpinfo…

I am getting the text in the attached log file showing in the error log…

Any idea whats causing this?

Hrm, well, that’s odd… I’ve seen that error before, but only when an app incorrectly builds it’s links to call /cgi-bin/php5.cgi directly.

What URL are you using to access your test script – just something like http://domain.tld/test.php?

-Eric

Yes… I just created a index.php file to call phpinfo…

Its a fresh install on Ubuntu 10.04 running php-cgi…

Oddly, another fellow mentioned something about that happening too:

https://www.virtualmin.com/node/19645

I unfortunately don’t know how to reproduce that, but I have a few questions that would hopefully help us figure out what’s going on:

  • Which Ubuntu version are you using?

  • How did you install Ubuntu (ie, did you do it yourself after downloading the ISO image)?

  • What is the output of this command:

dpkg -l ‘php

I am running Ubuntu 10.04 on a Linode VPS…

Did their basic deployment and then ran the Virtualmin install script… I have disabled mod_php because I want scripts to run as the server owners…

Output from command is…

root@server2:~# dpkg -l ‘php
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
++±=========================================================
un libapache2-mod-php4 (no description available)
ii libapache2-mod-php5 5.3.2-1ubuntu4.9 server-side, HTML-embedded scripting language (Apache 2 module)
un libapache2-mod-php5filter (no description available)
ii php-pear 5.3.2-1ubuntu4.9 PEAR - PHP Extension and Application Repository
un php-xml-util (no description available)
un php4-pear (no description available)
ii php5 5.3.2-1ubuntu4.9 server-side, HTML-embedded scripting language (metapackage)
ii php5-cgi 5.3.2-1ubuntu4.9 server-side, HTML-embedded scripting language (CGI binary)
ii php5-cli 5.3.2-1ubuntu4.9 command-line interpreter for the php5 scripting language
ii php5-common 5.3.2-1ubuntu4.9 Common files for packages built from the php5 source
un php5-dev (no description available)
un php5-json (no description available)
un php5-mhash (no description available)
un php5-suhosin (no description available)
un phpapi-20090626+lfs (no description available)