how to debug PHP/WordPress failure running on WebMatrix (Windows 7) - webmatrix

I was able to install and run WordPress via WebMatrix on a VM. I have a WordPress theme though that immediately causes the site to start failing. I receive a 500 error message, there is nothing in my event logs.
Where can I find some kind of log for what actually happened? Or is there a way I can have the site show detailed error information?

Sorry to hear you are having trouble. WebMatrix runs sites in the context of IIS Express, the included lightweight web server. Its logs can be found in:
\IISExpress\Logs
\IISExpress\TraceLogFiles
Hope this helps!

found this Enable xDebug in WebMatrix.
hope this helps.

Related

IIS Manager is installed but shows empty page

I hope this is the right place to ask. I was thinking serverfault might not be correct, since the computer in question is not a server. Feel free to migrate if StackOverflow is not right.
I usually install IIS on servers but have installed it on Workstations before. I actually had the same problem with another machine of the same model a few weeks ago but can't remember how I resolved it. I must have installed additional features or run some powershell-command that did not resolve the issue on this machine.
I installed IIS the correct way using the Windows Features, as described in the answers to this question. I've actually removed and reinstalled it since then, but it hasn't resolved my problem.
The WWW publishing service is running and I can open the IIS Manager, but it's completely empty, unlike here where the IIS Manager at least shows the local computer
When I type localhost into a browser I don't see the IIS Startpage, I get the error ERR_CONNECTION_REFUSED
You can see that all the required checkboxes are checked:
And the service seems to be running.
I've since tried installing IIS using
DISM:
Powershell:
And I checked the status using the iisreset command which was mentioned in the comments here (second linked question upstairs):
It restarts without any error and says everything is working fine.
Has anyone ever encountered this before or might know what I could try to get IIS actually working?
Edit:
I just noticed, while trying to uninstall IIS, that I can not uninstall it. I used Windows-Features and confirmed to reboot when prompted, but while rebooting Windows does a rollback and IIS is still available. So I can't even uninstall it.
Also just found this similar quesion on SuperUser. I'm still trying some suggestions there. So far to no avail.
Thanks for the comments.
I was on vacation, but a colleague was able to fix the problem.
Unfortunately, the solution was to reset Windows 11. He was then able to install IIS through Windows Features and it worked.
No idea why it didn't work in the first place, or why it got to this unrecoverable state. But now everything is fine.

Visual Studio unable to start debugging

Every time I build my solution and try to start debugging, I get this message:
Unable to start debugging on the web server. The web server did not respond on a timely manner. This maybe another debugger is attached to the web server.
If I restart my IIS, I can start debugging but If I build again I have to restart my IIS again. I saw several people having same issue but no one same as mine exactly.
Open your cmd in administrator mode and run cmd
iisreset
The below link contain some useful answers:
Unable to start debugging on the web server. Could not start ASP.NET debugging VS 2010, II7, Win 7 x64
Like this answer:
1)
Try going to IIS and checking to make sure the App Pool you are using
is started. A lot of times, you will produce an error that shuts down
the app pool. You just need to right click and Start and you should be
good to go.
2) And this answer
Turns out that the culprit was the IIS Url Rewrite module. I had
defined a rule that redirected calls to Default.aspx (which was set as
the start page of the web site) to the root of the site so that I
could have a canonical home URL. However, apparently VS had a problem
with this and got confused. This problem did not happen when I was
using Helicon ISAPI_Rewrite so it didn't even occur to me to check.
I ended up creating a whole new web site from scratch and porting
projects/files over little by little into my solution and rebuilding
my web.config until I found this out! Well, at least now I have a
slightly cleaner site using .NET 4.0 (so far, hopefully I won't run
into any walls)--but what a pain!

403 Forbidden running MVC3 from VS2010

I've recently had a name change to my PC and rebooted. Before this change, I could run my MVC3 project from VS2010 using IIS 7. After the name change I getting:
Http Error 403 Forbidden Version Information: ASP.NET Development Server 10.0.0.0
I realise this could be a number of things so I'll try, in detail, to describe what's going on.
IIS
My IIS reverted back to v6 so I loaded 7 and set my DefaultAppPool to use .NET v4.0.
Security has all permissions for my account.
Request Filtering has 'Allow unlisted file name extensions checked (another answer on SO)
I'm using FireFox 24.0
VS2010 hasn't changed as far as I'm aware.
I'm not very familiar with IIS which, seems to me, is my problem so please bear this in mind if you decide to help. I'll gladly provide more information if needed.
thanks,
Paul
Do you actually have IIS7 installed or are you using IIS Express or Cassini?
I'm pretty sure that you'll be able to get things going again if you use the aspnet_regiis command.
Navigate to your .Net folder and run the following command aspnet_regiis -i
This isn't the answer but rather a different question. The problem wasn't IIS, the problem is with FireFox. I changed the default browser to Chrome and my app runs as it should.
Simple answer - I changed windows authentication password which wasn't updated in firefox. I changed the password to be in sync and it solved the issue.

Connect to tfspreview from VS2010 SP1 -> TF31002: Unable to connect

I have freshly installed VS2010 with SP1, and when I try to connect to a project on tfspreview.com, I get TFS31002 error:
Google did not help very much. Anyone solved this?
Ok, I managed to find this blog post which has solution: install KB2581206 which enables VS2010 to connect to tfs-azure and use Microsoft account to authenticate.
It works :)
Credits to Tarun Aurora
It may seem unrelated on quick glance but I had the same problem. My machine had a preloaded McAfee. Even I hadn't activated it.
It was popping up asking me to register all the time. And I had always told it to ask me later and had in fact turned it off, but it was still blocking me from getting onto the Team Foundation Server anyway.
Whenever I uninstall the McAfee that was preloaded on the my new machine, it has started working perfectly fine. Anyone else who can't solve this problem with the mentioned answers above, and has McAfee on the machine, just give this a shot.
Hope it helps

Basic regarding W3wP.exe - IIS 8

Sorry if it looks so simple.
Am trying to find when W3wp.exe will show up in the process list. Am using Windows 2012 beta with IIS 8. I have web and wcf applications deployed in it. And i tried to browse the pages locally. But am not seeing process.
Please let me know if am missing something.
Thanks
Finally it worked. But i dono the exact root cause earlier
restarted the machine
Opened VS With Admin Previlages
i was able to see the process listed
Adding up -- For W3wp.exe to appear in the process list instance shuold be running already !
make sure to check
Show all processes in all sessions

Resources