Author |
|
ibba
Joined: 25 Jun 2006 Posts: 3
|
Posted: Thu 29 Jun '06 12:05 Post subject: Apache 2.2 and PHP 5.2 Instalation issues |
|
|
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
|
Posted: Thu 29 Jun '06 12:18 Post subject: WOrks works |
|
|
with the following lines on the confi for Apache it works
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
|
Posted: Sat 09 Dec '06 16:29 Post subject: the same problem |
|
|
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
|
Posted: Sat 09 Dec '06 17:31 Post subject: |
|
|
you forgot to assosiate the php files
AddType application/x-httpd-php. php |
|
Back to top |
|
piccoloelle
Joined: 22 Jan 2007 Posts: 2
|
Posted: Mon 22 Jan '07 17:10 Post subject: |
|
|
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
|
Posted: Mon 22 Jan '07 17:35 Post subject: |
|
|
I'm sorry
LoadFile "C:/Program Files/Php/php5ts.dll"
the server start proprely but always blank page for prova.php
<? echo "ciao"; ?>
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 22 Jan '07 18:19 Post subject: |
|
|
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 |
|