By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,709 Members | 2,116 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,709 IT Pros & Developers. It's quick & easy.

PHP5 install in Windows Vista

P: n/a
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 am absolutely not an expert on Vista architecture, but know that it's
unlikely that the old instructions I have for XP Pro will carry directly
across.

Cold somebody spell out for me what needs to be done, or point me
towards an article which might walk me though the process?

Many thanks.
Jun 2 '08 #1
Share this Question
Share on Google+
12 Replies


P: n/a
Alan M Dunsmuir wrote:
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 am absolutely not an expert on Vista architecture, but know that it's
unlikely that the old instructions I have for XP Pro will carry directly
across.

Cold somebody spell out for me what needs to be done, or point me
towards an article which might walk me though the process?

Many thanks.
Try to install everything from scratch, making sure you've got
administrator rights before you install. That should be the only hurdle
you need to jump. Other than that the XP installation process should
apply also to Vista.

Bye!
Jun 2 '08 #2

P: n/a
*** Alan M Dunsmuir escribió/wrote (Sun, 11 May 2008 10:34:15 +0100):
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

--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor en cubitos: http://www.demogracia.com
--
Jun 2 '08 #3

P: n/a
Álvaro G. Vicario wrote:
*** Alan M Dunsmuir escribió/wrote (Sun, 11 May 2008 10:34:15 +0100):
>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.)

Anybody out there with a Vista PHP5 installation running properly,
prepared to tell me what they did?
Jun 2 '08 #4

P: n/a
Alan M Dunsmuir escribió:
># 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.)
In what sense did it not work? Do you get an error message in Apache logs?

--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--
Jun 2 '08 #5

P: n/a
On May 12, 7:52 pm, Alan M Dunsmuir <a...@moonrake.demon.co.ukwrote:
Álvaro G. Vicario wrote:
*** Alan M Dunsmuir escribió/wrote (Sun, 11 May 2008 10:34:15 +0100):
After having worked withApache/MySQL/PHPfor 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 evenPHP). Editing yourApache's
httpd.conf file (with an elevated text editor) and appending these lines
should be enough:
#PHP5
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.)

Anybody out there with a Vista PHP5 installation running properly,
prepared to tell me what they did?
I use this to setup the WAMP on the my boxes:
http://www.witsuite.com/support/know...-installation/.
Have tried Vista/IIS7/FastCGI/PHP, Apache/CGI/PHP, etc.

Regards,
Alex
Jun 2 '08 #6

P: n/a
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 <an*******@freemail.ru>

Jun 27 '08 #7

P: n/a
AnrDaemon wrote:
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.
Wrong again. Neither of these are supplied with Apache. Both come with
PHP. One is for Apache 2.0-2.1, the other for Apache 2.2.
>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.
And wrong again. PHP and Apache do not work on Vista. Look back
through here to see all of the problems people have had with it.
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)


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jun 27 '08 #8

P: n/a
On Jun 8, 10:18 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
AnrDaemon wrote:
Greetings, Alan M Dunsmuir.
In reply to Your message dated Monday, May 12, 2008, 20:52:54,
>>After having worked withApache/MySQL/PHPfor 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 evenPHP). Editing yourApache's
httpd.conf file (with an elevated text editor) and appending these lines
should be enough:
>#PHP5
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 fromPHPinstallation, not fromApache.
That probably was the case of failure.

Wrong again. Neither of these are supplied withApache. Both come withPHP. One is forApache2.0-2.1, the other forApache2.2.
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 usingPHP
installer to installPHPintoApache. It is faster and easier to do it by
hands.

And wrong again. PHPandApachedo not work on Vista. Look back
through here to see all of the problems people have had with it.
BTW, you can use IIS FastCGI and PHP on Vista, as described here:
http://www.witsuite.com/support/know...nstall-php.php

Regards,
Alex
Jun 27 '08 #9

P: n/a
alex.w474 wrote:
On Jun 8, 10:18 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>AnrDaemon wrote:
>>Greetings, Alan M Dunsmuir.
In reply to Your message dated Monday, May 12, 2008, 20:52:54,
>After having worked withApache/MySQL/PHPfor 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 evenPHP). Editing yourApache's
httpd.conf file (with an elevated text editor) and appending these lines
should be enough:
#PHP5
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 fromPHPinstallation, not fromApache.
That probably was the case of failure.
Wrong again. Neither of these are supplied withApache. Both come withPHP. One is forApache2.0-2.1, the other forApache2.2.
>>>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 usingPHP
installer to installPHPintoApache. It is faster and easier to do it by
hands.
And wrong again. PHPandApachedo not work on Vista. Look back
through here to see all of the problems people have had with it.

BTW, you can use IIS FastCGI and PHP on Vista, as described here:
http://www.witsuite.com/support/know...nstall-php.php

Regards,
Alex
It's a great idea, Alex. But there have been a lot of people with problems.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jun 27 '08 #10

P: n/a
alex.w474 wrote:
On Jun 8, 10:18 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>AnrDaemon wrote:
>>Greetings, Alan M Dunsmuir.
In reply to Your message dated Monday, May 12, 2008, 20:52:54,
>After having worked withApache/MySQL/PHPfor 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 evenPHP). Editing yourApache's
httpd.conf file (with an elevated text editor) and appending these lines
should be enough:
#PHP5
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 fromPHPinstallation, not fromApache.
That probably was the case of failure.
Wrong again. Neither of these are supplied withApache. Both come withPHP. One is forApache2.0-2.1, the other forApache2.2.
>>>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 usingPHP
installer to installPHPintoApache. It is faster and easier to do it by
hands.
And wrong again. PHPandApachedo not work on Vista. Look back
through here to see all of the problems people have had with it.

BTW, you can use IIS FastCGI and PHP on Vista, as described here:
http://www.witsuite.com/support/know...nstall-php.php

Regards,
Alex
And BTW - I was referring to Apache and PHP - Apache is much superior to
IIS in many ways.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jun 27 '08 #11

P: n/a
On Jun 12, 10:45 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
alex.w474 wrote:
On Jun 8, 10:18 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
AnrDaemon wrote:
Greetings, Alan M Dunsmuir.
In reply to Your message dated Monday, May 12, 2008, 20:52:54,
After having worked withApache/MySQL/PHPfor 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 evenPHP). Editing yourApache's
httpd.conf file (with an elevated text editor) and appending these lines
should be enough:
#PHP5
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 fromPHPinstallation, not fromApache.
That probably was the case of failure.
Wrong again. Neither of these are supplied withApache. Both come withPHP. One is forApache2.0-2.1, the other forApache2.2.
>>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 usingPHP
installer to installPHPintoApache. It is faster and easier to do it by
hands.
And wrong again. PHPandApachedo not work on Vista. Look back
through here to see all of the problems people have had with it.
BTW, you can use IIS FastCGI and PHP on Vista, as described here:
http://www.witsuite.com/support/know...nstallation/in...
Regards,
Alex

And BTW - I was referring to Apache and PHP - Apache is much superior to
IIS in many ways.
:-) It's a matter of compromise - non-working apache with PHP on vista
or non-superior, with problems, but working IIS with PHP.
Jun 27 '08 #12

P: n/a
alex.w474 wrote:
On Jun 12, 10:45 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>alex.w474 wrote:
>>On Jun 8, 10:18 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
AnrDaemon wrote:
Greetings, Alan M Dunsmuir.
In reply to Your message dated Monday, May 12, 2008, 20:52:54,
>>>After having worked withApache/MySQL/PHPfor 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 evenPHP). Editing yourApache's
>>httpd.conf file (with an elevated text editor) and appending these lines
>>should be enough:
>>#PHP5
>>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 fromPHPinstallation, not fromApache.
That probably was the case of failure.
Wrong again. Neither of these are supplied withApache. Both come withPHP. One is forApache2.0-2.1, the other forApache2.2.
>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 usingPHP
installer to installPHPintoApache. It is faster and easier to do it by
hands.
And wrong again. PHPandApachedo not work on Vista. Look back
through here to see all of the problems people have had with it.
BTW, you can use IIS FastCGI and PHP on Vista, as described here:
http://www.witsuite.com/support/know...nstallation/in...
Regards,
Alex
And BTW - I was referring to Apache and PHP - Apache is much superior to
IIS in many ways.

:-) It's a matter of compromise - non-working apache with PHP on vista
or non-superior, with problems, but working IIS with PHP.
No compromise necessary. Don't use Vista.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jun 27 '08 #13

This discussion thread is closed

Replies have been disabled for this discussion.