 |
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

June 17th, 2005, 03:58 PM
|
|
Authorized User
|
|
Join Date: Jul 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

June 18th, 2005, 08:05 AM
|
|
Authorized User
|
|
Join Date: May 2005
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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..
|
|

June 18th, 2005, 09:11 AM
|
|
Authorized User
|
|
Join Date: Jul 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
There is no line number with the operation failed! and im running Apache 2.0.54 (win32)
|
|

June 18th, 2005, 09:13 AM
|
|
Authorized User
|
|
Join Date: Jul 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
maybe someone could post me there httpd.conf file which has the php code in it etc? C:\Program Files\Apache Group\Apache2\conf
|
|

June 19th, 2005, 04:04 AM
|
|
Authorized User
|
|
Join Date: May 2005
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

June 21st, 2005, 03:41 PM
|
|
Authorized User
|
|
Join Date: Jul 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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!?
|
|

June 21st, 2005, 03:59 PM
|
|
Authorized User
|
|
Join Date: Jul 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
its saying wont LoadModule php5_module âc:/php/php5apache2.dllâ when i know that file is there  this is wrong
|
|

June 22nd, 2005, 11:32 AM
|
|
Authorized User
|
|
Join Date: May 2005
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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/
|
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 |
|
 |