|
From: "Alan M Dunsmuir" on 12 May 2008 04:44 Is there some trick to getting PHP5 to install properly under Windows Vista? I had a successful Windows 'localhost' installation of Apache/MySQL/PHP about a year ago, and I've been trying to get the same thing up under Vista (Home Premium). MySQL and Apache2 install fine, but I just cannot get Apache to recognise php coding. If I try to run phpinfo() as a "Hello, World!" example, I get the full contents of the source file displayed on the monitor: <?php phpinfo() ; ?> I've made what I thought were the required changes to httpd.conv, and stopped and restarted Apache, but php just won't kick in. Would somebody please hold my hand, and walk me through what I need to do step by step? Many thanks.
From: "Jeff White" on 12 May 2008 20:42 Hello Alan, I have Apache2.2/MySQL/PHP on Vista Home working. Here are a few lines from my httpd.conf to consider: In the "LoadModule" section: LoadModule php5_module "C:/php/php5apache2_2.dll" In the "<IfModule mime_module>" section: AddType application/x-httpd-php .php At the end of httpd.conf: PHPIniDir "C:/PHP/" Of course, if you have PHP installed into a different directory than noted here, you'll have to make the necessary adjustments to the paths. Jeff -----Original Message----- From: Alan M Dunsmuir [mailto:alan(a)moonrake.demon.co.uk] Sent: Monday, May 12, 2008 4:45 To: php-windows(a)lists.php.net Subject: [PHP-WIN] Running under Windows Vista? Is there some trick to getting PHP5 to install properly under Windows Vista? I had a successful Windows 'localhost' installation of Apache/MySQL/PHP about a year ago, and I've been trying to get the same thing up under Vista (Home Premium). MySQL and Apache2 install fine, but I just cannot get Apache to recognise php coding. If I try to run phpinfo() as a "Hello, World!" example, I get the full contents of the source file displayed on the monitor: <?php phpinfo() ; ?> I've made what I thought were the required changes to httpd.conv, and stopped and restarted Apache, but php just won't kick in. Would somebody please hold my hand, and walk me through what I need to do step by step? Many thanks. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
From: "Christian Flickinger" on 25 May 2008 16:10 As Jeff showed, make sure you are using AddType if you are using apache 2.2. Some people may have old config files containing AddHandler directives. It may not be a Vista issue, but rather an apache config issue. - spoon ""Jeff White"" <bitslayer(a)comcast.net> wrote in message news:C190C58BD20047379C3E72EEC6037BC7(a)MANIaC... > Hello Alan, > > I have Apache2.2/MySQL/PHP on Vista Home working. Here are a few lines > from > my httpd.conf to consider: > > In the "LoadModule" section: > LoadModule php5_module "C:/php/php5apache2_2.dll" > In the "<IfModule mime_module>" section: > AddType application/x-httpd-php .php > At the end of httpd.conf: > PHPIniDir "C:/PHP/" > > Of course, if you have PHP installed into a different directory than noted > here, you'll have to make the necessary adjustments to the paths. > > Jeff > > > > > > -----Original Message----- > From: Alan M Dunsmuir [mailto:alan(a)moonrake.demon.co.uk] > Sent: Monday, May 12, 2008 4:45 > To: php-windows(a)lists.php.net > Subject: [PHP-WIN] Running under Windows Vista? > > Is there some trick to getting PHP5 to install properly under Windows > Vista? > > I had a successful Windows 'localhost' installation of Apache/MySQL/PHP > about a year ago, and I've been trying to get the same thing up under > Vista > (Home Premium). MySQL and Apache2 install fine, but I just cannot get > Apache > > to recognise php coding. If I try to run phpinfo() as a "Hello, World!" > example, I get the full contents of the source file displayed on the > monitor: > > <?php > phpinfo() ; > ?> > > I've made what I thought were the required changes to httpd.conv, and > stopped and restarted Apache, but php just won't kick in. > > Would somebody please hold my hand, and walk me through what I need to do > step by step? > > Many thanks. > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
|
Pages: 1 Prev: [PHP-WIN] Building PHP extension Next: Sessions Question! |