Page 1 of 1

Local Host PHP

PostPosted: 12. October 2017 18:16
by dday9
I've downloaded XAMPP v.3.2.2 and included Apache and MySQL. While this question may seem basic, I'm having some difficulties hosting local PHP files for me to debug.

In my xampp folder, I've created a folder called projects and then I created a folder for the website project that I'm working on with all of my php files. I had thought that if I did that and started Apache that whenever I navigated to: 127.0.0.1/projects/[project_folder]/[file_name].php it would show up. Instead, I get a 404.

Obviously, I'm doing this wrong, how do I host local PHP files?

Re: Local Host PHP

PostPosted: 12. October 2017 18:51
by Altrea
Hi,

You need to create your projects folder inside of \xampp\htdocs\

http://localhost/projects/projectxy/index.php => \xampp\htdocs\projects\projectxy\index.php

best wishes,
Altrea

Re: Local Host PHP

PostPosted: 12. October 2017 19:12
by dday9
Altrea,

Thank you so much, that did the trick.