NetTalk Central

Author Topic: newer PHP?  (Read 1804 times)

Jane

  • Sr. Member
  • ****
  • Posts: 349
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
newer PHP?
« on: February 28, 2020, 02:11:13 PM »
So a guy is working on a PHP website and I was curious to see if I could host it on NT rather than on the IIS on our LAN that he's currently using.

The NT PHP example runs fine, but it's using php-cgi.exe version 5.2.9.9 from April, 2009.

I decided to play around and see whether I could use a later version of PHP. 

Blithely downloaded the 32-bit PGP version 7.4.3 and made a new PHP folder.  Copied the php.ini-production file to php.ini.

Trying to open the demo app's palette.php page, I got an error message that read in part: "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."

A bit of google wound up with my editing php.ini, uncommenting the cgi.force_redirect line, and editing it to be
cgi.force_redirect = 0

After which, with my limited testing so far everything seems to work fine.

I haven't tried scripts that connect to a database or anything fancy.  (I know nothing about PHP... just curious if I can serve what that guy is working on.)

Has anybody else run NT with a newer version of PHP?
If so, any advice or things I need to do other than that one INI edit?

Thanks for any insight.

Cheers,

Jane

« Last Edit: February 28, 2020, 02:14:45 PM by Jane »