{"id":15450724,"date":"2022-03-11T18:16:38","date_gmt":"2022-03-11T18:16:38","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/error-installing-wordpress-9\/"},"modified":"2022-03-11T18:16:38","modified_gmt":"2022-03-11T18:16:38","slug":"error-installing-wordpress-9","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/error-installing-wordpress-9\/","title":{"rendered":"Error installing WordPress"},"content":{"rendered":"<p>I am trying to install WordPress on localhost on Windows 10 for testing before upload it to my hosting service.  I first tried to use XAMPP to install everything, but had to remove it.  Then, I installed Apache 2.4, MySQL 8, and PHP 7.4 individually.<\/p>\n<p>When I tried to run install.php I get the following message:<br \/>\n&#8220;There has been a critical error on this website.&#8221;<\/p>\n<p>After investigation, it seems like wp-db.php is using mysql_connect() instead of the newer mysqli extensions.<\/p>\n<p>Apache indicates that the proper modules are installed, including php7_module.<\/p>\n<p>Here&#8217;s where the install.php seems to bomb:<\/p>\n<pre><code>Stack trace:\n#0 C:\\Apache24\\htdocs\\wptest\\wp-includes\\wp-db.php(724): wpdb-&gt;db_connect()\n#1 C:\\Apache24\\htdocs\\wptest\\wp-includes\\load.php(561): wpdb-&gt;__construct(&#039;deleted&#039;, &#039;deleted&#039;, &#039;wptest&#039;, &#039;localhost&#039;)\n#2 C:\\Apache24\\htdocs\\wptest\\wp-settings.php(124): require_wp_db()\n#3 C:\\Apache24\\htdocs\\wptest\\wp-config.php(101): require_once(&#039;C:\\\\Apache24\\\\htd...&#039;)\n#4 C:\\Apache24\\htdocs\\wptest\\wp-load.php(50): require_once(&#039;C:\\\\Apache24\\\\htd...&#039;)\n#5 C:\\Apache24\\htdocs\\wptest\\wp-admin\\install.php(36): require_once(&#039;C:\\\\Apache24\\\\htd...&#039;)\n#6 {main}\n  thrown in C:\\Apache24\\htdocs\\wptest\\wp-includes\\wp-db.php on line 1785<\/code><\/pre>\n<p>\/\/\/<\/p>\n<p>I have installed WordPress 5.9, which should have the proper extensions, or so I believe.  Regardless, it seems like my installation wants to use mysql_connect() instead of mysqli .<\/p>\n<p>Anyway, I am totally new to WordPress, and so it could be something quite simple.  But regardless, I am stumped.<\/p>\n<p>Any help would be appreciated.<\/p>\n<p>Bob Frankenhoff<\/p>\n","protected":false},"template":"","class_list":["post-15450724","topic","type-topic","status-publish","hentry","topic-tag-install-php","topic-tag-php74"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15450724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15450724\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15450724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}