Jump to content

Recommended Posts

I'm trying to install PHP 5.2.5 on my computer running XP.

I already have PWS setup.

I've downloaded the latest PHP binaries (including the PECL binaries) from php.net and went through the manual installation.

I think I have everything setup but I'm obviously missing something.

Whenever I modify php.ini and restart IIS the changes don't appear to take effect.

Do I need to do something other than restart IIS for my changes to PHP.ini to be picked up?

 

I have a php file name test.php that contains the following:

<?php

  // testing sessions

  // check to see if files are being created

  // in the session.save_path folder

  session_start();

?>

<html>

  <head>

    <title>PHP Test</title>

  </head>

  <body>

    <p>

      The browser you're using is

      <?php echo $_SERVER['HTTP_USER_AGENT']; ?>

    </p>

    <p>

      <!-- test the browscap setup -->

      Your browser's capabilities are: <br/>

      <pre>

        <?php print_r(get_browser(null, true)); ?>

      </pre>

    </p>

    <?php phpinfo(); ?>

  </body>

</html>

 

When i run //localhost/test.php

I get a text file stating the following:

 

<p>This PHP CGI binary was compiled with force-cgi-redirect enabled.  This

means that a page will only be served up if the REDIRECT_STATUS CGI variable is

set, e.g. via an Apache Action directive.</p>

<p>For more information as to <i>why</i> this behaviour exists, see the <a href="http://php.net/security.cgi-bin">manual page for CGI security</a>.</p>

<p>For more information about changing this behaviour or re-enabling this webserver,

consult the installation file that came with this distribution, or visit

<a href="http://php.net/install.windows">the manual page</a>.</p>

 

I'm not sure what I need to do. I have cgi.force_redirect=0 in the ini file, but like I said it appears not to recoginzed.

 

Any help would be appreciated.

 

Link to comment
https://forums.phpfreaks.com/topic/84562-solved-another-pws-install-question/
Share on other sites

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.