30-04-2021



The files for localhost are initially located in the “C: MAMP htdocs” folder. Press “Open” located to the right of the “Host Name” text box to open up the localhost in a web browser. If you are upgrading from MAMP Free, and you used several sub folders under “C: MAMP htdocs” to create several hosts, you then need to check the. MAMP (Mac, Apache, MySQL, PHP) is a free and premium local server environment that can be installed on the macOS and Windows operating systems. The free version of MAMP provides all the tools you will need to run WordPress on your PC for testing and development purposes. I had to sudo edit this file, add these values (I added them at the top), save and restart MAMP. 127.0.0.1 localhost::1 localhost Share. Improve this answer. Follow edited May 3 '19 at 19:34. 3,122 9 9 gold badges 27 27 silver badges 36 36 bronze badges. Answered May 3 '19 at 19:12.

I was able to do this course yesterday and set up mamp just fine but now I can't access this because I am getting a The localhost page isn’t working localhost is currently unable to handle this request HTTP error 500. How should I fix this?

Localhost mamp phpmyadmin

I fixed it. It was a syntax error in my functions file, thanks for the help!

SslLocalhost

Since 500 is a server error it looks like you haven't started the server. Setting up MAMP is one thing. Making sure the server is running is another. When you start MAMP it should start both the Apache web server and the MySQL database server, and you should see the red lights on the startup window turn to green for both servers.

The server is running, I added a test folder with an index.php file and that one works just fine. It's the wp site that I can't access anymore.

Can you include a copy of the url that is in your browser's address box?

What happens if you add a page to this url, e.g., http://localhost:8888/localwp.com/wp-login.php?

Still gives me the same error 'localhost page isn't working'

Open Finder. If you haven't changed the default folder for the web server go to Applications > MAMP > htdocs and look there to see what the folders and files are.

In order for a file to be served up by the web server it has to either be in or under htdocs or in the folder you indicated you wanted to use other than htdocs in MAMP's Preferences (on the page with the Web Server tab).

My folders are in the htdocs and the settings are set to htdocs as well. I think that was the default setup so I left it as is. I put my localwp.com folder in the htdocs folder.

I fixed it. It was a syntax error in my functions file, thanks for the help!

I'm having the same issue. Do you know how I can fix the syntax error please?

Ran Mamp in compatibility mode and that fixed the problem.

Sirin, that's good news that you've got it fixed!!

Localhost Mamp Not Working

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

So I installed MAMP 3.4. I did the TEST page in it works fine, however I can't see the testsites.com folder or the localwp.com folder. so the path is;

Sites > localwp.comSites > testsites.com > test (page)

If I change the root one step along the path I can see the flyers either in localwp.com or testsites.com

Is it because I need to create an Index Folder as such?

Hi Mark.

Well when installing MAMP you get a folder htdocs -> this is your root - index folder. Every folder you make in this folder you have to access it through http://localhost/foldername .

You need a index file in that folder so that your page is rendered (if no index file is present you'll get a list of items in that folder.

So to see your different pages you have to address them absolutely or you can create a index file with the links to your sufolders.

Localhost/mamp/ language=english

Another way is creating virtual hosts -> VirtualHosts Walkthrough

Hope this shines some light on the question at hand.

Happy Coding!!!

Thanks Nejc,I ended up working out that index file was not present. In fact there was no files in the htdocs folder. I created one and its working that way it should.I will definitely have look at the VirtualHosts Walkthrough as well.I am totally new to Wordpress as I am an owner rather than a developer, but I a excited to learn what it takes to become both.Thanks again for your support.BlessingsMark

Mamp Localhost Not Found

Welcome Mark.

That's why we are here - to help each other.

When you get the hang of MAMP and VirtualHosts ( next step, if you find the time for it ) and you're felling ready to take up a challenge then try to compile Apache,MySQL and PHP from sources.

It's quicker to go with MAMP but when compiling the MAMP stack on your own you get a deeper know-how on the matter and it could prove worthy someday :)

And this knowledge applies to other CMS and Front-End & Back-End Development. You don't have to know it 100% but a little will help you in the long run.

In the meantime : Happy Coding!

Localhost Mamp Htdocs

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.