Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing current PHP without Web Platform Installer #510

Open
PHuhn opened this issue Jul 19, 2023 · 8 comments
Open

Installing current PHP without Web Platform Installer #510

PHuhn opened this issue Jul 19, 2023 · 8 comments

Comments

@PHuhn
Copy link

PHuhn commented Jul 19, 2023

Hey Patrick:

Web Platform Installer has not been updated since 2020, and the latest PHP seem to be 7.2. I'm trying to figure out how to install later versions of PHP. I'm currently getting the following message:

Your PHP installation appears to be missing the SQLSrv extension which is required by Project Nami.
I've copy the development INI file into PHP.INI. I've added the following:

extension=php_pdo_sqlsrv_74_nts_x64.dll
extension=php_pdo_sqlsrv_74_ts_x64.dll
extension=php_sqlsrv_74_nts_x64.dll
extension=php_sqlsrv_74_ts_x64.dll

I've added the above files to the EXT folder.

Any more suggestions?

@patrickebates
Copy link
Member

Here's the custom build we created for newer PHP on Azure Web Apps. Should be able to use it on local IIS by updating the path for the PHP handler. Might require some other paths in the INI be updated as well.
https://github.com/ProjectNami/php-azure-windows-web-app

@PHuhn
Copy link
Author

PHuhn commented Jul 19, 2023

Cool.
I changed the following:

error_log=C:\WINDOWS\temp\PHP_errors_81.log
extension_dir="C:\Program Files\PHP\V8.1\ext"

@PHuhn
Copy link
Author

PHuhn commented Jul 19, 2023

Oops, got the following err:

HTTP Error 500.21 - Internal Server Error
Handler "PHP_via_FastCGI_81" has a bad module "AnonymousAuthenticationModule" in its module list

@patrickebates
Copy link
Member

As I can't find that text in any of the files, I wonder if it was compiled with that dependency.

Do you have Anon enabled on the site? May even have to look at this for some tips to enable?
https://stackoverflow.com/questions/4762538/iis-express-windows-authentication/4813716#4813716

@PHuhn
Copy link
Author

PHuhn commented Jul 20, 2023

Hey Patrick:
I have Anonymous Authentication enabled for all of my local WordPress sites in IIS Manager.

@PHuhn
Copy link
Author

PHuhn commented Jul 22, 2023

Hey Patrick:
I got AnonymousAuthenticationModule because I screwed up the Handler Mapping.
Once corrected I'm getting the following:

PHP Deprecated:  version_compare(): Passing null to parameter #1 ($version1) of type string is deprecated in C:\inetpub\WP5_GC_2021_01\wp-includes\class-wpdb.php on line 4054
PHP Deprecated:  version_compare(): Passing null to parameter #1 ($version1) of type string is deprecated in C:\inetpub\WP5_GC_2021_01\wp-includes\class-wpdb.php on line 4058
PHP Deprecated:  version_compare(): Passing null to parameter #1 ($version1) of type string is deprecated in C:\inetpub\WP5_GC_2021_01\wp-includes\class-wpdb.php on line 4050

@patrickebates
Copy link
Member

patrickebates commented Jul 22, 2023

Looks like it's reporting a null for db_version?
This is an existing installation or is this happening during an install attempt?

@marypeng1020
Copy link

Add this script:
if ( $db_version != null) {
...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants