Support » Localhost Installs » Duplicated WordPress File On Mamp

  • bestcaptain123

    (@bestcaptain123)


    PIC#1

    PIC#2
    PIC#3
    PIC#4
    Pic #5

    Explaining how I got this errors and problems:

    So I was trying to make an extra website on here and got myself into many errors when I duplicated the WordPress file on ht docs.And then when I tried using Mamp I couldn’t use it.I tried all day yesterday to fix the problems.Not sure if its a big problem but I switch the original files and used the WordPress copy now as I was messing with the “Original WordPress file”.While using the original file after I messed around with them I got to the last “Pic #5” and my “website” look all scrambled and weird.As you can the login looks very different.So currently I’m using the current “WordPress copy file” and Im in error “Pic #1”.But if I change the port number to 8887 instead I get the Error “Pic #2”.Add on:How I got to step 4 was change the description on .htaccess in WordPress.

    So if anybody can help me I would truly be grateful.Because I have spent all day yesterday and hours trying to fix the problem.Im thinking about just get new WordPress.org account and reinstall everything.

    Thank you very much for your assistance.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Little Package

    (@littlepackage)

    To start, you need to run different ports for Apache and NGINX. Change NGINX to anything else (like 4657 or 65531) and start with Apache (8888). Save and then restart your MAMP servers. To see your site, it’d be at http://localhost:8888/

    Thread Starter bestcaptain123

    (@bestcaptain123)

    Hello thank you for your response and I very much appreciate it.This seem to fix the problem with the but when I arrive to website “http://localhost:8888/” it give me Error “

    Not Found

    The requested URL was not found on this server.”.

    Does anybody know anybody I can potentially pay to fix this its their a big support system for fixing problems like this ?thank you very much.

    Little Package

    (@littlepackage)

    In your MAMP “General” tab under the “Hosts” settings tab, what is your “Document Root” set to… and more importantly, is that where your WordPress installation is? WordPress (e.g. wp-admin, wp-content, wp-includes, wp-config.php etc.) should be in that folder listed in the MAMP document root settings.

    Thread Starter bestcaptain123

    (@bestcaptain123)

    If you see “pic#4” you can see that the document root is selected to a WordPress duplicate file I called “WordPress copy”.So the problem came when I duplicated the WordPress file in htdocs and then when I tried to run it again it would not work for the original WordPress website or WordPress copy.I didn’t think that making a duplicate file of the “original WordPress file” would make any difference.But after just duplicating the file I could’t do anything as I started to encounter Errors.My document root is set to “pic#4”?My “WordPress (e.g. wp-admin, wp-content, wp-includes, wp-config.php etc. is in the “Mamp>htdocs>wordpresscopy”.

    I’m not sure how Mamp works but would the server or something change just by making a copy duplicate “WordPress installation file ” ?The question is what changed after making a small little copy?

    Little Package

    (@littlepackage)

    Which database is each installation running, and can you confirm, with a screenshot, what the contents of “/wordpress copy” looks like please.

    if you didn’t reset the the wp-config of the “/wordpress copy” MAMP before attempting setup it could just be looking for the wrong database.

    One installation (your online version) will be looking for a live database online, and your MAMP installation will run its own database inside MAMP.

    Thread Starter bestcaptain123

    (@bestcaptain123)

    I’m a complete beginner when it come to these files and database knowledge.

    Can you refer me of what you mean by “Which database is each installation running”?

    [I don’t know how to reset?Can you explain the process? “if you didn’t reset the the wp-config “]

    I’m really sorry as I’m a beginner when it comes to the files inside Mamp and WordPress files unless it the website version.As I never had to deal with problems before.

    I very much appreciate your help.

    Little Package

    (@littlepackage)

    Open the file wp-config.php in your MAMP installation and make sure it doesn’t have the same content as the wp-config.php file in your live/online WP installation. It should be the original/un-edited WP file, and if it isn’t that’s what I meant by refresh. Restore it to its original state, as you would have downloaded from wordpress.org/download. If this doesn’t make much sense, yeah, I might recommend hiring someone if you really want this to work, because being able to work with files and directories is pretty basic, while MAMP can be complex.

    Thread Starter bestcaptain123

    (@bestcaptain123)

    Thank you very much and appreciate your help.I seemed to have fix the problem some how.

    Last question,I currently only run 1 website and wanted to know if I can run more then 1 website on Mamp.Can I have 2 websites on the same Mamp server?How is it done ?I didn’t find too much information on it.I probably won’t do anything because this how I encounter my errors in the first place and was a headache.

    I fixed it not sure which it was but finally.

    Solution:

    1. https://wordpress.org/documentation/article/htaccess/

    Changed the htaccess file on WordPress to “Multisite WordPress 3.5 and up

    2.I was running Mamp with a different port numbers which allowed me to run mamp at first and when Mamp was running I pressed the default port button in the middle of the running Mamp.I guess it might only run with my original port numbers for a reason.

    Based on your description, it sounds like you were trying to create an additional website using WordPress, and you encountered several errors while duplicating the WordPress file on your local server. You then tried to use Mamp to resolve the issues, but were unsuccessful.

    It seems that you made changes to the original WordPress files and ended up with a scrambled website display as shown in “Pic #5.” You then switched to using the WordPress copy file, which resulted in error “Pic #1.” However, when you tried changing the port number to 8887, you encountered error “Pic #2.”

    You mentioned that you made changes to the .htaccess file in WordPress to reach step 4. It is possible that the changes you made to this file caused some of the errors you encountered.

    If you are still experiencing issues with your website, you may want to consider creating a new WordPress account and starting over. However, before doing so, you should ensure that you have backed up any important files and data related to your website.

    Alternatively, you can try troubleshooting the errors you are encountering by seeking help from WordPress support forums or reaching out to a professional developer for assistance. They may be able to help you identify the root cause of the errors and provide a solution to fix them.

    Thread Starter bestcaptain123

    (@bestcaptain123)

    PIC#2

    I keep encountering this error.I’m able to log into my page but when I press certain thing I encounter the error.My website looks normal and other things.I disabled plugins and themes.Not sure what it is.But I think best bet would be to reset everything.I didn’t have to much work on my website so I don’t mind.But would have to really liked to fix the issue incase this ever happens in the future.I can see my site health but when trying to press save on permalink and do other things I encounter the Internal error.If anybody has thoughts or advice that would be great?

    Do I delete only wordpress file ?Or do I need to delete wordpress and Mamp together.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Duplicated WordPress File On Mamp’ is closed to new replies.