Creating a VAMP (Vista, Apache, MySQL, PHP) Setup - PHP (
Page 3 of 5 )
Next up is the PHP installation. With Windows XP, we had reached the stage where PHP could install itself and configure itself to work with Apache automatically, meaning that we didn't need to worry about copying system files or DLLs all over the place or editing Apache's configuration file manually. Unfortunately, however, the current PHP installer does not have this ability with Vista, and although the installer will run okay, it does not include several important files. We can install PHP manually very easily though; first, create a new folder on your C: drive and call it php. Next, unpack the php-5.2.6-Win32.zip file to this new directory.
We now need to update the Path environment variable. To do this open the Environment Variables dialog (Control Panel System Advanced system settings Environment Variables) and select the Path item in the System Variables section. Click the Edit button and add C:php; to the end of the existing text. You'll need to restart your machine for the change to take effect.
At this point we need to create a php.ini file which tells PHP how to work correctly. There is a template in the C:php folder called php.ini-recommended. Open this in a text editor and scroll down to the Paths and Directories section (it should start on line 515). In this section there is a line that reads extension_dir = "./", you'll need to change this to extension_dir = "c:phpext" instead. Now save the file as php.ini. You'll need to restart your machine again at this point.
Next we'll need to configure Apache to use the newly installed PHP. Reopen the httpd.conf Apache configuration file in your text editor and find the LoadModule directives (they are near the top of the file and begin on line 61). Below the last LoadModule directive add the following code block:
####### PHP Config ###########
LoadModule php5_module "C:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"
##############################
This tells Apache to load the PHP module, adds the PHP file extension to the list of recognized mime-types and tells Apache where the php.ini configuration file resides. This is all we need to do. Make sure you save the httpd.conf file and restart Apache. To test that PHP is working correctly, create a new PHP file that has the following line of code in it:
<?php phpinfo(); ?>
Save this file in the C:apache site folder as phpinfo.php, and then in your browser address bar type: http://localhost/phpinfo.php. You should see this:

This page lists loads of information concerning your PHP and Apache setup and is useful for checking that additional modules, such as MySQL, have installed correctly.
| | Discuss Creating a VAMP (Vista, Apache, MySQL, PHP) Setup | | | | | | | The Official PHP Installer handles the PHP and Apache configuration automatically,... | | | | | | Unfortunately, the installer which works correctly and configures everything nicely... | | | | | | You can save a lot of time and install Apache, PHP, MySQL together in just a few... | | | | | | Absolutely, these can save hours. But where's the fun in using an automated... | | | | | | As noted, the automated installer does not work with Vista.
Must be done... | | | | | | Thanks, I'm glad the article helped you get up and running
Happy coding =) | | | | | | A reader of the Article - Pamela - kindly pointed out several typo's on page 3 of... | | | | | | Hello I'm Doing This Article On Windows XP Home SP3(Upgrade), and I Can't Get MySQL... | | | | | | Never tried the installation on SP3 so hard to say if this is a factor
Most of... | | | | | | While I wait on my registration email for this forum, I thought I would post a... | | | | | | Apologies for the delay in response, I just got back off vacation =)
Did you use... | | | | | | This was my third attempt. After removing all evidence
of the other attempts this... | | | | | | I'm glad the article was able to help, thanks for reading =) | | | | | | Hi,
I have installed Apache 2.2, PHP 5 and MySQL 5 on Vista Ultimate. I have done... | | | | | | Are you using the correct password/user in your PHP page?
Can you post your mySql... | | | | | | I created a testing table under the test db (which comes with mysql installation)... | | | | | | Hmmmm, if things weren't configured right, mysql wouldn't even show in... | | | | | | It works now. Thank you for your help very much. | | | | | | Hello sir,I found this tutorial best for vamp than others. i m trying to install... | | | | | | Did you try switching off your firewall, that seemed to help others (and I mean... | | | | | | hello everybody,
I have already switched off firewall. then also... | | | | | | I tried for hours to install PHP so that it would work correctly with Apache &... | | | | | | Hi Vinay, ... | | | | | | Awesome! Glad the tutorial was able to help =) ... | | | | | | Yes i have used that directory for extension...even i m facing same problem...plz... | | | | | | Can you mail me your php.ini file so I can compare it to mine? danwellman @... | | | | | | Finally!! You have no idea how good it was to find out that "Name: Dan Likes: House... | | | | | | lol, awesome, well done for getting it going =)
Thanks for the tips as well, it's... | | | | | | Thanks so much for the article. I ~was~ having a problem getting MySQL to speak to... | | | | | | Sorry, but I have 1 issiue with it, and I was hoping you can help me, ok, I have... | | | | | | Hi, sorry to hear you're having difficulties, the installation process can be... | | | | | | Thanks so much for this, I pulled it off without a hitch. Could you do a followup on... | | | | | | Excellent skills! Glad the article could help :D
PHPMyAdmin would make a great... | | | | | | Thanks a bunch for posting all this useful info. This is exactly the configuration... | | | | | | Thanks Dan for such a clear set of instructions. I've struggled with my installation... | | | | | | I'm glad the article helped Jeff, well done for persevering and getting it working... | | | | | | Thanks very much for the article, it is very helpful. But one thing - can't the... | | | | | | I found this article very useful and followed the instructions right through and... | | | | | | This was an excellent article. For those people that have trouble with MySQL ensure... | | | | | | Dan the article was very informative been trying to get these three to work with my... | | | | | | Helen,
Try turning off your firewall that's what did it for me during my... | | | | | | Hi Helen,
Don;t worry, it can be tricky getting everything working correctly, but... | | | | | | Thanks again for reading everyone, I'm glad I could help you get things up and... | | | | | | Thanks for a great article, which has got me up and running in an evening!
But, I... | | | | | | Hi,
Many thanks for the article.
I've been working to get MySQL support showing in... | | | | | | Hi. Thanks for the article you posted. Very informative. Unfortunately it does not... | | | | | | Ok, I have successfully installed Apache, PHP and MySQL. However, when i run... | | | | | | I followed your instructions exactly. I also have a Vista64. At the end could not... | | | | | | My VAMP install on Vista64 is working just fine. I now have the new Win7 64 upgrade... | | | | | | I'm not sure whether you will need to reinstall or not but I guess you would need... | | | | | | >>> Post your comment now! | | | | | |
|
 |
|
|
|
|
| |
|
|
|
|
 |
|
|
|