localhost/index.php 404.3 error

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

localhost/index.php 404.3 error

Postby salsathegeek » 14. January 2011 02:58

I realize I'm probably going to catch a lot of flak for this thread but I am frustrated with trying to find a solution when all I get from Google is either German or doesn't have how they fixed the problem.

Simply put, I'm running the latest version of XAMPP on Windows 7. I have changed the default website to the sever's location using the IIS manager. Apache itself works and can process HTML requests. What it can't do is PHP or any of the other languages that came with the package. For both PHP and Perl pages, all I get is a 404.3 error

Is there any settings in the conf files I need to change? Could someone point out what's supposed to be there (sorry, never messed with .conf files before and I honestly have no clue how to change them to get apache to recognize PHP or Perl, which is why I downloaded XAMPP in the first place)

Thanks in advance.
salsathegeek
 
Posts: 2
Joined: 14. January 2011 02:46

Re: localhost/index.php 404.3 error

Postby Sharley » 14. January 2011 05:04

salsathegeek wrote:I have changed the default website to the sever's location using the IIS manager.
This part worries me as IIS and XAMPP don't coexsist easily as both IIS and Apache use port 80 and 443 which are not shareable.

So first I would decide which you really want to use and get rid of the other.

You can disable IIS and Apache will work just fine - see this topic for how to do this:
viewtopic.php?f=16&t=43891

A sure way of knowing if Apache is running is to check in the XAMPP Control Panel, run \xampp\xampp-control.exe that it shows a green running indication and by the sound of it, only your browser is parsing the HTML code and not Apache as Apache would also parse the php code.

You can start and stop various XAMPP components and access the command line (Shell) and the Windows Service Manager (SCM) also access the XAMPP Setup all from the one handy control Panel.

Look in the \xampp\apache\logs\error.log file for server errors.

Run \xampp\xampp-portcheck.exe to find out what is using port 80 and port 443
You should see httpd.exe if Apache is using them or inetinfo.exe or System if IIS is using them - you can't have both of them using the same ports.

Before starting the XAMPP servers the readings in the portcheck should show all ports are free.

Usually there is no need to change anything in the httpd.conf file from the defaults to have a working XAMPP installation.

To test your installation type in your browser
http://localhost
You should see the XAMPP Welcome Demo Page.

Your web site should be placed in the \xampp\htdocs\mysite folder for example so if you type in your browser:
http://localhost/mysite
it should present you with your web site index page.

You should also be logged in to your PC with administrator privileges to best manager your servers.

Best wishes and remember that we are here to help you not to give you flak. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: localhost/index.php 404.3 error

Postby salsathegeek » 14. January 2011 22:12

Apache works just fine. It just doesn't process PHP or perl. I'm tempted to see if it's any easier to get IIS to run those.
salsathegeek
 
Posts: 2
Joined: 14. January 2011 02:46

Re: localhost/index.php 404.3 error

Postby Sharley » 14. January 2011 22:49

salsathegeek wrote:Apache works just fine. It just doesn't process PHP or perl.
Where do you see this 404.3 error and what is the exact error message you see.
XAMPP's Apache does not give a decimal number with it's 404 file not found error.

What do you see when you type http://localhost/xampp/index.php in your browser?

What does the \xampp\apache\logs\error.log file have recorded about the date and time you try and access a php page?

In the XAMPP Control Panel which components are showing Running in green?

If Apache is running then it will have no problems parsing php code or interpreting pearl code.

In my honest opinion you have IIS running on port 80 not Apache.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 202 guests