Discussion:
Server Error in Application "DEFAULT WEB SITE"
schkovich
2010-08-05 08:47:44 UTC
Permalink
How To Configure XDebug (http://wiki.netbeans.org/HowToConfigureXDebug)

Search this forum as well. You will find a lot useful tips.

------------------------
Schkovich at LinkedIn (http://www.linkedin.com/in/goranmiskovic)
Buzz by Schkovich (http://www.google.com/profiles/schkovich#buzz)
Liste
2010-08-05 01:22:10 UTC
Permalink
Hello all!

Please forgive me as I am very new to this all. There is probably something really simple that I am missing. Anyway, to make a long story short, I installed NetBeans from this link: http://www.netbeans.com/downloads/start.html?platform=windows&lang=en&option=php

I am running Windows Vista Home Premium on HP pavillion m9458f. I decided to start with an example that came with NetBeans, so I chose AirAlliance. When I tried to debug, however, I got this localhost page: http://localhost/AirAlliance/index.php?XDEBUG_SESSION_START=netbeans-xdebug with the error message: IIS 7.0 Detailed Error - 404.0 - Not Found.

So I did some Googling and discovered that perhaps I needed wamp server. So I installed that, but I still did not have any success. I still get the very same error page.

As you can probably see I am very unused to all this, but I am very willing to do any amount of work to get this going. Please let me know what information you need if I have not provided enough. Thank you!
Liste
2010-08-12 19:15:54 UTC
Permalink
Thank you, thank you!

I did a simple Google search that came up with this: http://www.apachefriends.org/f/viewtopic.php?t=20376

You described the solution so well that the rest was easy for me! Thank you so much, Geoff!

For those who are trying to figure this out in the future: Goto C:/xampp/apache/conf/httpd.conf Then change the line "Listen 80" to "Listen 85" or whatever port you want. Your apache will then be accesible from http://localhost:85

I also changed the line: "ServerName localhost:80" to an 85.

The last step was to copy my project to the C:\xampp\htdocs\ folder by right-clicking the project, and choosing properties. Under "Sources", I chose the checkbox "Copy files to another location". The location must be C:\xampp\htdocs\projectname. Then choose "Run configuration" on the left and set the Project URL to http://localhost:85/projectname/

Again, many, many thanks to everyone for helping me! I hope this explanation will help someone who has the same problem.

P.S. Can I mark this post as Solved somehow?

Liste
2010-08-05 13:55:54 UTC
Permalink
Hello, schkovich!

Thank you so much for your reply! I looked at that page but cannot figure out what I am supposed to do. I must be very slow. From what I can understand from that page, I must edit the php.ini file. I found it here: C:\wamp\bin\apache\Apache.2.2.11\bin\php.ini

By looking at http://blogs.sun.com/netbeansphp/entry/screancast_about_netbeans_php_ide#comment-1219391647000 I think I am supposed to comment out the Zend lines and add some xdebug lines right after them. The problem is that I cannot find the [Zend] line. I figure that that is probably not too serious, but the problem is that I don't know where to add the xdebug lines.

The other thing is that I don't have C:\xampp folder. Do I still have to install xampp? Sorry for my questions - they are probably really dumb.

Thank you again for your support. You have no idea how much I appreciate it!
Liste
2010-08-09 20:06:06 UTC
Permalink
Hello again.

I'm sorry - I'm not trying to push this if you are not willing to answer, but I have finally gotten somewhere, I think. I have installed XAMPP, but when I tried starting Apache, it says "Apache service started" in the text box below, but the button still read "Start".

Anyway to make a long story short, I am STILL getting the 404 error, so I tried going to http://localhost/ to see what that would yield. I got a big Welcome IIS7 screen. Do I have to disable IIS7 before I can run Apache, or can I use IIS7 with NetBeans IDE 6.9?

What am I doing wrong?
Liste
2010-08-09 21:34:35 UTC
Permalink
Hello again.

I'm sorry - I'm not trying to push this if you are not willing to answer, but I have finally gotten somewhere, I think. I have installed XAMPP, but when I tried starting Apache, it says "Apache service started" in the text box below, but the button still read "Start".

Anyway to make a long story short, I am STILL getting the 404 error, so I tried going to http://localhost/ to see what that would yield. I got a big Welcome IIS7 screen. Do I have to disable IIS7 before I can run Apache, or can I use IIS7 with NetBeans IDE 6.9?

What am I doing wrong?
Geoff Hoffman
2010-08-11 19:18:08 UTC
Permalink
If IIS is starting on port 80, then XAMPP (or any other instance of Apache) cannot start on port 80, its default also. You can change Apache config to start on a different port (look at listen directive), I've no clue how, but assume same for IIS. If you're writing PHP code learn Apache. Zillions of reasons why not IIS, just google it.

HTH -

----- Original Message -----
From: "Liste" <listedegarde-***@public.gmane.org>
To: users-pIcEb8ZahFnV1xZipG0+***@public.gmane.org
Sent: Monday, August 9, 2010 1:06:06 PM
Subject: Server Error in Application "DEFAULT WEB SITE"

Hello again.

I'm sorry - I'm not trying to push this if you are not willing to answer, but I have finally gotten somewhere, I think. I have installed XAMPP, but when I tried starting Apache, it says "Apache service started" in the text box below, but the button still read "Start".

Anyway to make a long story short, I am STILL getting the 404 error, so I tried going to http://localhost/ to see what that would yield. I got a big Welcome IIS7 screen. Do I have to disable IIS7 before I can run Apache, or can I use IIS7 with NetBeans IDE 6.9?

What am I doing wrong?
Loading...