PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > Apache 2.2.4 ignores PHP 5.2.4 scripts on Win2K3
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Apache 2.2.4 ignores PHP 5.2.4 scripts on Win2K3

Réponse
 
LinkBack Outils de la discussion
Vieux 15/09/2007, 00h11   #1
AlterEgo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Apache 2.2.4 ignores PHP 5.2.4 scripts on Win2K3

Hi all PHP newbie here,

1) I disabled IIS.
2) Loaded Apache 2.2.4 on Win2K3.
3) Loaded PHP 5.2.4 pretty much bare bones, but included MySQL, SMTP, SOAP
and ZIP extensions.

Installers:
apache_2.2.4-win32-x86-openssl-0.9.8d.msi
php-5.2.4-win32-installer.msi

Installer changed the httpd.conf file and added the following:
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php

Error log shows that PHP was configured:
....
[Fri Sep 14 16:07:49 2007] [notice] Apache/2.2.4 (Win32) PHP/5.2.4
configured -- resuming normal operations
[Fri Sep 14 16:07:49 2007] [notice] Server built: Jan 9 2007 23:17:20
....

If I add any PHP code to the index.html file it is ignored:

<?php print "My Test"; ?>
or
<?php phpinfo(); ?>

Any ideas?

-- thanks, bill





  Réponse avec citation
Vieux 15/09/2007, 01h01   #2
Vince Morgan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache 2.2.4 ignores PHP 5.2.4 scripts on Win2K3


"AlterEgo" <someone@dslextreme.com> wrote in message
news:13em57122h92h15@corp.supernews.com...
> Hi all PHP newbie here,
>
> 1) I disabled IIS.
> 2) Loaded Apache 2.2.4 on Win2K3.
> 3) Loaded PHP 5.2.4 pretty much bare bones, but included MySQL, SMTP, SOAP
> and ZIP extensions.
>
> Installers:
> apache_2.2.4-win32-x86-openssl-0.9.8d.msi
> php-5.2.4-win32-installer.msi
>
> Installer changed the httpd.conf file and added the following:
> PHPIniDir "C:/Program Files/PHP/"
> LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
> AddType application/x-httpd-php .php
>
> Error log shows that PHP was configured:
> ...
> [Fri Sep 14 16:07:49 2007] [notice] Apache/2.2.4 (Win32) PHP/5.2.4
> configured -- resuming normal operations
> [Fri Sep 14 16:07:49 2007] [notice] Server built: Jan 9 2007 23:17:20
> ...
>
> If I add any PHP code to the index.html file it is ignored:


Unless you want php tp process all html files, that's what should have
happened. Try giving the file a .php extension.

>
> <?php print "My Test"; ?>
> or
> <?php phpinfo(); ?>
>
> Any ideas?
>
> -- thanks, bill


HTH
Vince



  Réponse avec citation
Vieux 15/09/2007, 02h16   #3
AlterEgo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache 2.2.4 ignores PHP 5.2.4 scripts on Win2K3


"Vince Morgan" <vinharAtHereoptusnet.com.au> wrote in message
news:46eb2150$0$18304$afc38c87@news.optusnet.com.a u...
>
> "AlterEgo" <someone@dslextreme.com> wrote in message
> news:13em57122h92h15@corp.supernews.com...
>> Hi all PHP newbie here,
>>
>> 1) I disabled IIS.
>> 2) Loaded Apache 2.2.4 on Win2K3.
>> 3) Loaded PHP 5.2.4 pretty much bare bones, but included MySQL, SMTP,
>> SOAP
>> and ZIP extensions.
>>
>> Installers:
>> apache_2.2.4-win32-x86-openssl-0.9.8d.msi
>> php-5.2.4-win32-installer.msi
>>
>> Installer changed the httpd.conf file and added the following:
>> PHPIniDir "C:/Program Files/PHP/"
>> LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
>> AddType application/x-httpd-php .php
>>
>> Error log shows that PHP was configured:
>> ...
>> [Fri Sep 14 16:07:49 2007] [notice] Apache/2.2.4 (Win32) PHP/5.2.4
>> configured -- resuming normal operations
>> [Fri Sep 14 16:07:49 2007] [notice] Server built: Jan 9 2007 23:17:20
>> ...
>>
>> If I add any PHP code to the index.html file it is ignored:

>
> Unless you want php tp process all html files, that's what should have
> happened. Try giving the file a .php extension.
>
>>
>> <?php print "My Test"; ?>
>> or
>> <?php phpinfo(); ?>
>>
>> Any ideas?
>>
>> -- thanks, bill

>
> HTH
> Vince
>

Thx Vince. Still couldn't get it running with Apache 2.2.x, but it works
(with your clarification) on 2.0.59.


  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 06h08.


É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,29949 seconds with 11 queries