500 error

how can I log why and what line a 500 error occurred
LVL 1
rgb192Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

elliottwebsitesCommented:
Have you got a .htaccess file present?
Try deleting (or renaming it) to see what happens.
Also, incorrect g-zipping the PHP files can cause this.
0
rgb192Author Commented:
so, should I enable gzip in php.ini
0
rgb192Author Commented:
i am using windows server 2008.. so there is no htaccess
0
JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

elliottwebsitesCommented:
Have a look at your log files. You can find them like this:
Go to Start -> Control Panel -> Administrative Tools
Run Internet Information Services (IIS).
Find your Web site under the tree on the left.
Right-click on it and choose Properties.
On the Web site tab, you will see an option near the bottom that says "Active Log Format." Click on the Properties button.
 
At the bottom of the General Properties tab, you will see a box that contains the log file directory and the log file name. The full log path is comprised of the log file directory plus the first part of the log file name.
0
rgb192Author Commented:
i am using iis7

i am on step2 (find your website under the tree on the left)
0
elliottwebsitesCommented:
And what's the problem...?
0
rgb192Author Commented:
i am on step3 (find your website under the tree on the left)
and i cant do step4 and step5
•Right-click on it and choose Properties.


•On the Web site tab, you will see an option near the bottom that says "Active Log Format." Click on the Properties button.


0
elliottwebsitesCommented:
Try this location: C:\WINDOWS\system32\Logfiles\W3SVC1
0
rgb192Author Commented:
C:\Windows\System32\LogFiles

\HTTPERR
\Scm
\Firewall
\WMI
\WUDF
0
elliottwebsitesCommented:
Look in HTTPERR. Should show the reason for the 500 error.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rgb192Author Commented:
the errors are based on ip address, is there a way to change the error files so it is organized by domain name
0
rgb192Author Commented:
thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.