p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 (http://p2p.wrox.com/forumdisplay.php?f=160)
-   -   Chapter 1 - Adding PHP to the Equation (http://p2p.wrox.com/showthread.php?t=30600)

Chudz June 19th, 2005 06:06 AM

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

Then add the following lines:

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

But in my conf file it has:

Code:

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

Which is different from the book

:( please help


Chudz June 21st, 2005 06:03 AM

Can someone help? maybe post ur httpd.conf file so i can see it?


Chudz June 21st, 2005 03:47 PM

anyone please! i want to do my book. But im completely stuck the conf file is different from the book!!!:(


bajaguy June 27th, 2005 06:21 PM

Are you still stuck on this issue? You should be able to add those 2 lines:

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

Don't worry about what's there.

Ben



All times are GMT -4. The time now is 09:26 AM.

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