Jump to content

[SOLVED] Another PWS install question


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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.