logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: Problem installing PHP 5.4.4 on Apache 2.4.2 in WinXP SP3
Author
hlfernandez



Joined: 22 Jul 2012
Posts: 4
Location: Spain, Ourense

PostPosted: Sun 22 Jul '12 22:14    Post subject: Problem installing PHP 5.4.4 on Apache 2.4.2 in WinXP SP3 Reply with quote

Hello,

I am trying to install PHP 5.4.4 with Apache 2.4.2. To do that, I follow this steps. First, I install Microsoft Visual C++ 2010 SP1 Redistributable Package (x86).

Then I download:
- Apache 2.4.2: httpd-2.4.2-win32.zip
- php-5.4.4-Win32-VC9-x86.zip from http://windows.php.net/downloads/releases/archives/
- And finally: php5apache2_4.dll-php-5.4-win32.zip

And I extract them to:
- C:/Apache24
- C:/php

From php5apache2_4.dll-php-5.4-win32.zip I copy the file php5apache2_4.dll from directory PHP 5.4.4 to C:/php.

I put \;C\php;C:\Apache24\bin in the PATH. Now Apache works.

In order to install php 5.4 I add the following lines to httpd.conf:

LoadModule php5_module "C:/php/php5apache2_4.dll"
AddHandler application/x-httpd-php .php
PHPIniDir "C:/php"

Well, mi problem is that this installation does not work on a Windows XP SP3 since the Apache server does not start.

However, doing exactly the same installation on a Windows 7 I got PHP 5.4.4 succesfully installed and the Apache server starts.

This is the error in Windows XP when starting the Apache:

C:\Documents and Settings\alumno>httpd
httpd: Syntax error on line 515 of C:/Apache24/conf/httpd.conf: Cannot load C:/p
hp/php5apache2_4.dll into server: No se pudo iniciar la aplicación porque su
configuración es incorrecta. Reinstalar la aplicación puede solucionar el
problema.

Do you have any idea? I hope you can help me.

Regards,

Hugo.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Sun 22 Jul '12 22:39    Post subject: Reply with quote

Did you also installed the Microsoft 2008 C++ Runtime (x86) ?


Needed with XP for php from http://windows.php.net/download/ , the link for the VC9 runtime is there at the left column.


Steffen
Back to top
hlfernandez



Joined: 22 Jul 2012
Posts: 4
Location: Spain, Ourense

PostPosted: Mon 23 Jul '12 21:15    Post subject: Reply with quote

Hi Steffen,

Thank you very much! I Installed the Microsoft 2008 C++ Runtime (x86) on XP and now it works.

However, I find it curious that having installed Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) on XP it doesn't work.

Regards,

Hugo.
Back to top


Reply to topic   Topic: Problem installing PHP 5.4.4 on Apache 2.4.2 in WinXP SP3 View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules