Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 21st, 2003, 10:10 PM
Authorized User
 
Join Date: Oct 2003
Location: KL, wilayah persekutuan, Malaysia.
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?
Reply With Quote
  #2 (permalink)  
Old October 21st, 2003, 11:06 PM
Authorized User
 
Join Date: Jun 2003
Location: San Jose, CA, USA.
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
Reply With Quote
  #3 (permalink)  
Old October 22nd, 2003, 10:27 AM
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
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/
Reply With Quote
  #4 (permalink)  
Old October 22nd, 2003, 08:24 PM
Authorized User
 
Join Date: Oct 2003
Location: KL, wilayah persekutuan, Malaysia.
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.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:54 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.