Local Host PHP

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Local Host PHP

Postby dday9 » 12. October 2017 18:16

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?
dday9
 
Posts: 6
Joined: 12. October 2017 18:08
XAMPP version: 3.22
Operating System: Windows 10

Re: Local Host PHP

Postby Altrea » 12. October 2017 18:51

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8942
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Local Host PHP

Postby dday9 » 12. October 2017 19:12

Altrea,

Thank you so much, that did the trick.
dday9
 
Posts: 6
Joined: 12. October 2017 18:08
XAMPP version: 3.22
Operating System: Windows 10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 57 guests