Communication between Apache and htdocs

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

Communication between Apache and htdocs

Postby Cadamhill » 20. December 2014 05:02

I had to move from port 80 to 81 upon installation. I am not getting an error when I start apache or sql. Also, I have placed a test.php file in htdoc folder along with many other files. None of them will display. The browser recognizes the link via a 404 error but will not display the echoed statement or other code I have created..If I change the port back to 80, it just says website not available.

I turned on Apache and SQL. I brought the php files from a thumbdrive and placed the text docs into htdocs via notepad++.

Error message.....


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
Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3

I have went to apache controls/ configuration/httpd.conf and changed all three instances where I had to change 80 to 81 port. Something else is wrong. I have windows 8.1.

Lastly, I am on a home network and am using this as a localhost. My path typed in was localhost:81/test.php (inside the htdoc folder)

Can anyone please provide me with assistance on how to fix this issue.

Respectfully,

Chris

[EDIT by Altrea: moved to the english section of this board]
Cadamhill
 
Posts: 2
Joined: 20. December 2014 04:47
Operating System: Windows 8.1

Re: Communication between Apache and htdocs

Postby Nobbie » 20. December 2014 12:06

First of all: "Xampp auf Deutsch" - hier ist das deutsche Forum.

Cadamhill wrote:and placed the text docs into htdocs via notepad++.


Notepad very often appends an additional *.txt to the filename (i.e. resulting in "test.php.txt"), which may be easily overlooked in Explorer, as it does not show file extensions for known filetypes. Check that.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: Communication between Apache and htdocs

Postby gsmith » 20. December 2014 19:51

Nobbie, Notepad and Notepad++ are two different things.

404 = file not found.
I'd start looking at where on the hard drive these files are.
Then what is the DocumentRoot in httpd.conf
If httpd-vhosts.conf is in use you may way to look at the same in it.
In Apache 2.4 it is harder to diagnose 404 errors because they do not show up in the error.log file, but they do show up in the access.log file and you can sometimes gleam hints from it.
gsmith
 
Posts: 278
Joined: 29. November 2013 18:04
Location: San Diego
XAMPP version: 0.0.0
Operating System: Win 10/2012R VS 14,15,16

Re: Communication between Apache and htdocs

Postby Nobbie » 21. December 2014 15:20

gsmith wrote:Notepad and Notepad++ are two different things.


I know, but i would give it a try anyway, check out if there is a test.php.txt instead of test.php
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 129 guests