PHP NOTES 17 RE NOTE 33546 ADDED TO INSTALL APACHE2
From: aaron@no-spam (Aaron)
Subject: Re: note 33546 added to install.apache2
Date: 30 Jun 2003 12:34:39 -0700


I've tried these steps exactly, and I get the ever present/famous:

Syntax error on line 173 of D:/Apache2/conf/httpd.conf:
Cannot load D:/php/sapi/php4apache2.dll into server: The specified module could not be found.

And yet...

Directory of D:\php\sapi\php4apache2.dll 6/28/2003 0:38 28,672 php4apache2.dll
This was a squeaky clean install of Apache 2.0.46 and php-5.0.0.b1-Win32.zip. On another machine with Apache 2.0.46 and php 4.3.0 (working nicely) has the same problem when moving to 5.0b1.
Going back to 4.3.0 works fine again.

Ideas?

Aaron
mapuo@no-spam wrote in message news:<note-33546@no-spam>...
> Apache 2.0.46 + php-5.0.0b1-Win32.zip on Windows XP SP1
> Works just fine... i think i have to tweak it just a little in php.ini :)
> 1. Install Apache 2.0.46
> 2. Unzip php-5.0.0b1-Win32.zip to C:\php or C:\Program Files\php\ (or whatever)

> 3. In httpd.conf add this lines > LoadModule php5_module "C:/Program Files/php/sapi/php4apache2.dll"
> AddType application/x-httpd-php .php > (note: in LoadModule the first parameter is "php5_module" NOT "php4_module". The second parameter is the path to the unziped PHP if you unzip the php in C:\Program Files\php\ you have to quotes the path like in the example above.)

> 4. Try "C:\Program Files\Apache Group\Apache2\bin>apache -k config" if it not output errors just type "C:\Program Files\Apache Group\Apache2\bin>apache -k start"

> 5. Enjoy! :)
> hope i helped :)
> ----
> Manual Page -- http://www.php.net/manual/en/install.apache2.php > Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33546
> Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33546&report=yes
> Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33546&report=yes


From: aaron@no-spam (Aaron)
Subject: Re: note 33546 added to install.apache2
Date: 1 Jul 2003 10:27:35 -0700

Turns out that running PHP from the command line also yielded problems:

php.exe - Unable To Locate Component This application has failed to start because iconv.dll was not found.
Re-installing the application may fix this problem.

Copying iconv.dll to the root of my PHP dir solved the problem. I also topped it off with the latest snapshot as well, and am now successfully running 5.0.0b2-dev with Apache 2.0.46.

I hope this helps someone, as trying to solve this problem was starting to get a bit frustrating.

Aaron
aaron@no-spam (Aaron) wrote in message news:<d4a23858.0306301134.38596a33@no-spam>...

> I've tried these steps exactly, and I get the ever present/famous:
> > Syntax error on line 173 of D:/Apache2/conf/httpd.conf:
> Cannot load D:/php/sapi/php4apache2.dll into server: The specified > module could > not be found.
> > And yet...
> > Directory of D:\php\sapi\php4apache2.dll > 6/28/2003 0:38 28,672 php4apache2.dll > > This was a squeaky clean install of Apache 2.0.46 and > php-5.0.0.b1-Win32.zip. On another machine with Apache 2.0.46 and php > 4.3.0 (working nicely) has the same problem when moving to 5.0b1.
> Going back to 4.3.0 works fine again.
> > Ideas?
> > Aaron > > mapuo@no-spam wrote in message news:<note-33546@no-spam>...
> > Apache 2.0.46 + php-5.0.0b1-Win32.zip on Windows XP SP1
> > Works just fine... i think i have to tweak it just a little in php.ini :)
> > 1. Install Apache 2.0.46
> > 2. Unzip php-5.0.0b1-Win32.zip to C:\php or C:\Program Files\php\ (or whatever)

> > 3. In httpd.conf add this lines > > LoadModule php5_module "C:/Program Files/php/sapi/php4apache2.dll"
> > AddType application/x-httpd-php .php > > (note: in LoadModule the first parameter is "php5_module" NOT "php4_module". The second parameter is the path to the unziped PHP if you unzip the php in C:\Program Files\php\ you have to quotes the path like in the example above.)

> > 4. Try "C:\Program Files\Apache Group\Apache2\bin>apache -k config" if it not output errors just type "C:\Program Files\Apache Group\Apache2\bin>apache -k start"

> > 5. Enjoy! :)
> > hope i helped :)
> > ----
> > Manual Page -- http://www.php.net/manual/en/install.apache2.php > > Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33546

> > Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33546&report=yes
> > Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33546&report=yes


Date: 29 Nov 2003 12:30:54 -0000
Subject: note 33546 deleted from install.apache2 by sniper
From: sniper@no-spam

Note Submitter: mapuo@no-spam
----

Apache 2.0.46 + php-5.0.0b1-Win32.zip on Windows XP SP1
Works just fine... i think i have to tweak it just a little in php.ini :)
1. Install Apache 2.0.46
2. Unzip php-5.0.0b1-Win32.zip to C:\php or C:\Program Files\php\ (or whatever)
3. In httpd.conf add this lines LoadModule php5_module "C:/Program Files/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php (note: in LoadModule the first parameter is "php5_module" NOT "php4_module". The second parameter is the path to the unziped PHP if you unzip the php in C:\Program Files\php\ you have to quotes the path like in the example above.)

4. Try "C:\Program Files\Apache Group\Apache2\bin>apache -k config" if it not output errors just type "C:\Program Files\Apache Group\Apache2\bin>apache -k start"

5. Enjoy! :)
hope i helped :)