Support » Installing WordPress » wp-admin/install.php error

  • When I am trying to install WP, I get the error:

    Fatal error: Call to undefined function preg_match() in /usr/local/www/colecreek/wp-settings.php on line 64

    So, line 64 has to do with iis. I am running apache on freebsd, so I made a backup of wp-settings and then removed the iis junk.

    New error now:

    Fatal error: Call to undefined function preg_replace() in /usr/local/www/colecreek/wp-includes/wp-db.php on line 1129

    so I look at line 1129 of that file and it says:

    return preg_replace(‘/[^0-9.].*/’ ”, mysql_get_server_info( $this->dbh ));

    so, it looks to me like something to do with mysql… Can anyone shed some light here?


Viewing 6 replies - 1 through 6 (of 6 total)
  • esmi


    Forum Moderator

    What version of PHP are you using? preg_match and preg_replace are standard PHP functions.

    Got past that error. Now the problem is:

    Error establishing a database connection
    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.

    •Are you sure you have the correct username and password?
    •Are you sure that you have typed the correct hostname?
    •Are you sure that the database server is running?
    If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

    I have verified username, hostname and password. Making some progress here… PHP is 5.2.11 and I have a test.php that is working.




    Forum Moderator

    I’d suggest that you undo any changes you made to wp-settings.php

    I just removed the wp-config.php and it gets me to the gui for setting up the file. That part is good, but still refuses to connect to the DB. I can from CLI on the box connect to the DB all day using the credentials I supply for the wp-config… As far as the wp-settings.php I put back the original and it goes back to the line 64 error of iis.. I am fine with the “fixed” wp-settings.php and think we will have her licked once I figure out the db connection problem…


    so it doesn’t create the wp-config.php file when I try to use the GUI. Also, I put the wp-config.php back in and we are back to the line 1129 error… hmm….

    maybe I’ll just blow this box out and start from scratch…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘wp-admin/install.php error’ is closed to new replies.