Jump to content

xampp not working

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
10 replies to this topic

#1
umarmir_123

umarmir_123

    Newbie

  • Members
  • Pip
  • 7 posts
hi
i installed xampp on my windows_xp_sp2 system.when i types http:\\localhost it works fine, but whenever i try to run ant other file .html or .php it shows me following msg
***************************************************************************************************
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

Error 404
127.0.0.1
7/31/2010 7:23:00 PM
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
****************************************************************************************************
can u plz tel me what i have done wrong?
i only installed xampp and no other software.
thnkx in anticippation

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Where is the file located? You have to have the files located in the correct folder before Apache can serve them.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
umarmir_123

umarmir_123

    Newbie

  • Members
  • Pip
  • 7 posts
i have installed xampp in c ie. C:\xampp and i have my files in C:\xampp\htdocs\
so where am i wrong?

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
There could be a few things: Using XAMPP (Apache-MySQL-PHP-Perl) for Windows - Textbook
Unfortunately, I'm using a Linux laptop and don't have convenient access to windows at the moment.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
umarmir_123

umarmir_123

    Newbie

  • Members
  • Pip
  • 7 posts
is thr anybody else who can help me..

#6
umarmir_123

umarmir_123

    Newbie

  • Members
  • Pip
  • 7 posts
i have installed xampp now is it necessary to instal php also?

#7
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
The AMP in XAMPP stands for "Apache MySQL PHP", it has all three installed by default. For you problem, all I can see is that you're confused about the paths. Try this:

Create a folder "foo" in htdocs, then create a file "file.php":
C:\xampp\htdocs\foo\file.php

And place this into file.php:
<?php
   print "Hello, World!";
?>
Then save it; Now try going to localhost to see if it exists:
http://localhost/foo/file.php

Does it work? I can see no reason why it should fail, you most likely mixed something up.

Note:
Make sure XAMPP is started, if it is not running the http://localhost will not exist!
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#8
umarmir_123

umarmir_123

    Newbie

  • Members
  • Pip
  • 7 posts
i followed each of youe step and when i tried to run it i got folloing error
************************************************
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

Error 404
localhost
8/1/2010 9:29:46 AM
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
**************************************************************************
so what more would you like to suggest...i will really appreciate ..
thnx

#9
umarmir_123

umarmir_123

    Newbie

  • Members
  • Pip
  • 7 posts
hey i got it now

Do you try to access the file with the URL http://localhost/xampp/htdocs/?
Thats wrong! localhost already routes to your htdocs folder, so the URL should be http://localhost/

#10
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
I told you to go to http://localhost/foo/file.php, not http://localhost/xam...cs/foo/file.php. Maybe you should listen a little!

Glad you got it working.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#11
umarmir_123

umarmir_123

    Newbie

  • Members
  • Pip
  • 7 posts
sory buddy actualy i was to deep in the problemthat i cudn't realiza this small differenc..anywaz thnks a lot for ur help...
God bless u