Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

133
Visualizações
MAMP Installation HTML PHP

enter image description hereThis is my first post here and i'm looking for getting some help.

I have recently taken courses in HTML/CSS/JavaScript and I feel pretty comfortable in that. Now i'm getting into PHP, and noticed that i need a localhost. I downloaded MAMP, added my website files to the htdocs but I cannot find my index.html in the localhost.

This is what I put in the browser: localhost/htdocs/web-development/Portfolio/index.html

What i'm trying to do is to preview my website and try my registration form which is done with html/css/javascript and php/phpmyadmin.

Even though I can understand and code HTML/CSS/JavaScript and still fairly new to programming so let me know if I explained it a bit messy.

I'm using Atom for coding.

Lukas

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

The default configuration for MAMP uses ports 8888 and 8889, and 7888, you can see the default port in controle panel under ports

http://localhost:{port number}/{project folder}/index.html -> ( if write php file this could be index.php)

htdocs represents web root that you no need to use in url

about 4 years ago · Juan Pablo Isaza Relatório

0

Based on your image, your index.html file is in your forms folder, so you have two options:

  1. Move your index.html into your portfolio file and have the server automatically serve it when the address localhost/htdocs/web-development/Portfolio is requested.

  2. Change your URL route to localhost/htdocs/web-development/iPortfolio/forms/index.html

The first would be more in keeping with standards - the server will search for an index.html/php file in the route of a website, which is why people generally use this file for their homepage, as noted here Why do people name their files index.html?

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda