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 PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 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 17th, 2005, 03:58 PM
Authorized User
 
Join Date: Jul 2004
Location: Connah\'s Quay, , United Kingdom.
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Chudz
Default Chapter 1 - Adding PHP to the Equation

Hi have just got your book and install all the software onto my PC. I have just got to the bit where you add the PHP code into the apache httpd.conf file.

Then i tried to restart the Apache server and then it says "Operation Failed" The book says to find this code in the httpd.conf file:

Code:
#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
AddType application/x-tar .tgz
AddType image/x-icon .ico
But when i search all i could find was this code:

Code:
#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz
I just added the new code under that section i think my httpd.conf maybe be newer than the book?

Please help me thanks
Reply With Quote
  #2 (permalink)  
Old June 18th, 2005, 08:05 AM
Authorized User
 
Join Date: May 2005
Location: , , .
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What version of Apache are you trying to install?

Also, what does it say after the "Operation failed" message? It usually gives a line number that caused it to fail..

Reply With Quote
  #3 (permalink)  
Old June 18th, 2005, 09:11 AM
Authorized User
 
Join Date: Jul 2004
Location: Connah\'s Quay, , United Kingdom.
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Chudz
Default

There is no line number with the operation failed! and im running Apache 2.0.54 (win32)

Reply With Quote
  #4 (permalink)  
Old June 18th, 2005, 09:13 AM
Authorized User
 
Join Date: Jul 2004
Location: Connah\'s Quay, , United Kingdom.
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Chudz
Default

maybe someone could post me there httpd.conf file which has the php code in it etc? C:\Program Files\Apache Group\Apache2\conf

Reply With Quote
  #5 (permalink)  
Old June 19th, 2005, 04:04 AM
Authorized User
 
Join Date: May 2005
Location: , , .
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is an excert from my httpd.conf file. I've indicated the bit you're looking at with a single >

I've also indicated (with >>>) what you need to add.

#
># AddType allows you to add to or override the MIME configuration
># file mime.types for specific file types.
>#
>#AddType application/x-tar .tgz
>#
# AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
#
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

>>> # php
>>> AddType application/x-httpd-php .php .php3

#

That should add the first bit you need. Then all you need to do, is add the LoadModule code.

If that doesn't work, then post back ( or e-mail me ) the contents of your httpd.conf

Reply With Quote
  #6 (permalink)  
Old June 21st, 2005, 03:41 PM
Authorized User
 
Join Date: Jul 2004
Location: Connah\'s Quay, , United Kingdom.
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Chudz
Default

I posted in wrong place on forum im using the newer version of the book but no one is helping me on the other forum!

I will type the page out in a email and send you my conf file and see what you think!?

Reply With Quote
  #7 (permalink)  
Old June 21st, 2005, 03:59 PM
Authorized User
 
Join Date: Jul 2004
Location: Connah\'s Quay, , United Kingdom.
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Chudz
Default

its saying wont LoadModule php5_module “c:/php/php5apache2.dll” when i know that file is there this is wrong

Reply With Quote
  #8 (permalink)  
Old June 22nd, 2005, 11:32 AM
Authorized User
 
Join Date: May 2005
Location: , , .
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I await your e-mail, although I don't use PHP5...

One thing you can try if you wish ( and it's cheating ) is use an AMP installer such as the one provided by http://www.appservnetwork.com/

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
chapter 10 Emailing with php - firstmail.php vijdev BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 July 19th, 2007 01:12 AM
"Adding PHP to the Equation" Gregorio BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 July 5th, 2006 08:59 PM
begin php & mysql - chapter 12, user_form.php jon_stubber Beginning PHP 1 March 9th, 2006 10:57 AM
Chapter 1 - Adding PHP to the Equation Chudz BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 3 June 27th, 2005 06:21 PM
Adding php to the equation problem dreadzz BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 June 22nd, 2005 11:30 AM



All times are GMT -4. The time now is 06:33 PM.


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