|
 |
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 .
|
 |
|
|
 |

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
|
|
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?
|

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
|
|
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
|

October 22nd, 2003, 10:27 AM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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/
|

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
|
|
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.
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |