Re: PHP5 and APACHE2 work but not best




"David Haynes"

KINDLY wrote:

A couple of things...
1. Running PHP as a CGI will be slower than running it as a native
Apache module. This is probably where you are getting the poor
response from.
2. You say
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/WINDOWS"
does not work for you. I *think* it is because your php.ini file is in
c:/php not c:/WINDOWS.
3. Please try again with the LoadModule option and post a copy of
the output of phpinfo() - It will help us get it all working for you.

-david-


I tryed again to add

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/WINDOWS/"
#I am sure that PHP.ini is into the windows direcory

but Apache not accept these lines and when I try to start APACHE it open
obly a moment the MS-dos windows console and do not run.

I tryed line per line and I noted that APACHE accept only the second line

AddType application/x-httpd-php .php

It close immediately the windows if I add the first
LoadModule php5_module "c:/php/php5apache2.dll"
ant 3th line
PHPIniDir "C:/WINDOWS/"

Therefore I have not a copy of the PHPINFO() output because nothing work


Regards

Steel


.



Relevant Pages

  • Re: Developing PHP under Windows - Why?
    ... Windows 2000, Apache 2, Microsoft SQL Server, and PHP. ... We went with the Windows route mainly for human resource reason. ... I knew virtually nothing about Linux at the time - and very little about Apache. ...
    (comp.lang.php)
  • Re: PHP5 install in Windows Vista
    ... need, purely for convenience, to set up a parallel platform under Windows. ... I suppose you're using a recent installer (older ones were broken in Vista ... not even PHP). ... You must use proper DLL from PHP installation, not from Apache. ...
    (comp.lang.php)
  • Re: PHP5beta2 - anyone successfully installed in
    ... and actually i'm running both php 4.3.4 and php5 beta 2 on windows ... To install successfully as apache module, ...
    (comp.lang.php)
  • Re: Apache 2.2.2 and PHP 5.1.4 on Win2k crashing
    ... Everything works except PHP: when starting Apache, ... pops out a message saying that it is unable to locate the module (even ... I'm running XAMPP fine on Windows XP ...
    (comp.lang.php)
  • Help with php5 install under windows
    ... This includes moving php from the ... Enable the PHP scripting language engine under Apache. ... or per-virtualhost web server configuration file. ... The PHP directives register_globals, ...
    (php.general)