Re: PHP5.2.4 setup problems....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



At the bottom of your httpd.conf page where it shows the PHP related info:

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/php5/"
LoadModule php5_module "C:/PHP5/php5apache2_2.dll"
AddType application/x-httpd-php .php
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

Try changing it to:

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/php5/"
LoadModule php5_module "C:/PHP5/php5apache2_2.dll"

<IfModule php5_module>
     AddType application/x-httpd-php .php
</IfModule>
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

-Neon

On Nov 14, 2007, at 5:16 PM, Bryan C wrote:

if this helps any, here are both my php.ini and httpd.conf.  my apache
directory is C:\Apache2_2 and my PHP directory is C:\PHP5

""Bryan C"" <bac512@xxxxxxxxxxx> wrote in message
news:54.E7.46940.45A9B374@xxxxxxxxxxxxxxx
yes, 2.2.6 is the version I'm using (I just checked.. sorry about that
:) )
is there any way to turn on a debug log or any kind of log for php? the
apache error.log says it configured it, but never says weither it's
actually
running it or not....

"Keith Roberts" <keith@xxxxxxxxxxxx> wrote in message
news:Pine.LNX.4.64.0711141759560.12801@xxxxxxxxxxxxxxxxxxx
IIRC Apache development releases have an odd numbered suffix. The latest
releases have an even numbered suffix.

2.2.6 is the latest stable release of Apache.


On Wed, 14 Nov 2007, Bryan C wrote:

To: php-install@xxxxxxxxxxxxx
From: Bryan C <bac512@xxxxxxxxxxx>
Subject:  PHP5.2.4 setup problems....

I've installed the newest version of Apache (2.2.3, I believe), and the newest version of PHP5 (5.2.4), and Apache works fine, though I have the localhost defined as 127.0.0.1 (since I have no domain name or server), any html page I set up will display fine, but if I add an PHP code in it (just a simple <?php phpinfo(); ?>) it displays nothing. I can even add the same come in the middle of an html document, and it'll display the
html but not the php.... my apache error.log says:

[Wed Nov 14 00:28:00 2007] [notice] Apache/2.2.6 (Win32) PHP/5.2.4
configured -- resuming normal operations [Wed Nov 14 00:28:00 2007]
[notice] Server built: Sep 5 2007 08:58:56 [Wed Nov 14 00:28:00 2007] [notice] Parent: Created child process 2988 [Wed Nov 14 00:28:00 2007] [notice] Child 2988: Child process is running [Wed Nov 14 00:28:00 2007]
[notice] Child 2988: Acquired the start mutex. [Wed Nov 14 00:28:00
2007]
[notice] Child 2988: Starting 250 worker threads. [Wed Nov 14 00:28:00
2007] [notice] Child 2988: Starting thread to listen on port 80.

so I ASSUME php started right... From a command prompt, php -i gives me all sorts of information, I donno if that means it's running or not, but Apache is in C:\apache2_2 and php is in c:\php5, and as far as I can
see,
I have configured the php.ini, and httpd.conf properly...

following the php5 manual, I have the php.ini file ONLY in the c: \php5 directory (and the php -i info says 'loaded ini file -> c:\php5 \php.ini)


any ideas???

Are you using the http://localhost/ protocol to access the page?

Is the php module being loaded by Apache? Is there some way of checking
on
Windows what Apache modules are loaded?

Don't forget that the php command is a standalone php CLI program. That
is
*not* the same as the php module that Apache uses to parse php documents.
Well not on Linux anyway.

http://www.php.net/manual/en/install.windows.apache2.php

Kind Regards

Keith

------------------------------------------------------------
http://www.karsites.net
http://www.raised-from-the-dead.org.uk

This email address is challenge-response protected with
http://www.tmda.net
------------------------------------------------------------


<httpd.conf>

<php.ini>

[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux