Re: PHP5 install in Windows Vista



Greetings, Alan M Dunsmuir.
In reply to Your message dated Monday, May 12, 2008, 20:52:54,

After having worked with Apache/MySQL/PHP for a year or so under Linux I
need, purely for convenience, to set up a parallel platform under Windows.

Unfortunately, since I last did this (using Windows XP Pro) I've moved
on to Windows Vista (Home Premium). MySQL and Apache2 have both
installed satisfactorily, but I'm having problems with PHP5.

I downloaded the PHP5 Windows installer (the .msi file) for 32-bit
Windows, which is supposed to automate the configuration process, but it
reported failure to link to Apache2, and said I would have to perform a
manual configure.

I suppose you're using a recent installer (older ones were broken in Vista
and would not install anything, not even PHP). Editing your Apache's
httpd.conf file (with an elevated text editor) and appending these lines
should be enough:

# PHP 5
LoadModule php5_module "C:\Program Files\PHP\php5apache2_2.dll"
AddType application/x-httpd-php .php

I'm afraid that didn't work. (But I was using php5apache2.dll which was
in my Apache2 installation, rather than php5apache2_2.dll, which wasn't.)

You must use proper DLL from PHP installation, not from Apache.
That probably was the case of failure.

Anybody out there with a Vista PHP5 installation running properly,
prepared to tell me what they did?

It should work without problem. I just not know anyone who are using PHP
installer to install PHP into Apache. It is faster and easier to do it by
hands.

What version of Apache server you are using by the way?
And what the error message sounds for exact? (it should be in Apache
error.log)


--
Sincerely Yours, AnrDaemon <anrdaemon@xxxxxxxxxxx>

.



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: PHP display/install? problem Solution
    ... I used the msi installer for Apache ... Make sure that you have a valid php.ini in your windows directory. ... Wound up using the msi installer download which I think is up to version 2.0 ...
    (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)
  • Re: PHP is looking for php.ini file in c:windows
    ... Configuration File - C:\WINDOWS ... Be sure to restart your PC, since Apache needs to read this env var ... when using PHP as CGI" ... WINDOWS nor anything in the REGISTRY. ...
    (comp.lang.php)