Critical CGI failure running php 5

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Locked
rudibr78
Forum Newbie
Posts: 4
Joined: Thu Sep 17, 2009 1:07 pm

Critical CGI failure running php 5

Post by rudibr78 »

Hello to all

Ive ran into a big problem with a new hosting service that our company has been using.

Some of our clients have began using this host on our recommendation, and they have a Linux based plan. Their control panel gives them the option to use either php 4 or php 5.

Our system, wich is the system our clients use, requires php 5. But PHP 5 wont function properly on this new host. Form data does not go trough the server. $_POST, $_GET, ENV_VARS, and any other super global that should contain form data is always empty. php://input is empty too. So...no forms works at all.

I called support and they told me that "version 4 of PHP is ran under apache, while version 5 of PHP is run under CGI, we are aware of these problems with version 5 running under CGI and we have no idea how to fix it - thats why we tell our customers not to sign up a linux plan intending to use php 5".

I know any of you would think by now "just change host". But, as much as Id love too, Im unable to - strict orders from the boss.

I dont know the first thing about configuring PHP under CGI and how would it be possible to cause an error that makes parsing form data always null.

Id be EXTREMELY gratefull if anyone could help me out, or point me out to some resources that I might look into.

Thanks in advance, cheers
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Critical CGI failure running php 5

Post by John Cartwright »

Duplicate. Locked.
Locked