Error installing WordPress
-
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.
When I tried to run install.php I get the following message:
“There has been a critical error on this website.”After investigation, it seems like wp-db.php is using mysql_connect() instead of the newer mysqli extensions.
Apache indicates that the proper modules are installed, including php7_module.
Here’s where the install.php seems to bomb:
Stack trace: #0 C:\Apache24\htdocs\wptest\wp-includes\wp-db.php(724): wpdb->db_connect() #1 C:\Apache24\htdocs\wptest\wp-includes\load.php(561): wpdb->__construct('deleted', 'deleted', 'wptest', 'localhost') #2 C:\Apache24\htdocs\wptest\wp-settings.php(124): require_wp_db() #3 C:\Apache24\htdocs\wptest\wp-config.php(101): require_once('C:\\Apache24\\htd...') #4 C:\Apache24\htdocs\wptest\wp-load.php(50): require_once('C:\\Apache24\\htd...') #5 C:\Apache24\htdocs\wptest\wp-admin\install.php(36): require_once('C:\\Apache24\\htd...') #6 {main} thrown in C:\Apache24\htdocs\wptest\wp-includes\wp-db.php on line 1785
///
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 .
Anyway, I am totally new to WordPress, and so it could be something quite simple. But regardless, I am stumped.
Any help would be appreciated.
Bob Frankenhoff
The page I need help with: [log in to see the link]
- The topic ‘Error installing WordPress’ is closed to new replies.