Jump to content

Recommended Posts

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

 

 

Link to comment
https://forums.phpfreaks.com/topic/174629-critical-cgi-failure-running-php-5/
Share on other sites

  • 4 weeks later...

You need to get a php configuration output script and put it in the root of your server and call it.

 

This is al that is in the script:

 

<? phpinfo(); ?>

 

 

These other variables below can contain things required for modifying scripts for platform or are an alternative though deprecated.

 

$HTTP_POST_VARS

$_POST

 

$HTTP_GET_VARS

$_GET

 

$_SERVER

 

$_HTTP_SERVER_VARS

 

 

$HTTP_ENV_VARS

$_ENV

 

$GLOBALS

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.