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 -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Apache 2.2 and PHP 5.2 Instalation issues
Author
ibba



Joined: 25 Jun 2006
Posts: 3

PostPosted: Thu 29 Jun '06 12:05    Post subject: Apache 2.2 and PHP 5.2 Instalation issues Reply with quote

Guys,

I have got Apache 2.2 to run with PHP 5.2 with the following

LoadModule php5_module "J:/Experiments/php2/php5apache2_2.dll"
AddType application/x-httpd-php. php
PHPIniDir "J:/Experiments/php2"
LoadFile J:/Experiments/php2/php5ts.dll

Apache starts smoothly, but when i come to running a test Php file, insted of Exicuting the php file the brower goes into download mode, and tries to down load the file the file assosicatoin seem to have issue or i am not sure.

I am quite a newbee for this please advice. wondring if i have to make changes to IIS or some thing link that.

Unlike other people i dont have problems for Apache to run, coz i read up that with Apache 5.2 you will need PHP 2.2 or newer hence i have PHP 2.2.2[/code]
Back to top
ibba



Joined: 25 Jun 2006
Posts: 3

PostPosted: Thu 29 Jun '06 12:18    Post subject: WOrks works Reply with quote

with the following lines on the confi for Apache it works Smile

LoadModule php5_module "J:/Experiments/php2/php5apache2_2.dll"
AddType application/x-httpd-php. php
PHPIniDir "J:/Experiments/php2"
LoadFile J:/Experiments/php2/php5ts.dll
AddHandler application/x-httpd-php .php
Back to top
jessica99



Joined: 09 Dec 2006
Posts: 1

PostPosted: Sat 09 Dec '06 16:29    Post subject: the same problem Reply with quote

hello, i've got the same problem as you, but your tips does't work. i have apache 2.2.3 and php 5.2. apache works fine but when i've installed php and want to open the test php file but when i come to running a test Php file, insted of Exicuting the php file the brower goes into download mode, and tries to download this file.
LoadModule php5_module "C:/Apache2.2/php/php5apache2_2.dll"
Loadfile C:/Apache2.2/php/php5ts.dll
PHPIniDir "C:/Apache2.2/php"
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sat 09 Dec '06 17:31    Post subject: Reply with quote

you forgot to assosiate the php files

AddType application/x-httpd-php. php
Back to top
piccoloelle



Joined: 22 Jan 2007
Posts: 2

PostPosted: Mon 22 Jan '07 17:10    Post subject: Reply with quote

Hi! I've the same problem:

The self installer don't work on the httpd.conf.

If I write

LoadModule php5_module "C:/Program Files/Php/php5apache2_2.dll"
AddType application/x-httpd-php. php
PHPIniDir "C:/Program Files/Php/"
LoadFile C:/Program Files/Php/php5ts.dll
AddHandler application/x-httpd-php .php

error.log say:

[Mon Jan 22 15:41:19 2007] [warn] (OS 995)The I/O operation has been aborted because of either a thread exit or an application request. : winnt_accept: Asynchronous AcceptEx failed.

if I don't write LoadFile C:/Program Files/Php/php5ts.dll
Apache start well but php dont' work

(black page and if U look the souce code with IE show de code php


Win NT server service pack 6
Apache 2.2
PHP 5.2
Back to top
piccoloelle



Joined: 22 Jan 2007
Posts: 2

PostPosted: Mon 22 Jan '07 17:35    Post subject: Reply with quote

I'm sorry

LoadFile "C:/Program Files/Php/php5ts.dll"

the server start proprely but always blank page for prova.php

<? echo "ciao"; ?>

Question
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 22 Jan '07 18:19    Post subject: Reply with quote

Quote:

[Mon Jan 22 15:41:19 2007] [warn] (OS 995)The I/O operation has been aborted because of either a thread exit or an application request. : winnt_accept: Asynchronous AcceptEx failed.


Add Win32DisableAcceptEx to httpd.conf

For your second error you maybe should enable short tags
short_open_tag = On
Back to top


Reply to topic   Topic: Apache 2.2 and PHP 5.2 Instalation issues View previous topic :: View next topic
Post new topic   Forum Index -> Other Software