Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
This is the forum to discuss the Wrox book Beginning PHP4 by Wankyu Choi, Allan Kent, Chris Lea, Ganesh Prasad, Chris Ullman; ISBN: 9780764543647
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 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 Display Modes
  #1 (permalink)  
Old October 31st, 2003, 12:53 PM
Registered User
 
Join Date: Oct 2003
Location: , , United Kingdom.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Server Application Error

I'm very new to PHP so I hope someone can help.

I've got Windows XP Professional and have installed IIS. I followed the installation instructions in the book but I kept getting "cannot display page". So I removed stated files and reinstalled IIS to see if it was a general problem with IIS. Result: "Cannot display page".

I then unchecked "show friendly URL errors" and tried again. this time I got a Server Application Error with the following error:

"The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance."

I've looked for the event log but it doesn't given much information, apart from stating that it tried to GET iisstart.asp 500. Anybody got any ideas - I'm at a loss.

Thanks for taking the time to read this.


__________________
\"A computer once beat me at chess, but it was no match for me at kick boxing\" - Emo Philips
Reply With Quote
  #2 (permalink)  
Old October 31st, 2003, 03:06 PM
Authorized User
 
Join Date: Jul 2003
Location: , , Russia.
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did you get PHP installed?

I keep forgetting that my memory is slipping.
Reply With Quote
  #3 (permalink)  
Old November 1st, 2003, 09:59 AM
Authorized User
 
Join Date: Oct 2003
Location: hyderabad, andhra, India.
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to phpsharma Send a message via Yahoo to phpsharma
Default

please install easyphp from www.easyphp.org on windows. because it works nice and gives u good results.

bye
sharma

God Knows better than US
Reply With Quote
  #4 (permalink)  
Old November 1st, 2003, 10:14 AM
Registered User
 
Join Date: Oct 2003
Location: , , United Kingdom.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I originally followed all the instructions in 'Beginning PHP' for installing with IIS and then tried to test it, but I get the same problem when IIS has been configured with and without PHP installed and configured.

Although it suggests IIS for Windows NT (and probably XP), would Apache work just as well on a Windows XP Professional system do you think?

Thanks for your responses they are appreciated.

I've just had a thought - which services need to be running in Windows XP Professional in order to use my computer as a server? Some of my services were switched off such as DNS server, but I'm thinking they may be needed. Anyone know?
Reply With Quote
  #5 (permalink)  
Old November 1st, 2003, 11:10 AM
Authorized User
 
Join Date: Jul 2003
Location: , , Russia.
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the same setup: XP Pro and IIS V5.1.
Under Control Panel->Add or Remove Programs ->Add/Remove Windows Components ->Details on IIS (should be checked already)->all of the subcomponents should be checked.

It sounds like IIS loaded ok, 'cause you said you loaded PHP4, and then on page 28, IIS launched ok? Is it page 36 that's bombing? Like no php version coming up? It'll look just like the book example. The address of the SMTP Server should be 'localhost'.
Reply With Quote
  #6 (permalink)  
Old November 1st, 2003, 11:22 AM
Registered User
 
Join Date: Oct 2003
Location: , , United Kingdom.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yeap. Can start IIS no problem, but when I come to test the page (pg36 as you said) I get 'server application error'. I've tried looking for similar problems around the Web, but they get explicit error messages in the event log, whereas I only get the following every time.

#Software: Microsoft Internet Information Services 5.1
#Version: 1.0
#Date: 2003-11-01 16:00:37
#Fields: time c-ip cs-method cs-uri-stem sc-status
16:00:37 127.0.0.1 GET /iisstart.asp 500

It's frustrating. I've followed the book precisely and it won't work. I've used http://localhost/ , http://127.0.0.1/ and my machine name but I get the same problem.

I appreciate your help.
Reply With Quote
  #7 (permalink)  
Old November 1st, 2003, 11:40 AM
Authorized User
 
Join Date: Jul 2003
Location: , , Russia.
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What happens if you just type in http://localhost/ Do you get both of the:
http://localhost/localstart.asp
and the
http://localhost/iishelp/iis/misc/default.asp
pages?

I keep forgetting that my memory is slipping.
Reply With Quote
  #8 (permalink)  
Old November 1st, 2003, 11:47 AM
Authorized User
 
Join Date: Jul 2003
Location: , , Russia.
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm betting that's okay. Maybe it's a problem with the web server root directory.††It should be C:\Inetpub\wwwroot\, so all files should reside there (or in some sub-directory like C:\Inetpub\wwwroot\myphp\learning\phpinfo.php).

When you generated the phpinfo.php file, did you use notepad? The file extension has to be .php, and it seems that MS word was squirrely about the extension for me. I bought Homesite 5.0 and it's great.
Reply With Quote
  #9 (permalink)  
Old November 1st, 2003, 01:09 PM
Registered User
 
Join Date: Oct 2003
Location: , , United Kingdom.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I get the same errors for both the files iisstart.asp and phpinfo.php. The file extensions are correct too.

I'm going to try uninstalling, then completely removing the files and folders manually before reinstalling and see what happens. I'm not optimistic though.
Reply With Quote
  #10 (permalink)  
Old November 1st, 2003, 01:21 PM
Authorized User
 
Join Date: Jul 2003
Location: , , Russia.
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

k. looks like IIS didn't get installed correctly then if the http://localhost/ didn't work. Keep the faith, you'll get it going. Just follow the instructions to the letter.
Reply With Quote
Reply


Thread Tools
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
Server Error in '/' Application jamesbie ASP.NET 1.0 and 1.1 Basics 2 October 18th, 2005 05:35 AM
Server Application Error cis BOOK: Beginning ASP.NET 1.0 2 February 12th, 2004 05:55 PM



All times are GMT -4. The time now is 07:02 PM.


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