xampp and server error response

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

xampp and server error response

Postby rslaing » 30. April 2011 22:40

I've had no problem installing xampp, everything appears to be working. In fact I have installed and reinstalled xampp aaround 15 imes this week - and it still does not work.

I have tried for over a week to overcome the dreaded "Oops! This link appears to be broken" when I attempt to access a php file.
The php file is named karma.php and is a folder within htdocs named "test"
I inserted the php file in the xampp/htdocs file, the browser address shows as "http://localhost/xampp/test/karma.php"
The response in the error.log file is "[error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/xampp/test"

I have also noticed that on my computer, within the xampp/htdocs folder there is anothe xampp folder with an htdocs folder within. In other words C:\xampp\htdocs\xampp\htdocs.
There are no files within the final htdocs folder. The php file I constructed is in the first htdocs folder.

Judging by the amount of research I have carried out, the broken link seems to be a very common problem, and having spent an inordinate amount of (wasted) time, no one appears to have a solution.

My OS is Vista.

Does anyone have a solution or any ideas about how to get a fix on this? Or is xampp just a very unstable (albeit free) program?

Thanks in advance for any response

Rob
rslaing
 
Posts: 6
Joined: 30. April 2011 22:23

Re: xampp and server error response

Postby Altrea » 30. April 2011 23:01

rslaing wrote:Judging by the amount of research I have carried out, the broken link seems to be a very common problem, and having spent an inordinate amount of (wasted) time, no one appears to have a solution.

Thats not the truth. In most cases the problem can be solved very easy. The routing of Apache is very straightforward.

Take a look again on your error message:
[error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/xampp/test"

What do you see? Apache is searching for a test folder inside your \xampp\htdocs\xampp\ folder.
And thats the absolute correct behaviour if you take a look at your URL
http://localhost/xampp/test/karma.php


Remember one thing:
You type in http://localhost/xampp/test/karma.php.
Your OS takes a look into his HOSTS file and transferes the request to http://127.0.0.1/test/karma.php.
Your Apache gets that request because it is addressed to Port 80 which is the default port for HTTP requests and your Apache is listening to that Port 80 by default.

So, your Apache have to process the request. Therefor it has to know in which folder it has to start to search for files. That folder is known DocumentRoot.
By Default the DocumentRoot Folder is \xampp\htdocs\.
So, your Apache takes the URL http://127.0.0.1/ which is directly routed to the DocumentRoot folder.

So, if you type in http://localhost/xampp/test/karma.php Apache is searching for a test folder inside your \xampp\htdocs\xampp\ folder.

Question: How does the URL have to look like to request a \xampp\htdocs\ folder?
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: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: xampp and server error response

Postby rslaing » 30. April 2011 23:13

Thanks for your reply.

I have tried almost every variation and the only one where I don't get the "Oops etc" is http://127.0.0.1/test/karma.php to which I get the response "hacking attempt".

If typing in "localhost" brings up automatically "http://localhost/xampp/" and from your post in seems that is the equivalent of "http://127.0.0.1" - what am I doing wrong? Why am I getting "hacking attempt"? I can't find any answer in google search.

Thank you
rslaing
 
Posts: 6
Joined: 30. April 2011 22:23

Re: xampp and server error response

Postby Altrea » 30. April 2011 23:19

rslaing wrote:I have tried almost every variation and the only one where I don't get the "Oops etc" is http://127.0.0.1/test/karma.php to which I get the response "hacking attempt".

http://127.0.0.1/test/karma.php / http://localhost/test/karma.php is the correct URL to request your file \xampp\htdocs\test\karma.php

rslaing wrote:If typing in "localhost" brings up automatically "http://localhost/xampp/"

If you JUST type in http://localhost/ your Apache searches for any Index file inside your \xampp\htdocs\ folder. So the \xampp\htdocs\index.php file will be processed and THIS file does have a redirect to the \xampp\htdocs\xampp\ folder.

P.S.: \xampp\htdocs\xampp\ is the folder where the XAMPP Administration Webpanel is saved. This has to be requested in your Browser too so it is inside the htdocs folder.
P.P.S.: This is the german part of the board. Next time please take some seconds to choose the right forum for your (english) question.
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: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: xampp and server error response

Postby rslaing » 30. April 2011 23:35

Thank you, but your suggestion "http://localhost/test/karma.php is the correct URL to request your file \xampp\htdocs\test\karma.php" just gives me the response "hacking attempt", and the program stalls.

Why do I get this instead of the file being processed?
rslaing
 
Posts: 6
Joined: 30. April 2011 22:23

Re: xampp and server error response

Postby Altrea » 30. April 2011 23:38

I don't know.

I haven't ever seen such a message.
Can you take a screenshort from that?
What code do you have in your karma.php file?
Which Browser do you use?
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: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: xampp and server error response

Postby rslaing » 30. April 2011 23:53

Hi Altrea,

Thanks for all of your help, but I really don't want to go on with this program. I have spent a lot of time on it and I think that the main problem is a lack of documented help. I know it is free, and a "work in progress" but that doesn't excuse what I see as lots of problems judging by the amount of queries and problems in the forum. A simple answer might be a step-by-step manual that would supply answers and alleviate the situation I have encountered. Even if it has to be purchased, it would be worth it to offset the frustration of the problems people appear to be having.

Just a personal opinion, but I don't think programs like this should be released until they are, to a degree, foolproof. And yes, you might have worked it out, I am one of the fools. Thanks again.
rslaing
 
Posts: 6
Joined: 30. April 2011 22:23

Re: xampp and server error response

Postby Altrea » 01. May 2011 00:04

Hi rslaing,

1st: XAMPP is just a package of very well known programs like Apache, MySQL, PHP and others. For all of that components there are very complete and understandable documentation/manuals in the internet. XAMPP just bring them together in a very portable way, but their configuration is mainly like their default settings.

2nd: Your Problem is not a Apache or XAMPP problem. The message you get is one of your Browser or Security Software or sourcecode. And without to know how the message looks and if that comes from some in your sourcecode, noone can say how to solve that and where it comes from. And because thats not a XAMPP issue (XAMPP doesn't have something like a hacker detection system) i just tried to help you out of that. But that board doesn't have the function to explain you every messages you get from any third party programs.

If you don't want to use XMAPP thats up to you. Maybe thats the better way.
Wish you all the best
Last edited by Altrea on 01. May 2011 00:17, edited 2 times in total.
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: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: xampp and server error response

Postby rslaing » 01. May 2011 00:17

Sorry if my personal opinion has annoyed you, it is just a reflection of my frustrating experience so far, and it appears I am not the only one judging by comments in the forum and elsewhere.

My assessment of this program was really compounded when I was looking for documentation and the only thing I could find was "Documentation about XAMPP
[illustration] There is no real manual or handbook for XAMPP. We wrote the documentation in the form of FAQs.At the end of this small page you will find an overview over third-party documents we found online. FAQs at http://www.apachefriends.org/en/faq-xampp.html.

Hardly a comprehensive source don't you think?

Maybe if you know of a source for answers/instruction other than the forum, which seems to be a bottomless pit which has a lot of non-relevant but allegedly related solutions, you could point me in that direction? Thanks again.

Robert
rslaing
 
Posts: 6
Joined: 30. April 2011 22:23

Re: xampp and server error response

Postby Altrea » 01. May 2011 00:20

Have you read the readme_en.txt which comes with your installation ?
Have you read http://www.apachefriends.org/en/xampp-windows.html ?

Let me just point you to two Questions in the second link which explains the correct URL to request a page and where to save files
http://www.apachefriends.org/en/xampp-windows.html#1168

and that some files are processed automatically if not explicit given in the url (index files):
http://www.apachefriends.org/en/xampp-windows.html#1170
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: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: xampp and server error response

Postby rslaing » 01. May 2011 00:28

Yes, I've looked at those.

Unfortunately, when you are dealing with several different sites at the same time, as I have, the generic application/coverage of the program doesn't really help. I think I'll just keep testing on one of my defunct domains. Xampp is ok for the geeks, but for idiots like me, it just has too many flaws and complicated solutions to basic problems that really, shouldn't arise.

Thanks again! You're great!!

Robert
rslaing
 
Posts: 6
Joined: 30. April 2011 22:23


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 79 guests