Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| 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 Search this Thread Display Modes
  #1 (permalink)  
Old June 24th, 2003, 06:41 AM
Registered User
 
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Installation Issies

I have installed PHP4 as per instructions but when i open IE to view the phpinfo.php file i get an unrecognised file format with an offer to connect to the web and find a program that will work with this file. On taking up the offer i get end up at the php web site. I've checked everything and i have followed the instructions correctly but why does this happen. I am using Windows XP Home edition with Apache, MySQL & PHP installed. Any suggestions will be more than welcome.

Thanks,

Andrew
Reply With Quote
  #2 (permalink)  
Old June 25th, 2003, 09:01 PM
Registered User
 
Join Date: Jun 2003
Location: , CA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to IceNine
Default

It doesn't sound like you are viewing it through the server. What are you typing in the address bar?

<?php="great"?>
Reply With Quote
  #3 (permalink)  
Old June 26th, 2003, 11:19 AM
Authorized User
 
Join Date: Jun 2003
Location: Glen Ellyn, Illinois, USA.
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Dan Jallits Send a message via MSN to Dan Jallits Send a message via Yahoo to Dan Jallits
Default

It sounds like you haven't set up Apache to parse the PHP file extensions. There are too many variables for me to go into detail. Try following the appropriate link below and see it helps you.

For Apache 1.3.x
http://www.php.net/manual/en/install.apache.php

or for Apache 2.0
http://www.php.net/manual/en/install.apache2.php

If all else fails try doing the following which was posted on the PHP.NET site on 19-Apr-2003 at 02:17 by Dhananjay Rokde.

Quote:
quote:I don't believe it, So many people are having problems installing under windows, so here is Dhananjay Rokde to the rescue again.

Extremly Important steps that you need to follow for setting up the Apache server under the windows environment :

Once PHP is installed, install Apache (Follow the defaults). First, you will unzip the constance of that 5meg file you downloaded. Now create a folder in C:\Apache2 and called PHP. Now move the constance of the ziped file to that folder. Now go to your httpd.conf file. It is in your C:\apache2\conf directory. Now open that sucker up with notepad.

Small Note, please do all this very cool-headedly. depending on the PHP version, the lines may be back 'n forth. Be very careful in pasting these changes. There is NO such risk involved as you may reinstall the entire application, again. So, go ahead and blow the sucker.

First find the line:

Setting up Httpd.conf
ScriptAlias /cgi-bin/ "C:/Apache2/cgi-bin/"
Go to the line under it and insert:

ScriptAlias /php/ "C:/apache2/php/"

(what this does is tell the server where the php folder is)

Now find the lines:

# Format: Action handler-name /cgi-script/location
#

Go to the line following it and insert this:

Action application/x-httpd-php /php/php.exe

(What this does is tell the server where the php program is)

Now find the lines:

# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types
#
AddType application/x-tar .tgz

Go to the line following it and insert these lines:

AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps

(what this does is like the extensions on files)

Now, look for

MIMEMagicFile conf/magic

Now add this below:

DirectoryIndex index.html index.php default.php main.php

(What that does is when you go to a folder, it will go to one of thoes files)

You can now chech to see if your server is operational. If it is; good, if not; take some rest and try this again.

I really hope this is useful, and you implement this, while doing the same, please support PHP and Apache by putting up their stickers on your server.
I hope this helps. If not respond back.


Best Regards,
Dan Jallits
Reply With Quote
  #4 (permalink)  
Old August 31st, 2003, 01:57 PM
Registered User
 
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i would like to thank ice nine and dan for there replies of help. sadly just after i read your replies my computer died and it is currently being attended under warranty although the people allegedly doing the repairing seem to be under the impression that swapping out a hard drive fixes all known problems - except of course when it is the graphics chip set that is malfunctioning!!!

when i get the computer back i will follow the instructions and see what comes of it
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
Biztalk Installation lily611 Biztalk 1 October 3rd, 2013 09:16 AM
Sequencing installation apondu General .NET 0 October 28th, 2006 01:49 AM
How to know/identify that installation is done shiby_chacko1@rediffmail. C# 1 March 30th, 2005 03:21 AM
Installation trouble zamankazi BOOK: ASP.NET Website Programming Problem-Design-Solution 5 October 6th, 2004 04:08 PM
Linux Installation Tony Konieczny BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 September 3rd, 2004 08:36 AM



All times are GMT -4. The time now is 01:34 AM.


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