• Resolved virtualbartek

    (@virtualbartek)


    Hi,

    Here’s are my two problems, likely both related to the database.

    1. I’m trying to get my site back up and running properly on my MAMP install after a hard drive crash. I have a backup of my Document root, but not a proper export of the database. The site loads but clearly not using the same database. Is there a way to get back up and running? Otherwise I’ve essentially lost my entire site and a month’s work.

    Interestingly, the site loaded up under localhost without requiring a new install or database creation. PhpMyAdmin shows the correct database name with the correct table prefixes which I had customized. Wp-config.php shows all the same information. How is it that the site doesn’t seem to be using the correct database? That is an assumption based on the fact that most, but not all, of my pages are missing, plugins are deactivated and not all of them are there, and most of, but not all of, my front page design is gone that I created using the Divi theme. I am using a backup I made yesterday before formatting my drive (yes, I’m an idiot for not backing up the database itself as an export).

    2. I was running MAMP PRO and had set up a host named globalmindenglish.local. Even when I typed //localhost, it would redirect me to globalmindenglish.local. I can’t get this to work anymore, meaning, the host doesn’t work as I end up with a google search results page. Frankly, I can’t remember if I had to edit any files to get it to work the first time. Sorry, I’m pretty green here but trying my best.

    I did try to follow some steps from joostrap.com as follow:

    “MAMP Pro vhosts Setup
    [If you want] to give yourself a nice URL to connect to your local site in your browser, so do the following:

    a) Edit the following httpd.conf file to allow the virtual hosts file to be used by MAMP:
    
    Macintosh HD ? Applications ? MAMP ? conf ? apache ? httpd.conf
    
    Around line 570, uncomment the following line:
    
    # Virtual hosts
    #Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
    
    To:
    
    # Virtual hosts
    Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
    
    b) Add a new virtual host in the httpd-vhosts.conf file:
    
    Macintosh HD ? Applications ? MAMP ? conf ? apache ? extra ? httpd-vhosts.conf
    
    Add the following:
    
    NameVirtualHost *:80
    
    <VirtualHost *:80>
       DocumentRoot "/Applications/MAMP/htdocs/your-site-name"
       ServerName local.your-site-name.dev
    </VirtualHost>
    
    c) Your Mac’s hosts file


    I’m not sure what I should do with step c) and I’m not clear what your-site-name should be within the htdocs folder as mentioned about…..so I haven’t been able to get that to work so I’ve removed the code for now.

    Clearly getting my site back up with or without a virtualhost is priority.

    Thanks to anyone with some advice.

    Happy bites,
    VB

Viewing 1 replies (of 1 total)
  • Thread Starter virtualbartek

    (@virtualbartek)

    I’ve going to mark this as resolved since I can’t delete it….I deleted and reinstalled MAMP and for whatever reason, I can’t even connect to the database I had before. I’ll post a new topic then.

Viewing 1 replies (of 1 total)
  • The topic ‘Recover MAMP hosted WP after HD crash’ is closed to new replies.