Hello, and Happy New Year.Setting up another development machine, got everything working.Installed IIS service with FastCGI
Install PHP 7.3 and set the path in the Environment VariablesEnabled all the extensions needed in Internet Information Services ManagerEnabled PHP Extensions
ext-intl.dll
php_odbc.dll
php_fileinfo.dll
php_sqlsrv_73_nts_x86.dllI get this error and when I delete the “web.config” I get a white blank webpage. I turned on Debug but the page won’t show any errors.HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information:
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x8007000d
Config Error
Config File \?\C:\inetpub\wwwroot\testproject\web.config
Requested URL http://localhost:80/testproject/
Physical Path C:\inetpub\wwwroot\testproject
Logon Method Not yet determined
Logon User Not yet determined
Config Source:-1:
0:
More Information:
This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.View more information »
Just experimenting, documentation said it would pickup the web config higher up stream.Well I did a complete re install and installed and configured everthing like my workng PHPMaker machine.
Php 7.4I installed Node.js and npm by hand and checked version
node -v v16.13.1
npm 8.1.2php_sqlsrv_74_nts_x64.dll (Non thread safe version)I tried installing everthing with the Web Platform in Internet Information Services (IIS) Manager but all the installations kept failing so I installed everything by hand.I still get a blank white page with HTTP 500 error code on it.It’s a Windows 11 machine, I tries disabling UAC for the time being.Php info reports everything working good all extesions install properly.Looking forward to getting back to work with Phpmaker 2022 when this gets sorted out.
FYI PHPMaker 2021 works perfectly on the new machine but PHPMaker 2022 has problems and creates a blank webpage in the browser. The same site I’m able to generate in PHPMaker 2021 does not work in PHPMaker 2022 even though I set in up exactly the same in both versions. PHPMaker 2021 is able to make websites on the same computer using Mysql or MSSQL databases using either the mysqli or pdo drivers.I’m running PHP 7.4 x32There is a problem with the re write rules, if the PHPMaker 2021 app is freshly generated into the wwwroot folder then it will run. If I go to the IIS Manager and look in the Rewrite rules there is two entries on for “api” and one for “slim” as long as these are there the website will run. Now on the other hand if I make a subdirectory ex: “sakila” the PHPMaker generated script will not run until I delete the two URL Rewrite rules “api” and “slim”, the site in the root directory will not run after doing this, only the site in the subdirectory "sakila"I still trying to figure this out, and don’t know alot about this subject. Thanks for any help.
documentation said it would pickup the web config higher up stream.
True, but the web.config at higher level may not have the required URL rewriting rules, see URL Rewrite → Internet Information Services (IIS). Do not delete the web.config.If you install PHP for IIS by hand, you need to check:
If you use SQL Server driver, make sure you have installed the required components for SQL Server, see system requirements.
Make sure your php.ini is set up correctly, see Composer. You may open a command prompt at your PHP directory, and test it by php -v (check version) or php -i (check info), do not ignore any error messages.
I either I get a 500 error or just a blank white page.
I see that there is a rewrite section in the Tools > Advanced Settings that let’s you set a path. If the app is in a sub directory on the server ex: “phpmakertwentytwenttwo” would the path be “phpmakertwentytwenttwo/” or “wwwroot/phpmakertwentytwenttwo”? It seems to me that if the app is in a sub directory the rewrite rules that PHPMaker makes is trying to access the root of the directory ex: “wwwroot” and not stay in it’s own directory “wwwroot/phpmakertwentytwenttwo”. In the root directory there is no api to access there because it does not exsist.I was able to solve the URL Rewrite problem by installing the “rewrite_amd64_en-US.msi” instead of letting the “urlrewrite2.exe” handle the installing of the .msi package. I’m running PHP v7.4 this is what got PHPMaker 2021 working again. Every website I generated with PHPMaker2021 would run and then URL rewrite whould add rules for the first run and then cause all the other websites in the other sub directories and even the root directory not to run.Very appreciative of your help, thank you.Here’s my php.ini for reference; List of headers files to preload, wildcard patterns allowed.
;ffi.preload=
[PHP_CURL]
extension=php_curl.dll
[PHP_GD2]
extension=php_gd2.dll
[PHP_GETTEXT]
extension=php_gettext.dll
[PHP_MYSQLI]
extension=php_mysqli.dll
[PHP_MBSTRING]
extension=php_mbstring.dll
[PHP_OPENSSL]
extension=php_openssl.dll
[PHP_SOAP]
extension=php_soap.dll
[PHP_XMLRPC]
extension=php_xmlrpc.dll
[PHP_BZ2]
extension=php_bz2.dll
[PHP_EXIF]
extension=php_exif.dll
[PHP_FILEINFO]
extension=php_fileinfo.dll
[PHP_IMAP]
extension=php_imap.dll
[PHP_ODBC]
extension=php_odbc.dll
[PHP_OCI8_12C]
extension=php_oci8_12c.dll
[PHP_PDO_MYSQL]
extension=php_pdo_mysql.dll
[PHP_PDO_SQLITE]
extension=php_pdo_sqlite.dll
[PHP_TIDY]
extension=php_tidy.dll
[PHP_XSL]
extension=php_xsl.dll
[PHP_SQLSRV_74_NTS_X64]
extension=php_sqlsrv_74_nts_x64.dll
You may open a command prompt at your PHP directory, and test it by php -v (check version) or php -i (check info), do not ignore any error messages.
You may also configure your php.ini to log errors and then check the PHP error log after running your site, see error_log and log_errors.Regarding the sub-directory issue, be reminded that you need the web.config to make the URL rewrite works for the directory, do not remove it.
Thank you for all your help
Checked out the errors log
C:\Windows\Temp\php-7.4.27_errors.logFound this error[02-Jan-2022 18:26:28 America/Los_Angeles] PHP Fatal error: Uncaught Error: Interface ‘Psr\Http\Message\RequestFactoryInterface’ not found in C:\inetpub\wwwroot\sakila\vendor\nyholm\psr7\src\Factory\Psr17Factory.php:16
Stack trace: #0 C:\inetpub\wwwroot\sakila\vendor\composer\ClassLoader.php(571): include() #1 C:\inetpub\wwwroot\sakila\vendor\composer\ClassLoader.php(428): Composer\Autoload\includeFile() #2 [internal function]: Composer\Autoload\ClassLoader->loadClass() #3 [internal function]: spl_autoload_call() #4 C:\inetpub\wwwroot\sakila\vendor\slim\slim\Slim\Factory\Psr17\Psr17Factory.php(85): class_exists() #5 C:\inetpub\wwwroot\sakila\vendor\slim\slim\Slim\Factory\AppFactory.php(155): Slim\Factory\Psr17\Psr17Factory::isResponseFactoryAvailable() #6 C:\inetpub\wwwroot\sakila\vendor\slim\slim\Slim\Factory\AppFactory.php(93): Slim\Factory\AppFactory::determineResponseFactory() #7 C:\inetpub\wwwroot\sakila\index.php(68): Slim\Factory\AppFactory::create() #8 {main}
thrown in C:\inetpub\wwwroot\sakila\vendor\nyholm\psr7\src\Factory\Psr17Factory.php on line 16
[02-Jan-2022 18:28:56 America/Los_Angeles] PHP Fatal error: Uncaught Error: Interface ‘Psr\Http\Message\RequestFactoryInterface’ not found in C:\inetpub\wwwroot\sakila\vendor\nyholm\psr7\src\Factory\Psr17Factory.php:16Did a Google search for:
Psr\Http\Message\RequestFactoryInterface’ not found in C:\inetpub\wwwroot\Found someone else had this problem, which I also had in version 2021 DUH! I fixed this before (Hits head against wall)https://discourse.hkvstore.com/t/interface-psr-http-message-requestfactoryinterface-not-found/3419/1 Composer Version 2.1.10 Works with PHPMaker 2022 (P.S. I kept going down in the versions until I got one that worked) https://getcomposer.org/download/Deleted generated project on the server and Re Generated a fresh project folder
Went to the browser and praise the Lord it works.It was composer causing the white blank page problem.Now I’m off the buy the upgrade to PHPMaker 2022 and get back to work!Thank you guys for helping me out and your patience, hope this post helps people in the future like me.God Bless