Connecting Tech Pros Worldwide Help | Site Map

Installing PHP on Apache problem

snapcount@gmail.com
Guest
 
Posts: n/a
#1: Jun 14 '06
Hi,


I downloaded PHP 5.1.4 and Apache 2.2.2 and tried to install on Windows
XP.

Apache works ok, but when I try to restart it with PHP enabled, I get
this message:
Syntax error on line 115 of httpd.conf: Cannot load
C:/PHP/php5apache2.dll into server: The specified module could not be
found.

However, there is a php5apache2.dll in C:\PHP (although it's forward
slashes in httpd.conf).

So what's the deal? I've installed PHP on Apache maybe ten times and I
never had any problems until now.

snapcount@gmail.com
Guest
 
Posts: n/a
#2: Jun 14 '06

re: Installing PHP on Apache problem


Just found the explanation in an older topic.

I suppose it's time for a hysteric tirade. Hrrrhm...

DAMN THE 28 YEAR OLD LONG HAIRED VIRGIN PIMPLY PROGRAMMER DORKS WHO
COMPLICATE THINGS!!!! GET LAID ALREADY! MICROSOFT SHOULD CLOSE THE
APACHE FOUNDATION DOWN AND LOBBY CONGRESS TO BAN APACHE AND PHP AND TO
ALLOW ONLY IIS+ASP.NET!

I feel better, honestly! :)


snapco...@gmail.com wrote:[color=blue]
> Hi,
>
>
> I downloaded PHP 5.1.4 and Apache 2.2.2 and tried to install on Windows
> XP.
>
> Apache works ok, but when I try to restart it with PHP enabled, I get
> this message:
> Syntax error on line 115 of httpd.conf: Cannot load
> C:/PHP/php5apache2.dll into server: The specified module could not be
> found.
>
> However, there is a php5apache2.dll in C:\PHP (although it's forward
> slashes in httpd.conf).
>
> So what's the deal? I've installed PHP on Apache maybe ten times and I
> never had any problems until now.[/color]

Erwin Moller
Guest
 
Posts: n/a
#3: Jun 14 '06

re: Installing PHP on Apache problem


snapcount@gmail.com wrote:
[color=blue]
> Just found the explanation in an older topic.
>
> I suppose it's time for a hysteric tirade. Hrrrhm...
>
> DAMN THE 28 YEAR OLD LONG HAIRED VIRGIN PIMPLY PROGRAMMER DORKS WHO
> COMPLICATE THINGS!!!! GET LAID ALREADY! MICROSOFT SHOULD CLOSE THE
> APACHE FOUNDATION DOWN AND LOBBY CONGRESS TO BAN APACHE AND PHP AND TO
> ALLOW ONLY IIS+ASP.NET![/color]

Hee!
Be nice to me!
And I cut my hairs last week!

No, I WISH I coded Apache.
;-)

Seriously, your posting would make more sense if you described what went
wrong and how you solved it. Or a link to the place where it is described.

Regards,
Erwin Moller
snapcount@gmail.com
Guest
 
Posts: n/a
#4: Jun 14 '06

re: Installing PHP on Apache problem


Erwin Moller wrote:[color=blue]
> Seriously, your posting would make more sense if you described what went
> wrong and how you solved it. Or a link to the place where it is described.[/color]


Ok, the thing is latest Apache 2.2.2 doesn't support existing PHP5
versions. You're supposed to build something or whatever, but obviously
it can't be done by people who have sex regularly.

Anyway, if you want to use PHP, use it with the previous Apache version
(2.0.58).

Ken Hood
Guest
 
Posts: n/a
#5: Jun 15 '06

re: Installing PHP on Apache problem



<snapcount@gmail.com> wrote in message
news:1150294895.588500.273080@y41g2000cwy.googlegr oups.com...[color=blue]
> Just found the explanation in an older topic.
>
> I suppose it's time for a hysteric tirade. Hrrrhm...
>
> DAMN THE 28 YEAR OLD LONG HAIRED VIRGIN PIMPLY PROGRAMMER DORKS WHO
> COMPLICATE THINGS!!!! GET LAID ALREADY! MICROSOFT SHOULD CLOSE THE
> APACHE FOUNDATION DOWN AND LOBBY CONGRESS TO BAN APACHE AND PHP AND TO
> ALLOW ONLY IIS+ASP.NET!
>
> I feel better, honestly! :)
>
>
> snapco...@gmail.com wrote:[color=green]
>> Hi,
>>
>>
>> I downloaded PHP 5.1.4 and Apache 2.2.2 and tried to install on Windows
>> XP.
>>
>> Apache works ok, but when I try to restart it with PHP enabled, I get
>> this message:
>> Syntax error on line 115 of httpd.conf: Cannot load
>> C:/PHP/php5apache2.dll into server: The specified module could not be
>> found.
>>
>> However, there is a php5apache2.dll in C:\PHP (although it's forward
>> slashes in httpd.conf).
>>
>> So what's the deal? I've installed PHP on Apache maybe ten times and I
>> never had any problems until now.[/color]
>[/color]
I had similar problem ; your solution may lie in getting the updated
php5apache2.dll courtesy of Steffan at http://www.apachelounge.com/download/
My installation of PHP5.1.4 and Apache2.2.2 on XP Pro SP2 runs quite happily
now.


Newbie
 
Join Date: Jun 2006
Posts: 2
#6: Jun 16 '06

re: Installing PHP on Apache problem


Quote:

Originally Posted by Ken Hood

I had similar problem ; your solution may lie in getting the updated
php5apache2.dll courtesy of Steffan at http://www.apachelounge.com/download/
My installation of PHP5.1.4 and Apache2.2.2 on XP Pro SP2 runs quite happily
now.

I've got this problem also; my copy of php5apache2.dll is datestamped Thursday, May 04, 2006, 11:14:00 AM. The url you give is not working.

I can't get php to run in Apache. If I try it as a module with the following in httpd.conf:

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"

then Apache won't start.

If I try it as a CGI with

ScriptAlias php "C:/php/"
Action application/x-httpd-php "/php-cgi.exe"
AddType application/x-httpd-php .php

Then I get various errors, depending on which of the three lines I enable. I followed (I think) the install directions closely, but I must be missing something. If you got it to work, what did you do?
Newbie
 
Join Date: Jun 2006
Posts: 2
#7: Jun 16 '06

re: Installing PHP on Apache problem


Quote:

Originally Posted by rybrns

I've got this problem also; my copy of php5apache2.dll is datestamped Thursday, May 04, 2006, 11:14:00 AM. The url you give is not working....

Tried the url today and it was up. I was able to get the files and instructions and SUCCESS! It finally works. And PHP is even running as a module! Thanks!
Closed Thread