WordPress.org

Support

Support » Installation » Database Port

Database Port

  • 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

Viewing 1 replies (of 1 total)
  • 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>
Viewing 1 replies (of 1 total)
  • The topic ‘Database Port’ is closed to new replies.
Skip to toolbar