• I am trying to create a local server to run wordpress and create a website.

    I manually installed apache 2.4.46 and php 7.4.9 and mysql 8.0.23.

    When installing wordpress the message appears that there is a critical error on the website, after informing the database.

    In the error file in the apache24 / logs folder this error message always appears

    PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect () in C: \\ Apache24 \\ htdocs \\ Sigma \\ blog \\ wp-includes \\ wp-db.php: 1688 \ nStack trace: \ n # 0 C: \\ Apache24 \\ htdocs \\ Sigma \\ blog \\ wp-admin \\ setup-config.php (310): wpdb-> db_connect () \ n # 1 {main} \ n thrown in C: \\ Apache24 \\ htdocs \\ Sigma \\ blog \\ wp-includes \\ wp-db.php on line 1688, referer: http: //localhost/sigma/blog/wp-admin/setup-config.php? step = 1

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You need to install the PHP MySQL extension. This would depend on what you’re using for localhost hosting.

    Dion

    (@diondesigns)

    (The following applies to Windows builds of Apache/PHP. The mysqlnd extension is built into the PHP core on Windows builds.)

    Make sure you have the following line in your php.ini file:

    extension=php_mysqli.dll

    If the line exists but has a semicolon as the first character, remove the semicolon and save the file.

    If you changed the php.ini file, you’ll need to restart Apache. Assuming what you said is correct and you installed Apache/PHP manually, you can use the Windows Service Manager to manually stop and then start Apache, or you can issue the following two commands from the command prompt:

    sc stop Apache
    sc start Apache

    You should wait about 10 seconds before issuing the second command to allow Windows to complete the stop process. After issuing the first command, you can issue sc query Apache commands to verify Apache has been stopped.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Critical Error’ is closed to new replies.