Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Installing tools from Ajax and PHP

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I purchased your book from Amazon on Thursday, and while waiting for it to arrive I thought I would setup the environment that listed in Appendix A.
I placed these two lines of code in the httpd.conf file at line 115
LoadModule php5_module c:/php/php5apache2.dll
AddType application/x-httpd-php .php
But when I start the apache server I receive an error, which says there is a syntax error on line 115 and when I try to run the test.php program in my browser, the program prints as text and does not display the PHP Version display.
Do you have any idea why this might happen?
Thanks for your thoughts�..
WBR
 
William Rouse
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I should show you the full error message I received:

httpd.exe: Syntax error on line 115 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/php/php5apache2.dll into server: The specified module could not be found.
Note the errors or messages above, and press the <ESC> key to exit. 8....
 
author
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello William,

Thanks for buying our book!

If you follow the steps from the appendix correctly, you should have php5apache2.dll in your \php folder, can you please confirm this?

Note that if you use Apache 2.2, you'll need php5apache2_2.dll instead.

Let me know, thanks,

Cristian
 
William Rouse
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cristian:
Thanks for taking the time to respond. This is the name of the file I downloaded from the Apache website, "apache_2.2.3-win32-x86-no_ssl.msi".
In my php folder I have the file "php5apache2.dll".

A search of the php folder using the dir command in the following statement retruns these files:
C:\php>dir php5apac*.dll
Volume in drive C is DRIVE_C
Volume Serial Number is 8CBF-361B

Directory of C:\php

Are there some other things I should look for? Thanks for your attention
WBR

08/23/2006 05:14 PM 36,924 php5apache.dll
08/23/2006 05:14 PM 36,925 php5apache2.dll
08/23/2006 05:14 PM 53,314 php5apache_hooks.dll
3 File(s) 127,163 bytes
0 Dir(s) 129,004,285,952 bytes free
 
William Rouse
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That last post was a tad scrambled. Ignore my closing comment in the directory listing.

WBR
 
William Rouse
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cristian:
I downloaded this file "php5.2-win32-200608270230.zip" and used the "php5apache2_2.dll" and now apache knows about PHP.
Thanks for your help

WBR
 
You are HERE! The other map is obviously wrong. Better confirm with this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!