We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,996 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

PHP error 404

Hello I installed XAMMP for learning php on my local drive when it was completed. I run a simple programming but I receive error 404 what would be my issue with XAMMP, the installation is successful

Any recommendation, I want to switch

9
Contributors
17
Replies
5 Years
Discussion Span
8 Months Ago
Last Updated
19
Views
eXceed69
Posting Pro
561 posts since Feb 2007
Reputation Points: 28
Solved Threads: 2
Skill Endorsements: 0

hii


it means installation is not successful
when u type this http://localhost/ in the browser, the XAMPP page should be opened else installation is unsuccessful
will get back to u with more details when i know


Hello I installed XAMMP for learning php on my local drive when it was completed. I run a simple programming but I receive error 404 what would be my issue with XAMMP, the installation is successful

Any recommendation, I want to switch

php_coder
Light Poster
34 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

the XAMMP page display correctly when i viewing my php page in display that error

eXceed69
Posting Pro
561 posts since Feb 2007
Reputation Points: 28
Solved Threads: 2
Skill Endorsements: 0

No offense, but where did you save your file? Not sure where is XAMPP's root folder, but all pages should be in there.

VanPetrol
Light Poster
30 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Did you save the file in
C:/Program files/xampp/htdocs/your_file.php ?

Maybe not in program files, but at least where the xampp folder is ;)

Andy-Pandy
Newbie Poster
14 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

I know that you had to save it to actual dir of the XAMMP

I don't know if xammp had a folder in the program files

I just deployed it on the c:/zip it at c directory.

eXceed69
Posting Pro
561 posts since Feb 2007
Reputation Points: 28
Solved Threads: 2
Skill Endorsements: 0

There you go...problem solved right?

VanPetrol
Light Poster
30 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

It should be ;)

Andy-Pandy
Newbie Poster
14 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

yeah it needs to be in:

(xampp install path)/htdocs

jbennet
Moderator
Team Colleague
18,528 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 609
Skill Endorsements: 29

But I having probelms when I uploaded the whole folder.
for example my index.php is in folder Proj then i should write at the url

http://localhost/Proj/index.php

right?but the expected result won't comply..

eXceed69
Posting Pro
561 posts since Feb 2007
Reputation Points: 28
Solved Threads: 2
Skill Endorsements: 0

The easy way to test if your PHP installation is ok is to simply create a new php file with the following code:

<?php
phpinfo();
?>

Another things to take in mind are:

  • how you write your file and folder names.
  • Check your file and folder permissions.

Do you try http://localhost/proj/index.php???
BTW, it would be helpful if you post your code to take a look at.

tavox
Newbie Poster
7 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

But how i could know the permission of a file?how could i performed chmod on window?

eXceed69
Posting Pro
561 posts since Feb 2007
Reputation Points: 28
Solved Threads: 2
Skill Endorsements: 0

i think its a firewall problem. Physically disconnect from the internet (so you dont get hacked while you do the next bit) then turn off ALL firewall software. If the 404 error goes away then we know its a firewall issue

jbennet
Moderator
Team Colleague
18,528 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 609
Skill Endorsements: 29

If im not mistaken, you said you deployed it on c:/zip. Probably, your files should be saved on
C:/zip/xampp/htdocs/

a firewall issue may also be the cause.

tintinz
Newbie Poster
7 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

But how i could know the permission of a file?how could i performed chmod on window?

To view or change the permissions of a file or folder simply right click over it and select the properties option of the contextual menu that appears, then click the security tab to view it, and if you want to change some of them simply click over the options.

tavox
Newbie Poster
7 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

you dont get that on the home editions btw

jbennet
Moderator
Team Colleague
18,528 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 609
Skill Endorsements: 29

....m having problem on running my 1st php prog...i already install xammp successfully....error 404

droffij
Newbie Poster
6 posts since Jul 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

i tried all.. since i getting same problem not found not found........

ziyad ahmad
Newbie Poster
1 post since Aug 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.1151 seconds using 2.72MB