Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 21st, 2003, 10:10 PM
Authorized User
 
Join Date: Oct 2003
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default HTTP 500 Internal Server Error

I have installed PHP Version 4.3.2, but when try to access a php script file via browser, i get a server 500 error. I found the solution to know what error it is but i don't understand it. The solution is :
    To get to see a sensible error message, from the command line, change to the directory containing php.exe and run "php.exe -i" (without quotes).
   i don't know how to change the directory containing php.exe and how to run php.exe -i.
   Can someone help?
 
Old October 21st, 2003, 11:06 PM
Authorized User
 
Join Date: Jun 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am assuming you have access to the server controls, i.e. admin access? It sounds like you haven't configured IIS to function properly with the PHP API. If you are using Win 2k, here's how to set it up.
  • Right click on "My Computer"
  • Select "Manage"
  • Open Up "Services and Applications"
  • Open Up "Internet Information Services"
  • Select the website listing you are working with.
  • Right-click and select properties.
  • Select the "Home Directory" tab
  • Click the "Configuration" button on the bottom right.
  • Under the App mapping tab, scroll through the list and see if PHP is in the list.
  • Remove it if it is in the list
  • Click the "Add" button
  • Under executable, select PHP.EXE from where you installed it.
  • Under extension, type PHP
  • Click ok
  • Restart the web service to be sure it took

you should be all good then. At least it worked for me. Good luck.



----------
~cmiller
 
Old October 22nd, 2003, 10:27 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That is, of course, that you're running PHP with IIS... If that solution doesn't work or apply to you, please let us know a few more details about your setup.


Take care,

Nik
http://www.bigaction.org/
 
Old October 22nd, 2003, 08:24 PM
Authorized User
 
Join Date: Oct 2003
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, I'm running PHP with IIS. I tried the steps but i got another problem.
Description : Default Web Site (stopped)
State : stopped
IP Add : All unassigned
Port : 80
Status : Unexpected error 0x8ffe2740

Even though i restart the web server, it doesn't help either.






Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTP/1.1 500 Internal Server Error Dmitriy General .NET 0 February 26th, 2008 04:50 PM
Http/1.1 500 Internal Server Error abinashpatra ASP.NET 1.0 and 1.1 Basics 17 May 10th, 2007 02:06 AM
HTTP 500 - Internal server error helmsly BOOK: Beginning ASP 3.0 11 November 8th, 2006 03:15 AM
HTTP 500: Internal Server Error cyberddindia Classic ASP Databases 4 October 5th, 2006 11:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.