PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > configuring PHP5 for Apache 2.2.4 for Windoze XP
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

configuring PHP5 for Apache 2.2.4 for Windoze XP

Réponse
 
LinkBack Outils de la discussion
Vieux 08/02/2007, 23h17   #1
Rob
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut configuring PHP5 for Apache 2.2.4 for Windoze XP

Loaded Apache 2.2.4 & got it running OK; loaded PHP 5, then tried to
configure it thus:

I went to the "httpd.conf" file, and added:

# For PHP 5 do something like this:
LoadModule php5_module "C:\Program Files\PHP
\php5apache2_2_4.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:\Program Files\PHP"

and then ran "<?php phpinfo(); ?>" script. It ran (correctly) in
my browser, but then an error message came up, shutting down apache. I
turned apache back on; the same thing happened again-- but this time,
when I tried to turn it back on, an error message came up, telling me
the operation couldn't be performed (wouldn't run apache). I restarted
my computer; Apache wouldn't start again (same error message).

I removed the added lines from the "httpd.conf" file, and restarted
everything. Everything ran fine; but when I re-added the "LoadModule
php5_module..." code, it wouldn't start apache. What's going on? And
what do I do now?

  Réponse avec citation
Vieux 09/02/2007, 02h30   #2
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: configuring PHP5 for Apache 2.2.4 for Windoze XP

On 8 Feb, 23:17, "Rob" <rfhur...@yahoo.com> wrote:
> Loaded Apache 2.2.4 & got it running OK; loaded PHP 5, then tried to
> configure it thus:
>
> I went to the "httpd.conf" file, and added:
>
> # For PHP 5 do something like this:
> LoadModule php5_module "C:\Program Files\PHP
> \php5apache2_2_4.dll"
> AddType application/x-httpd-php .php
>
> # configure the path to php.ini
> PHPIniDir "C:\Program Files\PHP"
>
> and then ran "<?php phpinfo(); ?>" script. It ran (correctly) in
> my browser, but then an error message came up, shutting down apache. I
> turned apache back on; the same thing happened again-- but this time,
> when I tried to turn it back on, an error message came up, telling me
> the operation couldn't be performed (wouldn't run apache). I restarted
> my computer; Apache wouldn't start again (same error message).
>
> I removed the added lines from the "httpd.conf" file, and restarted
> everything. Everything ran fine; but when I re-added the "LoadModule
> php5_module..." code, it wouldn't start apache. What's going on? And
> what do I do now?


all path slashes in httpd.conf should point forward (as in apache
docs) try that and see if it s.
do you have this line?

AddType application/x-httpd-php .php .php5 .htm
use a space separated series of file extensions you wish to be parsed
by php interpreter

  Réponse avec citation
Vieux 09/02/2007, 03h39   #3
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: configuring PHP5 for Apache 2.2.4 for Windoze XP

On 9 Feb, 02:30, "shimmyshack" <matt.fa...@gmail.com> wrote:
> On 8 Feb, 23:17, "Rob" <rfhur...@yahoo.com> wrote:
>
>
>
> > Loaded Apache 2.2.4 & got it running OK; loaded PHP 5, then tried to
> > configure it thus:

>
> > I went to the "httpd.conf" file, and added:

>
> > # For PHP 5 do something like this:
> > LoadModule php5_module "C:\Program Files\PHP
> > \php5apache2_2_4.dll"
> > AddType application/x-httpd-php .php

>
> > # configure the path to php.ini
> > PHPIniDir "C:\Program Files\PHP"

>
> > and then ran "<?php phpinfo(); ?>" script. It ran (correctly) in
> > my browser, but then an error message came up, shutting down apache. I
> > turned apache back on; the same thing happened again-- but this time,
> > when I tried to turn it back on, an error message came up, telling me
> > the operation couldn't be performed (wouldn't run apache). I restarted
> > my computer; Apache wouldn't start again (same error message).

>
> > I removed the added lines from the "httpd.conf" file, and restarted
> > everything. Everything ran fine; but when I re-added the "LoadModule
> > php5_module..." code, it wouldn't start apache. What's going on? And
> > what do I do now?

>
> all path slashes in httpd.conf should point forward (as in apache
> docs) try that and see if it s.
> do you have this line?
>
> AddType application/x-httpd-php .php .php5 .htm
> use a space separated series of file extensions you wish to be parsed
> by php interpreter


i think my last post was daft, although you should change the paths.
What could be happening is that you havent set up the php.ini
properly, so that as a particular modeul gets called into play byt the
particular part of the phpinfo call, the process crashes, do you have
any errors in the error.log which would throw light on this, also
check the phperror.log if different, and have you indeed changed or
looked at the php.ini config file since placing the php5_module line
in your httpd.conf?

  Réponse avec citation
Vieux 09/02/2007, 05h39   #4
Rob
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: configuring PHP5 for Apache 2.2.4 for Windoze XP

On Feb 8, 7:39 pm, "shimmyshack" <matt.fa...@gmail.com> wrote:
> On 9 Feb, 02:30, "shimmyshack" <matt.fa...@gmail.com> wrote:
>
>
>
> > On 8 Feb, 23:17, "Rob" <rfhur...@yahoo.com> wrote:

>
> > > Loaded Apache 2.2.4 & got it running OK; loaded PHP 5, then tried to
> > > configure it thus:

>
> > > I went to the "httpd.conf" file, and added:

>
> > > # For PHP 5 do something like this:
> > > LoadModule php5_module "C:\Program Files\PHP
> > > \php5apache2_2_4.dll"
> > > AddType application/x-httpd-php .php

>
> > > # configure the path to php.ini
> > > PHPIniDir "C:\Program Files\PHP"

>
> > > and then ran "<?php phpinfo(); ?>" script. It ran (correctly) in
> > > my browser, but then an error message came up, shutting down apache. I
> > > turned apache back on; the same thing happened again-- but this time,
> > > when I tried to turn it back on, an error message came up, telling me
> > > the operation couldn't be performed (wouldn't run apache). I restarted
> > > my computer; Apache wouldn't start again (same error message).

>
> > > I removed the added lines from the "httpd.conf" file, and restarted
> > > everything. Everything ran fine; but when I re-added the "LoadModule
> > > php5_module..." code, it wouldn't start apache. What's going on? And
> > > what do I do now?

>
> > all path slashes in httpd.conf should point forward (as in apache
> > docs) try that and see if it s.
> > do you have this line?

>
> > AddType application/x-httpd-php .php .php5 .htm
> > use a space separated series of file extensions you wish to be parsed
> > by php interpreter

>
> i think my last post was daft, although you should change the paths.
> What could be happening is that you havent set up the php.ini
> properly, so that as a particular modeul gets called into play byt the
> particular part of the phpinfo call, the process crashes, do you have
> any errors in the error.log which would throw light on this, also
> check the phperror.log if different, and have you indeed changed or
> looked at the php.ini config file since placing the php5_module line
> in your httpd.conf?


I tried changing the path: the results were the same. Also, I'm using
Windoze, so the directory path uses back-slashes. If you wouldn't
mind, I could send you a copy of the log file (as a .txt file).
Anyway, thanks again.

Rob

  Réponse avec citation
Vieux 09/02/2007, 09h55   #5
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: configuring PHP5 for Apache 2.2.4 for Windoze XP

On 9 Feb, 05:39, "Rob" <rfhur...@yahoo.com> wrote:
> On Feb 8, 7:39 pm, "shimmyshack" <matt.fa...@gmail.com> wrote:
>
>
>
> > On 9 Feb, 02:30, "shimmyshack" <matt.fa...@gmail.com> wrote:

>
> > > On 8 Feb, 23:17, "Rob" <rfhur...@yahoo.com> wrote:

>
> > > > Loaded Apache 2.2.4 & got it running OK; loaded PHP 5, then tried to
> > > > configure it thus:

>
> > > > I went to the "httpd.conf" file, and added:

>
> > > > # For PHP 5 do something like this:
> > > > LoadModule php5_module "C:\Program Files\PHP
> > > > \php5apache2_2_4.dll"
> > > > AddType application/x-httpd-php .php

>
> > > > # configure the path to php.ini
> > > > PHPIniDir "C:\Program Files\PHP"

>
> > > > and then ran "<?php phpinfo(); ?>" script. It ran (correctly) in
> > > > my browser, but then an error message came up, shutting down apache. I
> > > > turned apache back on; the same thing happened again-- but this time,
> > > > when I tried to turn it back on, an error message came up, telling me
> > > > the operation couldn't be performed (wouldn't run apache). I restarted
> > > > my computer; Apache wouldn't start again (same error message).

>
> > > > I removed the added lines from the "httpd.conf" file, and restarted
> > > > everything. Everything ran fine; but when I re-added the "LoadModule
> > > > php5_module..." code, it wouldn't start apache. What's going on? And
> > > > what do I do now?

>
> > > all path slashes in httpd.conf should point forward (as in apache
> > > docs) try that and see if it s.
> > > do you have this line?

>
> > > AddType application/x-httpd-php .php .php5 .htm
> > > use a space separated series of file extensions you wish to be parsed
> > > by php interpreter

>
> > i think my last post was daft, although you should change the paths.
> > What could be happening is that you havent set up the php.ini
> > properly, so that as a particular modeul gets called into play byt the
> > particular part of the phpinfo call, the process crashes, do you have
> > any errors in the error.log which would throw light on this, also
> > check the phperror.log if different, and have you indeed changed or
> > looked at the php.ini config file since placing the php5_module line
> > in your httpd.conf?

>
> I tried changing the path: the results were the same. Also, I'm using
> Windoze, so the directory path uses back-slashes. If you wouldn't
> mind, I could send you a copy of the log file (as a .txt file).
> Anyway, thanks again.
>
> Rob


if the php.ini file has show errors on start up enabled, you might see
more also the
start->run-> eventvwr
might have more details, including line numbers and reasons
shut down Apache, take a quick look at the clock and then start it up
and browse to the phpinfo() script, and post the relevant lines from
the error.log here. That way we can all learn.

even though windows does use backslashes, all the paths in the apache
confs should be forward slashes - honest - its in the docs (in the
red box)
http://httpd.apache.org/docs/2.2/mod...html#customlog

I haven't had any problems with 2.2.4 on windows, so it should be
solvable (in theory)

  Réponse avec citation
Vieux 09/02/2007, 16h09   #6
Rob
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: configuring PHP5 for Apache 2.2.4 for Windoze XP

On Feb 9, 1:55 am, "shimmyshack" <matt.fa...@gmail.com> wrote:
> On 9 Feb, 05:39, "Rob" <rfhur...@yahoo.com> wrote:
>
>
>
> > On Feb 8, 7:39 pm, "shimmyshack" <matt.fa...@gmail.com> wrote:

>
> > > On 9 Feb, 02:30, "shimmyshack" <matt.fa...@gmail.com> wrote:

>
> > > > On 8 Feb, 23:17, "Rob" <rfhur...@yahoo.com> wrote:

>
> > > > > Loaded Apache 2.2.4 & got it running OK; loaded PHP 5, then tried to
> > > > > configure it thus:

>
> > > > > I went to the "httpd.conf" file, and added:

>
> > > > > # For PHP 5 do something like this:
> > > > > LoadModule php5_module "C:\Program Files\PHP
> > > > > \php5apache2_2_4.dll"
> > > > > AddType application/x-httpd-php .php

>
> > > > > # configure the path to php.ini
> > > > > PHPIniDir "C:\Program Files\PHP"

>
> > > > > and then ran "<?php phpinfo(); ?>" script. It ran (correctly) in
> > > > > my browser, but then an error message came up, shutting down apache. I
> > > > > turned apache back on; the same thing happened again-- but this time,
> > > > > when I tried to turn it back on, an error message came up, telling me
> > > > > the operation couldn't be performed (wouldn't run apache). I restarted
> > > > > my computer; Apache wouldn't start again (same error message).

>
> > > > > I removed the added lines from the "httpd.conf" file, and restarted
> > > > > everything. Everything ran fine; but when I re-added the "LoadModule
> > > > > php5_module..." code, it wouldn't start apache. What's going on? And
> > > > > what do I do now?

>
> > > > all path slashes in httpd.conf should point forward (as in apache
> > > > docs) try that and see if it s.
> > > > do you have this line?

>
> > > > AddType application/x-httpd-php .php .php5 .htm
> > > > use a space separated series of file extensions you wish to be parsed
> > > > by php interpreter

>
> > > i think my last post was daft, although you should change the paths.
> > > What could be happening is that you havent set up the php.ini
> > > properly, so that as a particular modeul gets called into play byt the
> > > particular part of the phpinfo call, the process crashes, do you have
> > > any errors in the error.log which would throw light on this, also
> > > check the phperror.log if different, and have you indeed changed or
> > > looked at the php.ini config file since placing the php5_module line
> > > in your httpd.conf?

>
> > I tried changing the path: the results were the same. Also, I'm using
> > Windoze, so the directory path uses back-slashes. If you wouldn't
> > mind, I could send you a copy of the log file (as a .txt file).
> > Anyway, thanks again.

>
> > Rob

>
> if the php.ini file has show errors on start up enabled, you might see
> more also the
> start->run-> eventvwr
> might have more details, including line numbers and reasons
> shut down Apache, take a quick look at the clock and then start it up
> and browse to the phpinfo() script, and post the relevant lines from
> the error.log here. That way we can all learn.
>
> even though windows does use backslashes, all the paths in the apache
> confs should be forward slashes - honest - its in the docs (in the
> red box) http://httpd.apache.org/docs/2.2/mod...html#customlog
>
> I haven't had any problems with 2.2.4 on windows, so it should be
> solvable (in theory)



OK. Here goes... (I have no idea what the following means):


Faulting application httpd.exe, version 2.2.4.0, faulting module
unknown, version 0.0.0.0, fault address 0x01a12dc0.

For more information, see and Support Center at http://
go.microsoft.com/fwlink/events.asp.

Event Type: Error
Event Source: Application Error
Event Category: (100)
Event ID: 1000
Date: 2/9/2007
Time: 7:56:53 AM
User: N/A
Computer: ROBERT
Description:
Faulting application httpd.exe, version 2.2.4.0, faulting module
unknown, version 0.0.0.0, fault address 0x01a12dc0.

For more information, see and Support Center at http://
go.microsoft.com/fwlink/events.asp.

Data: Bytes
0000: 41 70 70 6c 69 63 61 74 Applicat
0008: 69 6f 6e 20 46 61 69 6c ion Fail
0010: 75 72 65 20 20 68 74 74 ure htt
0018: 70 64 2e 65 78 65 20 32 pd.exe 2
0020: 2e 32 2e 34 2e 30 20 69 .2.4.0 i
0028: 6e 20 75 6e 6b 6e 6f 77 n unknow
0030: 6e 20 30 2e 30 2e 30 2e n 0.0.0.
0038: 30 20 61 74 20 6f 66 66 0 at off
0040: 73 65 74 20 30 31 61 31 set 01a1
0048: 32 64 63 30 2dc0

Data: Words
0000: 6c707041 74616369 206e6f69 6c696146
0010: 20657275 74746820 652e6470 32206578
0020: 342e322e 6920302e 6e75206e 776f6e6b
0030: 2e30206e 2e302e30 74612030 66666f20
0040: 20746573 31613130 30636432

  Réponse avec citation
Vieux 09/02/2007, 20h54   #7
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: configuring PHP5 for Apache 2.2.4 for Windoze XP

On 9 Feb, 16:09, "Rob" <rfhur...@yahoo.com> wrote:
> On Feb 9, 1:55 am, "shimmyshack" <matt.fa...@gmail.com> wrote:
>
>
>
> > On 9 Feb, 05:39, "Rob" <rfhur...@yahoo.com> wrote:

>
> > > On Feb 8, 7:39 pm, "shimmyshack" <matt.fa...@gmail.com> wrote:

>
> > > > On 9 Feb, 02:30, "shimmyshack" <matt.fa...@gmail.com> wrote:

>
> > > > > On 8 Feb, 23:17, "Rob" <rfhur...@yahoo.com> wrote:

>
> > > > > > Loaded Apache 2.2.4 & got it running OK; loaded PHP 5, then tried to
> > > > > > configure it thus:

>
> > > > > > I went to the "httpd.conf" file, and added:

>
> > > > > > # For PHP 5 do something like this:
> > > > > > LoadModule php5_module "C:\Program Files\PHP
> > > > > > \php5apache2_2_4.dll"
> > > > > > AddType application/x-httpd-php .php

>
> > > > > > # configure the path to php.ini
> > > > > > PHPIniDir "C:\Program Files\PHP"

>
> > > > > > and then ran "<?php phpinfo(); ?>" script. It ran (correctly) in
> > > > > > my browser, but then an error message came up, shutting down apache. I
> > > > > > turned apache back on; the same thing happened again-- but this time,
> > > > > > when I tried to turn it back on, an error message came up, telling me
> > > > > > the operation couldn't be performed (wouldn't run apache). I restarted
> > > > > > my computer; Apache wouldn't start again (same error message).

>
> > > > > > I removed the added lines from the "httpd.conf" file, and restarted
> > > > > > everything. Everything ran fine; but when I re-added the "LoadModule
> > > > > > php5_module..." code, it wouldn't start apache. What's going on? And
> > > > > > what do I do now?

>
> > > > > all path slashes in httpd.conf should point forward (as in apache
> > > > > docs) try that and see if it s.
> > > > > do you have this line?

>
> > > > > AddType application/x-httpd-php .php .php5 .htm
> > > > > use a space separated series of file extensions you wish to be parsed
> > > > > by php interpreter

>
> > > > i think my last post was daft, although you should change the paths.
> > > > What could be happening is that you havent set up the php.ini
> > > > properly, so that as a particular modeul gets called into play byt the
> > > > particular part of the phpinfo call, the process crashes, do you have
> > > > any errors in the error.log which would throw light on this, also
> > > > check the phperror.log if different, and have you indeed changed or
> > > > looked at the php.ini config file since placing the php5_module line
> > > > in your httpd.conf?

>
> > > I tried changing the path: the results were the same. Also, I'm using
> > > Windoze, so the directory path uses back-slashes. If you wouldn't
> > > mind, I could send you a copy of the log file (as a .txt file).
> > > Anyway, thanks again.

>
> > > Rob

>
> > if the php.ini file has show errors on start up enabled, you might see
> > more also the
> > start->run-> eventvwr
> > might have more details, including line numbers and reasons
> > shut down Apache, take a quick look at the clock and then start it up
> > and browse to the phpinfo() script, and post the relevant lines from
> > the error.log here. That way we can all learn.

>
> > even though windows does use backslashes, all the paths in the apache
> > confs should be forward slashes - honest - its in the docs (in the
> > red box) http://httpd.apache.org/docs/2.2/mod...html#customlog

>
> > I haven't had any problems with 2.2.4 on windows, so it should be
> > solvable (in theory)

>
> OK. Here goes... (I have no idea what the following means):
>
> Faulting application httpd.exe, version 2.2.4.0, faulting module
> unknown, version 0.0.0.0, fault address 0x01a12dc0.
>
> For more information, see and Support Center at http://
> go.microsoft.com/fwlink/events.asp.
>
> Event Type: Error
> Event Source: Application Error
> Event Category: (100)
> Event ID: 1000
> Date: 2/9/2007
> Time: 7:56:53 AM
> User: N/A
> Computer: ROBERT
> Description:
> Faulting application httpd.exe, version 2.2.4.0, faulting module
> unknown, version 0.0.0.0, fault address 0x01a12dc0.
>
> For more information, see and Support Center at http://
> go.microsoft.com/fwlink/events.asp.
>
> Data: Bytes
> 0000: 41 70 70 6c 69 63 61 74 Applicat
> 0008: 69 6f 6e 20 46 61 69 6c ion Fail
> 0010: 75 72 65 20 20 68 74 74 ure htt
> 0018: 70 64 2e 65 78 65 20 32 pd.exe 2
> 0020: 2e 32 2e 34 2e 30 20 69 .2.4.0 i
> 0028: 6e 20 75 6e 6b 6e 6f 77 n unknow
> 0030: 6e 20 30 2e 30 2e 30 2e n 0.0.0.
> 0038: 30 20 61 74 20 6f 66 66 0 at off
> 0040: 73 65 74 20 30 31 61 31 set 01a1
> 0048: 32 64 63 30 2dc0
>
> Data: Words
> 0000: 6c707041 74616369 206e6f69 6c696146
> 0010: 20657275 74746820 652e6470 32206578
> 0020: 342e322e 6920302e 6e75206e 776f6e6b
> 0030: 2e30206e 2e302e30 74612030 66666f20
> 0040: 20746573 31613130 30636432



hmm the faulting modeul "unknown" part is annoying
this means that one of the modules which you have loaded is faulting.
Now it could be php, however it might not be.
My advice is this:
get yourself off to the good folks at apachelounge at grab their copy
of apache2.2.4 and the php5 module for apache2.2.x
its better than the one from apache because its built with VS2005.NET
so its a little more in tune with windows.
the apache binary you need is this one.

httpd-2.2.4-win32-x86-ssl.zip

and the php5 apache 2.2.x handler is this one.
php5apache2.dll-php5.1.x.zip 24 Aug '06 14K
apache2handler for Apache 2.2.x and PHP 5.1.0-5.1.6


you should be able to straight copy over the top, but like a good boy
scout always have a backup plan.

I thoroughly recommend their binaries, have used them myself without
problems.

If this solves your problems then chalk it up and stick to the
releases on the apache lounge site, he are always prompt with his
builds.

  Réponse avec citation
Vieux 09/02/2007, 21h43   #8
Rob
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: configuring PHP5 for Apache 2.2.4 for Windoze XP

On Feb 9, 12:54 pm, "shimmyshack" <matt.fa...@gmail.com> wrote:
> On 9 Feb, 16:09, "Rob" <rfhur...@yahoo.com> wrote:
>
>
>
> > On Feb 9, 1:55 am, "shimmyshack" <matt.fa...@gmail.com> wrote:

>
> > > On 9 Feb, 05:39, "Rob" <rfhur...@yahoo.com> wrote:

>
> > > > On Feb 8, 7:39 pm, "shimmyshack" <matt.fa...@gmail.com> wrote:

>
> > > > > On 9 Feb, 02:30, "shimmyshack" <matt.fa...@gmail.com> wrote:

>
> > > > > > On 8 Feb, 23:17, "Rob" <rfhur...@yahoo.com> wrote:

>
> > > > > > > Loaded Apache 2.2.4 & got it running OK; loaded PHP 5, then tried to
> > > > > > > configure it thus:

>
> > > > > > > I went to the "httpd.conf" file, and added:

>
> > > > > > > # For PHP 5 do something like this:
> > > > > > > LoadModule php5_module "C:\Program Files\PHP
> > > > > > > \php5apache2_2_4.dll"
> > > > > > > AddType application/x-httpd-php .php

>
> > > > > > > # configure the path to php.ini
> > > > > > > PHPIniDir "C:\Program Files\PHP"

>
> > > > > > > and then ran "<?php phpinfo(); ?>" script. It ran (correctly) in
> > > > > > > my browser, but then an error message came up, shutting down apache. I
> > > > > > > turned apache back on; the same thing happened again-- but this time,
> > > > > > > when I tried to turn it back on, an error message came up, telling me
> > > > > > > the operation couldn't be performed (wouldn't run apache). I restarted
> > > > > > > my computer; Apache wouldn't start again (same error message).

>
> > > > > > > I removed the added lines from the "httpd.conf" file, and restarted
> > > > > > > everything. Everything ran fine; but when I re-added the "LoadModule
> > > > > > > php5_module..." code, it wouldn't start apache. What's going on? And
> > > > > > > what do I do now?

>
> > > > > > all path slashes in httpd.conf should point forward (as in apache
> > > > > > docs) try that and see if it s.
> > > > > > do you have this line?

>
> > > > > > AddType application/x-httpd-php .php .php5 .htm
> > > > > > use a space separated series of file extensions you wish to be parsed
> > > > > > by php interpreter

>
> > > > > i think my last post was daft, although you should change the paths.
> > > > > What could be happening is that you havent set up the php.ini
> > > > > properly, so that as a particular modeul gets called into play byt the
> > > > > particular part of the phpinfo call, the process crashes, do you have
> > > > > any errors in the error.log which would throw light on this, also
> > > > > check the phperror.log if different, and have you indeed changed or
> > > > > looked at the php.ini config file since placing the php5_module line
> > > > > in your httpd.conf?

>
> > > > I tried changing the path: the results were the same. Also, I'm using
> > > > Windoze, so the directory path uses back-slashes. If you wouldn't
> > > > mind, I could send you a copy of the log file (as a .txt file).
> > > > Anyway, thanks again.

>
> > > > Rob

>
> > > if the php.ini file has show errors on start up enabled, you might see
> > > more also the
> > > start->run-> eventvwr
> > > might have more details, including line numbers and reasons
> > > shut down Apache, take a quick look at the clock and then start it up
> > > and browse to the phpinfo() script, and post the relevant lines from
> > > the error.log here. That way we can all learn.

>
> > > even though windows does use backslashes, all the paths in the apache
> > > confs should be forward slashes - honest - its in the docs (in the
> > > red box) http://httpd.apache.org/docs/2.2/mod...html#customlog

>
> > > I haven't had any problems with 2.2.4 on windows, so it should be
> > > solvable (in theory)

>
> > OK. Here goes... (I have no idea what the following means):

>
> > Faulting application httpd.exe, version 2.2.4.0, faulting module
> > unknown, version 0.0.0.0, fault address 0x01a12dc0.

>
> > For more information, see and Support Center at http://
> > go.microsoft.com/fwlink/events.asp.

>
> > Event Type: Error
> > Event Source: Application Error
> > Event Category: (100)
> > Event ID: 1000
> > Date: 2/9/2007
> > Time: 7:56:53 AM
> > User: N/A
> > Computer: ROBERT
> > Description:
> > Faulting application httpd.exe, version 2.2.4.0, faulting module
> > unknown, version 0.0.0.0, fault address 0x01a12dc0.

>
> > For more information, see and Support Center at http://
> > go.microsoft.com/fwlink/events.asp.

>
> > Data: Bytes
> > 0000: 41 70 70 6c 69 63 61 74 Applicat
> > 0008: 69 6f 6e 20 46 61 69 6c ion Fail
> > 0010: 75 72 65 20 20 68 74 74 ure htt
> > 0018: 70 64 2e 65 78 65 20 32 pd.exe 2
> > 0020: 2e 32 2e 34 2e 30 20 69 .2.4.0 i
> > 0028: 6e 20 75 6e 6b 6e 6f 77 n unknow
> > 0030: 6e 20 30 2e 30 2e 30 2e n 0.0.0.
> > 0038: 30 20 61 74 20 6f 66 66 0 at off
> > 0040: 73 65 74 20 30 31 61 31 set 01a1
> > 0048: 32 64 63 30 2dc0

>
> > Data: Words
> > 0000: 6c707041 74616369 206e6f69 6c696146
> > 0010: 20657275 74746820 652e6470 32206578
> > 0020: 342e322e 6920302e 6e75206e 776f6e6b
> > 0030: 2e30206e 2e302e30 74612030 66666f20
> > 0040: 20746573 31613130 30636432

>
> hmm the faulting modeul "unknown" part is annoying
> this means that one of the modules which you have loaded is faulting.
> Now it could be php, however it might not be.
> My advice is this:
> get yourself off to the good folks at apachelounge at grab their copy
> of apache2.2.4 and the php5 module for apache2.2.x
> its better than the one from apache because its built with VS2005.NET
> so its a little more in tune with windows.
> the apache binary you need is this one.
>
> httpd-2.2.4-win32-x86-ssl.zip
>
> and the php5 apache 2.2.x handler is this one.
> php5apache2.dll-php5.1.x.zip 24 Aug '06 14K
> apache2handler for Apache 2.2.x and PHP 5.1.0-5.1.6
>
> you should be able to straight copy over the top, but like a good boy
> scout always have a backup plan.
>
> I thoroughly recommend their binaries, have used them myself without
> problems.
>
> If this solves your problems then chalk it up and stick to the
> releases on the apache lounge site, he are always prompt with his
> builds.


Thanks again! While I was asking for info on the PHP bbs, I was also
asking around at the apache bbs too. One guy suggested I check out
"www.apachefriends.org". so I did. They have an all-the-trimmings
(PHP, MySQL, etc) Apache distro called XAMPP. I uninstalled my
versions of Apache & PHP and installed XAMPP-- it worked like a
CHARM!!! I can't recommend it enough to thickheaded newbies such as
myself.

So thanks, Matt, for the . I WILL be checking out Apache Lounge
the second I finish typing this.

Have a great evening!

R

  Réponse avec citation
Vieux 09/02/2007, 22h12   #9
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: configuring PHP5 for Apache 2.2.4 for Windoze XP

On 9 Feb, 21:43, "Rob" <rfhur...@yahoo.com> wrote:
> On Feb 9, 12:54 pm, "shimmyshack" <matt.fa...@gmail.com> wrote:
>
>
>
> > On 9 Feb, 16:09, "Rob" <rfhur...@yahoo.com> wrote:

>
> > > On Feb 9, 1:55 am, "shimmyshack" <matt.fa...@gmail.com> wrote:

>
> > > > On 9 Feb, 05:39, "Rob" <rfhur...@yahoo.com> wrote:

>
> > > > > On Feb 8, 7:39 pm, "shimmyshack" <matt.fa...@gmail.com> wrote:

>
> > > > > > On 9 Feb, 02:30, "shimmyshack" <matt.fa...@gmail.com> wrote:

>
> > > > > > > On 8 Feb, 23:17, "Rob" <rfhur...@yahoo.com> wrote:

>
> > > > > > > > Loaded Apache 2.2.4 & got it running OK; loaded PHP 5, then tried to
> > > > > > > > configure it thus:

>
> > > > > > > > I went to the "httpd.conf" file, and added:

>
> > > > > > > > # For PHP 5 do something like this:
> > > > > > > > LoadModule php5_module "C:\Program Files\PHP
> > > > > > > > \php5apache2_2_4.dll"
> > > > > > > > AddType application/x-httpd-php .php

>
> > > > > > > > # configure the path to php.ini
> > > > > > > > PHPIniDir "C:\Program Files\PHP"

>
> > > > > > > > and then ran "<?php phpinfo(); ?>" script. It ran (correctly) in
> > > > > > > > my browser, but then an error message came up, shutting down apache. I
> > > > > > > > turned apache back on; the same thing happened again-- but this time,
> > > > > > > > when I tried to turn it back on, an error message came up, telling me
> > > > > > > > the operation couldn't be performed (wouldn't run apache). I restarted
> > > > > > > > my computer; Apache wouldn't start again (same error message).

>
> > > > > > > > I removed the added lines from the "httpd.conf" file, and restarted
> > > > > > > > everything. Everything ran fine; but when I re-added the "LoadModule
> > > > > > > > php5_module..." code, it wouldn't start apache. What's going on? And
> > > > > > > > what do I do now?

>
> > > > > > > all path slashes in httpd.conf should point forward (as in apache
> > > > > > > docs) try that and see if it s.
> > > > > > > do you have this line?

>
> > > > > > > AddType application/x-httpd-php .php .php5 .htm
> > > > > > > use a space separated series of file extensions you wish to be parsed
> > > > > > > by php interpreter

>
> > > > > > i think my last post was daft, although you should change the paths.
> > > > > > What could be happening is that you havent set up the php.ini
> > > > > > properly, so that as a particular modeul gets called into play byt the
> > > > > > particular part of the phpinfo call, the process crashes, do you have
> > > > > > any errors in the error.log which would throw light on this, also
> > > > > > check the phperror.log if different, and have you indeed changed or
> > > > > > looked at the php.ini config file since placing the php5_module line
> > > > > > in your httpd.conf?

>
> > > > > I tried changing the path: the results were the same. Also, I'm using
> > > > > Windoze, so the directory path uses back-slashes. If you wouldn't
> > > > > mind, I could send you a copy of the log file (as a .txt file).
> > > > > Anyway, thanks again.

>
> > > > > Rob

>
> > > > if the php.ini file has show errors on start up enabled, you might see
> > > > more also the
> > > > start->run-> eventvwr
> > > > might have more details, including line numbers and reasons
> > > > shut down Apache, take a quick look at the clock and then start it up
> > > > and browse to the phpinfo() script, and post the relevant lines from
> > > > the error.log here. That way we can all learn.

>
> > > > even though windows does use backslashes, all the paths in the apache
> > > > confs should be forward slashes - honest - its in the docs (in the
> > > > red box) http://httpd.apache.org/docs/2.2/mod...html#customlog

>
> > > > I haven't had any problems with 2.2.4 on windows, so it should be
> > > > solvable (in theory)

>
> > > OK. Here goes... (I have no idea what the following means):

>
> > > Faulting application httpd.exe, version 2.2.4.0, faulting module
> > > unknown, version 0.0.0.0, fault address 0x01a12dc0.

>
> > > For more information, see and Support Center at http://
> > > go.microsoft.com/fwlink/events.asp.

>
> > > Event Type: Error
> > > Event Source: Application Error
> > > Event Category: (100)
> > > Event ID: 1000
> > > Date: 2/9/2007
> > > Time: 7:56:53 AM
> > > User: N/A
> > > Computer: ROBERT
> > > Description:
> > > Faulting application httpd.exe, version 2.2.4.0, faulting module
> > > unknown, version 0.0.0.0, fault address 0x01a12dc0.

>
> > > For more information, see and Support Center at http://
> > > go.microsoft.com/fwlink/events.asp.

>
> > > Data: Bytes
> > > 0000: 41 70 70 6c 69 63 61 74 Applicat
> > > 0008: 69 6f 6e 20 46 61 69 6c ion Fail
> > > 0010: 75 72 65 20 20 68 74 74 ure htt
> > > 0018: 70 64 2e 65 78 65 20 32 pd.exe 2
> > > 0020: 2e 32 2e 34 2e 30 20 69 .2.4.0 i
> > > 0028: 6e 20 75 6e 6b 6e 6f 77 n unknow
> > > 0030: 6e 20 30 2e 30 2e 30 2e n 0.0.0.
> > > 0038: 30 20 61 74 20 6f 66 66 0 at off
> > > 0040: 73 65 74 20 30 31 61 31 set 01a1
> > > 0048: 32 64 63 30 2dc0

>
> > > Data: Words
> > > 0000: 6c707041 74616369 206e6f69 6c696146
> > > 0010: 20657275 74746820 652e6470 32206578
> > > 0020: 342e322e 6920302e 6e75206e 776f6e6b
> > > 0030: 2e30206e 2e302e30 74612030 66666f20
> > > 0040: 20746573 31613130 30636432

>
> > hmm the faulting modeul "unknown" part is annoying
> > this means that one of the modules which you have loaded is faulting.
> > Now it could be php, however it might not be.
> > My advice is this:
> > get yourself off to the good folks at apachelounge at grab their copy
> > of apache2.2.4 and the php5 module for apache2.2.x
> > its better than the one from apache because its built with VS2005.NET
> > so its a little more in tune with windows.
> > the apache binary you need is this one.

>
> > httpd-2.2.4-win32-x86-ssl.zip

>
> > and the php5 apache 2.2.x handler is this one.
> > php5apache2.dll-php5.1.x.zip 24 Aug '06 14K
> > apache2handler for Apache 2.2.x and PHP 5.1.0-5.1.6

>
> > you should be able to straight copy over the top, but like a good boy
> > scout always have a backup plan.

>
> > I thoroughly recommend their binaries, have used them myself without
> > problems.

>
> > If this solves your problems then chalk it up and stick to the
> > releases on the apache lounge site, he are always prompt with his
> > builds.

>
> Thanks again! While I was asking for info on the PHP bbs, I was also
> asking around at the apache bbs too. One guy suggested I check out
> "www.apachefriends.org". so I did. They have an all-the-trimmings
> (PHP, MySQL, etc) Apache distro called XAMPP. I uninstalled my
> versions of Apache & PHP and installed XAMPP-- it worked like a
> CHARM!!! I can't recommend it enough to thickheaded newbies such as
> myself.
>
> So thanks, Matt, for the . I WILL be checking out Apache Lounge
> the second I finish typing this.
>
> Have a great evening!
>
> R


yeah xampp is pretty cool, although they are slower to update their
binaries, and I'm not sure how they compile their binaries, I actually
use the apachelounge binaries over the top of xampp. Xampp is great
for the setup, config, layout, and then the tweaking comes from using
mod_security etc.. from AL! I have never had much luck using PEAR with
Xampp either.
Don't forget to secure your xampp setup if you plan to be accessible
over the network, phpmyadmin / ftp / mysql all need locking down.
have fun

  Réponse avec citation
Vieux 09/02/2007, 22h31   #10
Rob
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: configuring PHP5 for Apache 2.2.4 for Windoze XP

On Feb 9, 2:12 pm, "shimmyshack" <matt.fa...@gmail.com> wrote:
> On 9 Feb, 21:43, "Rob" <rfhur...@yahoo.com> wrote:
>
>
>
> > On Feb 9, 12:54 pm, "shimmyshack" <matt.fa...@gmail.com> wrote:

>
> > > On 9 Feb, 16:09, "Rob" <rfhur...@yahoo.com> wrote:

>
> > > > On Feb 9, 1:55 am, "shimmyshack" <matt.fa...@gmail.com> wrote:

>
> > > > > On 9 Feb, 05:39, "Rob" <rfhur...@yahoo.com> wrote:

>
> > > > > > On Feb 8, 7:39 pm, "shimmyshack" <matt.fa...@gmail.com> wrote:

>
> > > > > > > On 9 Feb, 02:30, "shimmyshack" <matt.fa...@gmail.com> wrote:

>
> > > > > > > > On 8 Feb, 23:17, "Rob" <rfhur...@yahoo.com> wrote:

>
> > > > > > > > > Loaded Apache 2.2.4 & got it running OK; loaded PHP 5, then tried to
> > > > > > > > > configure it thus:

>
> > > > > > > > > I went to the "httpd.conf" file, and added:

>
> > > > > > > > > # For PHP 5 do something like this:
> > > > > > > > > LoadModule php5_module "C:\Program Files\PHP
> > > > > > > > > \php5apache2_2_4.dll"
> > > > > > > > > AddType application/x-httpd-php .php

>
> > > > > > > > > # configure the path to php.ini
> > > > > > > > > PHPIniDir "C:\Program Files\PHP"

>
> > > > > > > > > and then ran "<?php phpinfo(); ?>" script. It ran (correctly) in
> > > > > > > > > my browser, but then an error message came up, shutting down apache. I
> > > > > > > > > turned apache back on; the same thing happened again-- but this time,
> > > > > > > > > when I tried to turn it back on, an error message came up, telling me
> > > > > > > > > the operation couldn't be performed (wouldn't run apache). I restarted
> > > > > > > > > my computer; Apache wouldn't start again (same error message).

>
> > > > > > > > > I removed the added lines from the "httpd.conf" file, and restarted
> > > > > > > > > everything. Everything ran fine; but when I re-added the "LoadModule
> > > > > > > > > php5_module..." code, it wouldn't start apache. What's going on? And
> > > > > > > > > what do I do now?

>
> > > > > > > > all path slashes in httpd.conf should point forward (as in apache
> > > > > > > > docs) try that and see if it s.
> > > > > > > > do you have this line?

>
> > > > > > > > AddType application/x-httpd-php .php .php5 .htm
> > > > > > > > use a space separated series of file extensions you wish to be parsed
> > > > > > > > by php interpreter

>
> > > > > > > i think my last post was daft, although you should change the paths.
> > > > > > > What could be happening is that you havent set up the php.ini
> > > > > > > properly, so that as a particular modeul gets called into play byt the
> > > > > > > particular part of the phpinfo call, the process crashes, do you have
> > > > > > > any errors in the error.log which would throw light on this, also
> > > > > > > check the phperror.log if different, and have you indeed changed or
> > > > > > > looked at the php.ini config file since placing the php5_module line
> > > > > > > in your httpd.conf?

>
> > > > > > I tried changing the path: the results were the same. Also, I'm using
> > > > > > Windoze, so the directory path uses back-slashes. If you wouldn't
> > > > > > mind, I could send you a copy of the log file (as a .txt file).
> > > > > > Anyway, thanks again.

>
> > > > > > Rob

>
> > > > > if the php.ini file has show errors on start up enabled, you might see
> > > > > more also the
> > > > > start->run-> eventvwr
> > > > > might have more details, including line numbers and reasons
> > > > > shut down Apache, take a quick look at the clock and then start it up
> > > > > and browse to the phpinfo() script, and post the relevant lines from
> > > > > the error.log here. That way we can all learn.

>
> > > > > even though windows does use backslashes, all the paths in the apache
> > > > > confs should be forward slashes - honest - its in the docs (in the
> > > > > red box) http://httpd.apache.org/docs/2.2/mod...html#customlog

>
> > > > > I haven't had any problems with 2.2.4 on windows, so it should be
> > > > > solvable (in theory)

>
> > > > OK. Here goes... (I have no idea what the following means):

>
> > > > Faulting application httpd.exe, version 2.2.4.0, faulting module
> > > > unknown, version 0.0.0.0, fault address 0x01a12dc0.

>
> > > > For more information, see and Support Center at http://
> > > > go.microsoft.com/fwlink/events.asp.

>
> > > > Event Type: Error
> > > > Event Source: Application Error
> > > > Event Category: (100)
> > > > Event ID: 1000
> > > > Date: 2/9/2007
> > > > Time: 7:56:53 AM
> > > > User: N/A
> > > > Computer: ROBERT
> > > > Description:
> > > > Faulting application httpd.exe, version 2.2.4.0, faulting module
> > > > unknown, version 0.0.0.0, fault address 0x01a12dc0.

>
> > > > For more information, see and Support Center at http://
> > > > go.microsoft.com/fwlink/events.asp.

>
> > > > Data: Bytes
> > > > 0000: 41 70 70 6c 69 63 61 74 Applicat
> > > > 0008: 69 6f 6e 20 46 61 69 6c ion Fail
> > > > 0010: 75 72 65 20 20 68 74 74 ure htt
> > > > 0018: 70 64 2e 65 78 65 20 32 pd.exe 2
> > > > 0020: 2e 32 2e 34 2e 30 20 69 .2.4.0 i
> > > > 0028: 6e 20 75 6e 6b 6e 6f 77 n unknow
> > > > 0030: 6e 20 30 2e 30 2e 30 2e n 0.0.0.
> > > > 0038: 30 20 61 74 20 6f 66 66 0 at off
> > > > 0040: 73 65 74 20 30 31 61 31 set 01a1
> > > > 0048: 32 64 63 30 2dc0

>
> > > > Data: Words
> > > > 0000: 6c707041 74616369 206e6f69 6c696146
> > > > 0010: 20657275 74746820 652e6470 32206578
> > > > 0020: 342e322e 6920302e 6e75206e 776f6e6b
> > > > 0030: 2e30206e 2e302e30 74612030 66666f20
> > > > 0040: 20746573 31613130 30636432

>
> > > hmm the faulting modeul "unknown" part is annoying
> > > this means that one of the modules which you have loaded is faulting.
> > > Now it could be php, however it might not be.
> > > My advice is this:
> > > get yourself off to the good folks at apachelounge at grab their copy
> > > of apache2.2.4 and the php5 module for apache2.2.x
> > > its better than the one from apache because its built with VS2005.NET
> > > so its a little more in tune with windows.
> > > the apache binary you need is this one.

>
> > > httpd-2.2.4-win32-x86-ssl.zip

>
> > > and the php5 apache 2.2.x handler is this one.
> > > php5apache2.dll-php5.1.x.zip 24 Aug '06 14K
> > > apache2handler for Apache 2.2.x and PHP 5.1.0-5.1.6

>
> > > you should be able to straight copy over the top, but like a good boy
> > > scout always have a backup plan.

>
> > > I thoroughly recommend their binaries, have used them myself without
> > > problems.

>
> > > If this solves your problems then chalk it up and stick to the
> > > releases on the apache lounge site, he are always prompt with his
> > > builds.

>
> > Thanks again! While I was asking for info on the PHP bbs, I was also
> > asking around at the apache bbs too. One guy suggested I check out
> > "www.apachefriends.org". so I did. They have an all-the-trimmings
> > (PHP, MySQL, etc) Apache distro called XAMPP. I uninstalled my
> > versions of Apache & PHP and installed XAMPP-- it worked like a
> > CHARM!!! I can't recommend it enough to thickheaded newbies such as
> > myself.

>
> > So thanks, Matt, for the . I WILL be checking out Apache Lounge
> > the second I finish typing this.

>
> > Have a great evening!

>
> > R

>
> yeah xampp is pretty cool, although they are slower to update their
> binaries, and I'm not sure how they compile their binaries, I actually
> use the apachelounge binaries over the top of xampp. Xampp is great
> for the setup, config, layout, and then the tweaking comes from using
> mod_security etc.. from AL! I have never had much luck using PEAR with
> Xampp either.
> Don't forget to secure your xampp setup if you plan to be accessible
> over the network, phpmyadmin / ftp / mysql all need locking down.
> have fun


Funny you should mention apachelounge. Someone on the PHP bbs just
recommended that site. But XAMPP is working just fine, and right now I
just want to test my PHP and Perl scripts on a local machine. When I
decide to delve into server administration, I'm going to go all out,
and run Apache on a Linux box for all the LAMPalicious goodness!

Anyway, thanks again, to you and everyone else that posted. This will
be my last post on this particular (sub?)topic. (for now)
};-)>

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 09h58.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,42505 seconds with 18 queries