WordPress.org

Ready to get started?Download WordPress

Forums

Database Port (2 posts)

  1. wherati
    Member
    Posted 1 year ago #

    Hi,
    I am using a Mac and had an existing installation of WP using MySQL for database. I backed up my database to a .sql file and installed MAMP, which overwrote a lot of settings on MySQL. I am able to recreate the database by importing the .sql file, and still have my WordPress installation, but when I try to log in, I get referred to an installation page which gives me an error. Again, I have my database and I have all my original blog files but my MySQL and Apache (root directory) have changed and I can no longer access my blog. (I am aware of the string serialization problem and have used the searchreplacedb2.php to modify the paths to my new Apache root directory, to no avail.)
    Thanks a lot!
    wherati

  2. David Choi
    Member
    Posted 1 year ago #

    If your root directory changed, then you also have to edit Apache's ini file to change the Document Root.

    Here is an example copied from http://line-in.co.uk/virtual-hosts-mamp-osx/

    <VirtualHost *:80>
        DocumentRoot "/Path/To/New/Document/Root"
        ServerName line-in.co.uk
        <Directory "/Path/To/New/Document/Root">
            Options All
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
    </VirtualHost>

Topic Closed

This topic has been closed to new replies.

About this Topic