Simple Machines Community Forum

SMF Support => Server Performance and Configuration => Topic started by: AlanDewey on April 14, 2019, 10:09:29 AM

Title: Windows Server update broke the forum
Post by: AlanDewey on April 14, 2019, 10:09:29 AM
oh.... windows.....   >:( >:( >:( >:(
2019-04 Cumulative Update for Windows Server 2016 for x64-based Systems (KB4493470) broke the forum.   

Release Date:
April 9, 2019

Version:
OS Build 14393.2906


Quote
Not found: '/index.php'
 

But it's there..... right where it always was.

Other websites asp.net and html running on the same server still work.

Bill Gates what did you do to my server?

I try running phpinfo.php and it says   Not found     >:(
Title: Re: Windows Server update broke the forum
Post by: vbgamer45 on April 14, 2019, 10:42:52 AM
Running IIS? What version of PHP?

Did you install PHP manually?
Title: Re: Windows Server update broke the forum
Post by: AlanDewey on April 14, 2019, 10:44:03 AM
PHP: 7.1.26
Server version: Microsoft-IIS/10.0      (microsoft server 2016)



As far as I can tell, the server has stopped running   php


Even within the c:\php directory, I can't get any thing to happen.

I am new to php, so don't know what to do next.
Title: Re: Windows Server update broke the forum
Post by: AlanDewey on April 14, 2019, 10:45:50 AM
here is something...

I type php /?  and get

Quote
PHP Warning:  PHP Startup: Unable to load dynamic library 'ext\php_mysql.dll' - The specified module could not be found.
 in Unknown on line 0
Could not open input file: /?
Title: Re: Windows Server update broke the forum
Post by: AlanDewey on April 14, 2019, 10:48:54 AM
just looked in   c:\php\ext  and I see that I do not have php_mysql.dll   

but I do have    php_mysqli.dll     in there.

So maybe windows update is not the problem and maybe it was something I did wrong that only showed up when I restarted the server?
Title: Re: Windows Server update broke the forum
Post by: vbgamer45 on April 14, 2019, 10:55:34 AM
Open up your php.ini and find the line php_mysql.dll and comment it out. That extension is no longer part of PHP 7.0
Title: Re: Windows Server update broke the forum
Post by: AlanDewey on April 14, 2019, 11:03:37 AM
we are getting there, thanks for the help....

I commented out

but now I get this, so I must have made another mistake.....   oh... and I can not find a backup of php.ini....  I feel so dumb...

PHP Parse error:  syntax error, unexpected 'and' (T_LOGICAL_AND), expecting end of file in C:\php\php.ini on line 183
Title: Re: Windows Server update broke the forum
Post by: vbgamer45 on April 14, 2019, 11:26:21 AM
Attach your php.ini

I would also check your event viewer after your php.ini is fixed.
Title: Re: Windows Server update broke the forum
Post by: AlanDewey on April 14, 2019, 11:29:55 AM
attached
Title: Re: Windows Server update broke the forum
Post by: vbgamer45 on April 14, 2019, 11:51:05 AM
Try
Title: Re: Windows Server update broke the forum
Post by: AlanDewey on April 14, 2019, 12:02:43 PM
 ;D :D :) ;)

Fixed !
[/color]

THANK YOU  VBgamer45  !


Just in case other people have read this far.....

Make backups, backups, more backups. 
I had been making changes to php.ini based on recommendations I found on the internet.  Well, I guess those recommendations were not dated, or I didn't notice.   But it wasn't Bill Gates fault this time.  It was me.  I did something I shouldn't have and it did not come to light until today when the server had to get restarted for the Windows Server updates.