 |
BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0  | This is the forum to discuss the Wrox book Beginning PHP5, Apache, and MySQL Web Development by Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz, Michael K. Glass; ISBN: 9780764579660 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 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
|
|
|
|

May 30th, 2006, 06:27 AM
|
|
Registered User
|
|
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
getting php started
I followed the book to page 15 and included the line
LoadModule php4_module c:/php/sapi/php4apache2.dll
into the httpd.conf file.
After including this line, when I try to start the server it tells ne that this line has an error on it "The specified module could not be found".
I've checked and there is definitely a file called php4apache2.dll at this location (put there when I installed apache).
I'm stumped. Can anyone offer any clues as to what I might be doing wrong?
|
|

June 1st, 2006, 06:09 AM
|
|
Registered User
|
|
Join Date: Jun 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
if you check in your php file you will see in you install.txt that is says that you should copy php4apache2.dll form the C:/php/sapi to the Main Root in the php file.
so instead of using C:/php/sapi/php4apache2.dll you copy the php4apache2.dll in to the main root in c:/php , so it would look like this LoadModule php4_module c:/php/php4apache2.dll
also you can add the PHPIniDir C:/php this directs apache to the php.ini C:/php should be replace were your php.ini is located in your C:/php
Well I hope this works for you write back if it doesn't
|
|

June 2nd, 2006, 03:29 PM
|
|
Registered User
|
|
Join Date: Jun 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I am sorry, but I have had the same problem with
LoadModule php5_module "C:/php/php5apache2.dll"
I have php5apache2.dll in the c:/php directory and apache still can't find it. I have tried to read everything I can about PHPIniDir and I can't find out where I should use this. I have also added c:/php to my path and still apache can't find it. Also are the quotes needed in the LoadModule line? Has anyone got this to work with windows? Also it is not clear where php.ini should be. The book says in the c:/Windows directory "where apache can find it".
I would appreciate any help.
|
|

June 2nd, 2006, 09:30 PM
|
|
Registered User
|
|
Join Date: Jun 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
In digging through the Internet, I have found the statement that PHP5 is incompatible with Apache 2.2 and this is reason the LoadModule for php5 does not work. I removed Apache 2.2 and loaded Apache 2.0 and the LoadModule works. It is hard for me to believe that the Apache people developed a version that would not work with PHP (or PHP5, which is the current version). Does anyone know anything more about this?
|
|

June 2nd, 2006, 10:15 PM
|
|
Registered User
|
|
Join Date: Jun 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
With further digging, I found that the incompatibility must be true as it was a reported bug with Apache. The answer to problem is you can get a newer (stable?) version php5apache2_2.dll from the PHP "snaps" web site http://snaps.php.net/. I have not tested to see if this fixes the problem or not. I think for the moment I will stick with Apache 2.0.
|
|

June 3rd, 2006, 06:11 AM
|
|
Authorized User
|
|
Join Date: Mar 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
The reason why PHP doesnt work with Apache2.2 is becuase of the way Apache2.2 now handles its modules. This is why PHP is not compatible with the newer Apache2.2
PHP will soon support Apache2.2 with the the release of PHP6, or when PHP release a stable Apache2.2 PHP module.
|
|

June 4th, 2006, 11:31 AM
|
|
Registered User
|
|
Join Date: Jun 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yea but I wouldn't worry about the newer versions just yet I would just rather stick for what works right now most Dedicated Server are still using PHP 4 so I mean it just depends on your needs of course PHP 5 has newer feature but mostly everything is the same just a few changes
|
|

June 7th, 2006, 01:51 AM
|
|
Registered User
|
|
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by ndhamer
With further digging, I found that the incompatibility must be true as it was a reported bug with Apache. The answer to problem is you can get a newer (stable?) version php5apache2_2.dll from the PHP "snaps" web site http://snaps.php.net/. I have not tested to see if this fixes the problem or not. I think for the moment I will stick with Apache 2.0.
|
What you say works perfect.
I downloaded the latest snapshot.
And php5apache2_2.dll solves the problem.
Thanks!
|
|

July 29th, 2008, 07:36 AM
|
|
Registered User
|
|
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I had the same problem, when I went to restart Apache2.2 from the "Moniter Apache Services" application an error was returned indicating that Apache had failed to start.
I found that the latest version of php that you can download at the moment (as of July 2008) has the file "php5apache2_2.dll" within the root directory of the unzipped php package.
This meant, instead of adding :
LoadModule php5_module "c:/php/sapi/php5apache2.dll"
I replaced it with :
LoadModule php5_module "c:/php/php5apache2_2.dll"
Simple solution to an annoying problem
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Can't get started |
shanebbb |
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 |
17 |
December 24th, 2008 04:58 AM |
| Getting Started |
ColinWatt |
BOOK: Professional Microsoft Robotics Studio ISBN: 978-0-470-14107-6 |
1 |
November 7th, 2008 02:08 AM |
| Getting Started |
st3ve |
Javascript How-To |
1 |
February 3rd, 2005 08:49 PM |
| Getting started |
aadz5 |
C# |
0 |
January 15th, 2004 05:27 AM |
| Can not get started |
eliea |
ASP.NET 1.0 and 1.1 Basics |
3 |
July 19th, 2003 12:11 AM |
|
 |