404 not Found (But changing port does not help)
Posted by: Kialia (---.cm-3-2b.dynamic.ziggo.nl)
Date: March 17, 2014 04:22AM

Hi Wampserver Forum,

I have run into the following problem. When i set the server online and try to access localhost.
I get a 404 not found error. I checked this forum and it said i had to change port to lets say 81.
But this did not solve the problem.

Extra info:
- VPS Windows 8 with IIS Installed.
- Already have another PHP installation (should not be a problem right?)
i dont wanna uninstall the php already on my www/root because im running sites with that already.
- Dutch timezone here + i might take a few to respond im sorry if i do that. i really appreciate the help.
- I really need this up and running soon because i am trying to get wordpress online for a site for business.
- I only have basic VPS knowledge.

My Results from netstat port 80

C:\Users\Administrator>netstat -aon |find /i "listening" |find "80"
TCP---0.0.0.0:80------------------------0.0.0.0:0---LISTENING---4 TCP---[::]:80----------------------------[::]:0-------LISTENING---4 TCP---[ab29::4da:bzrr:re75:50dx@40]:42---[::]:0-------LISTENING---3172
TCP---[fe80::21a:4aff:fe82:8d50%41]:42----[::]:0-------LISTENING---3172


Any clue what could be amiss?

If you are really good with servers and windows 8 or Linux let me know. i would like to keep in contact.

Greets

Options: ReplyQuote
Re: 404 not Found (But changing port does not help)
Posted by: RiggsFolly (---.as13285.net)
Date: March 17, 2014 10:38AM

If you changed the port to lets say 81, are you using the port number on the url in the browser>

Like 'http://localhost:81' if you change the port from the default 80 you have to use it on all accesses

Having another PHP installed can cause problems. If you installed it using an .msi install. Usually they place the PHP.INI in \windows or \windows\system32 and also put the other PHP in the systems PATH.
It also can create a registry key which Apache will look for that can cause problems.

These can all cause complications for Apache finding the correct php.ini

See [www.php.net]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: 404 not Found (But changing port does not help)
Posted by: sumithusky (---.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com)
Date: March 17, 2014 05:02PM

Same problem as above, I tried many things but it didnt worked. My want symbol turns Red to Orange and didnt turn to Green so server is always offline. And it shows error 404 if I Type localhost on Browser

Options: ReplyQuote
Re: 404 not Found (But changing port does not help)
Posted by: RiggsFolly (---.as13285.net)
Date: March 17, 2014 06:28PM

If the wampmanager icon is not GREEN then one of the services ( Apache/MySQL ) has not started properly.

How to tell which service is not running if the wampmanager icon is orange.

Left click the wampmanager icon to reveal the menu-> Apache -> Service
If the Start/Resume service menu is Green then Apache IS NOT running.

Left click the wampmanager icon to reveal the menu-> MySQL -> Service
If the Start/Resume service menu is Green then MySQL IS NOT running.

If Apache is the service that is not running it is normally, but not always, because something else has captured port 80.

Now do,
Left click the wampmanager icon to reveal the menu-> Apache -> Service -> Test port 80
This will launch a command window and display some information about what, if anything is using port 80.

Whatever it is should be re-configured to not use port 80 or uninstalled if you are not using it.

If port 80 is not the problem look for errors in the appropriate error log ( use the wamp manager menus to view the error logs )

If these do not exists or show no errors then also check the Windows Event Viewer
Start -> Administrative Tools -> Event Viewer
And look in the 'Windows Logs' -> Application' section accessed from the menu on the left of the dialog for error messages from Apache and or MySQL.


How to Configure SKYPE so it does not require port 80 or 443
( This does not appear to be necessary on recent versions i.e. after march 2014 )

Run SKYPE
then using the menus do this:
Tools -> Options -> Advanced -> Connection
Un-Check the checkbox next to 'Use port 80 and 443 as alternatives for incomming connections'
Now restart SKYPE for these changes to take effect.

If you are running Windows 8 SKYPE comes as an app and this cannot ( as yet ) be configured in this way.
However if you uninstall the SKYPE app and install SKYPE in the old way, you can reconfigure it, and it works just as well.

How to Configure Team Viewer so it does not require port 80 or 443
Run TV
Extras -> Options -> Advanced -> Press the Advanced Button -> Advanced Network Connections
Check the checkbox saying [ Dont use incomming port 80 (recommended for web servers only )

If the problem is not obvious then post the errors here

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: 404 not Found (But changing port does not help)
Posted by: sumithusky (---.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com)
Date: March 17, 2014 07:15PM

Your port 80 is actually used by
Server: Microsoft-HTTPAPI/2.0

Error logs are
The Apache service named reported the following error:
>>> (OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address 0.0.0.0:80 .

The Apache service named reported the following error:
>>> (OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address [::]:80 .

The Apache service named reported the following error:
>>> AH00015: Unable to open logs .

How to close Microsoft-HttpApi

Options: ReplyQuote
Re: 404 not Found (But changing port does not help)
Posted by: RiggsFolly (---.as13285.net)
Date: March 17, 2014 08:53PM

Ok so that means your system has Microsoft IIS installed, they are doing that on later versions of Windows for some reason. If you are not intending to use it you can uninstall it, it is not an integral part of windows so its being uninstalled wont effect normal operations of windows, and if you need to install it again later, it comes as part of the standard OS so you wont need to do anything perticularly clever.

So go to Start -> Control Panel -> Programs and Features
Click the 'Turn windows features on and off' link in the left hand menu.
Wait for the list to load and then find 'Internet Information Services'

Un check the check boxes for the following items ( you may not see all of them )

1. IIS
2. Web Deploy 2.0
3. MS Sql Server Reporting service.

List of possible service names
http://blogs.technet.com/b/fort_sql/archive/2010/05/31/list-of-sql-server-service-names.aspx

Tutorial on how to find what ports are in use on your system and what app is using them
http://blogs.msdn.com/b/bgroth/archive/2004/11/11/256190.aspx

Windows will then have a think for a while and then remove those applications, you will probably be asked to reboot to complete the uninstalls.
Reboot anyway when the uninstalls are complete.

Then try wamp again.


Alternativeley just disable it.

Start -> Control Panel -> Administrative Tools -> Services

Find IIS in the list of services.
Left Click that line and select Properties
Change the 'Startup Type' to disabled.

You may need to tdo this to MS Sql Server Reporting as well.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: 404 not Found (But changing port does not help)
Posted by: sumithusky (129.10.18.---)
Date: March 17, 2014 10:40PM

Thanks RiggsFolly,

I appreciate your help, The Web Deployment Agent Service was the culprit
The Web Deployment Agent Service was deployed with WebMatrix once I recently installed
and It troubled me a lot.
Along with you this tutorial helped me alot
[www.sitepoint.com]
Thanks again..smiling smiley

Options: ReplyQuote
Re: 404 not Found (But changing port does not help)
Posted by: Kialia (---.cm-3-2b.dynamic.ziggo.nl)
Date: March 18, 2014 08:34AM

Wow!
Thank you all so much for all of your respondses!
I am actually using (IIS) So i don't think i should uninistall it.
At the same time it does look like an huge resource hogging utility for what im using it for right now.
Cause im only using it for seperating domains to my VPS. (Sorry don't know how else to say that)

I'm using Windows 8 btw.

Would love to hear more suggestions!
Also ones that will keep my hostname stuff working if IIS is uninstalled.

Which is better?

Greets!!! Thank you so much. Hoping for more respondses! I was so lost for days.

Options: ReplyQuote
Re: 404 not Found (But changing port does not help)
Posted by: RiggsFolly (---.as13285.net)
Date: March 18, 2014 09:46AM

Hi Kialia,

Install TeamViewer and I will troubleshoot for you.

Install TV, then run it.

Then - Send me a Private Message containing the TV ID and PASSWORD so I can connect.
Leave TV running as it will change the password each time you restart it.

I am on UK time (GMT) and am normally available 09:00 - 16:00 and normally later into the evening.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: 404 not Found (But changing port does not help)
Posted by: Kialia (---.cm-3-2b.dynamic.ziggo.nl)
Date: March 21, 2014 10:55AM

Hi RiggsFolly,

Ty so much for willing to go further to help.
But i am not sure if i am. I don't feel secure about letting somebody else on my VPS.
Thank you so much for the suggestion though. That's really kind of you.
I hope you understand my point of view on this especially with my lack of knowledge.

I had to step away for a bit because these problems were getting the better of me.
But i am back now. And i am gonna start trying the new stuff that has been suggested to me.

I am afraid i will lose the connections to my websites though if i Uninstall IIS.

Greets,

Kialia.



Edited 1 time(s). Last edit at 03/21/2014 10:56AM by Kialia.

Options: ReplyQuote
Re: 404 not Found (But changing port does not help)
Posted by: RiggsFolly (---.as13285.net)
Date: March 21, 2014 12:22PM

Kialia,

Not offended in the slightest.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: 404 not Found (But changing port does not help)
Posted by: Kialia (---.cm-3-2b.dynamic.ziggo.nl)
Date: March 21, 2014 12:28PM

Ok so i followed the tutorial at the link you gave me.
[blogs.msdn.com]

And my results are svchost twice.
But i dont think that shows the correct ports.

I did find out that my port 80 is used by "Server: Microsoft-HTTPAPI/2.0"
So i went and did a google for that.
From there i was gonna try this: [www.youtube.com]
But i dont have SQL entries in my Services...

I also tried this: [www.steptoinstall.com]
That also did not work it just gave me 404 pages. even with adding :81 on local url's

I did some more googling and found some stuff..
And it is gonna look like (IIS) will have to be removed at some point...

Now my question again here is.. I set my websites up in (IIS) really simple..
All i had to do is set a index.php as a start page. And make the hostname the same as my namecheap.com
domain name..

Now here comes the worry..

If i uninstall (IIS) how am i gonna link new website's that i buy.
And will my current ones be disabled?

Sorry for all the caution. i just dont want to break something and have to spend even more time fixing.
Been almost a week now. And i'm starting to get very demotivated.

Greets,

Kialia



Edited 2 time(s). Last edit at 03/21/2014 12:33PM by Kialia.

Options: ReplyQuote
Re: 404 not Found (But changing port does not help)
Posted by: RiggsFolly (---.as13285.net)
Date: March 21, 2014 10:17PM

Sorry Kialia,

I have absolutely no idea what you are using IIS for.

I dont see how I can be of any further assistance, as anything I suggest woudl just be a guess.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.