Creating a VAMP (Vista, Apache, MySQL, PHP) Setup - Installing and Configuring Apache (
Page 2 of 5 )
We should install Apache first, so run the installer for it to begin the installation. Make sure you turn off any instant messaging applications like Skype, as some of these are known to cause issues when Apache is run for the first time. You might also need to set your firewall to training mode. Click through the first few screens of the installation wizard until you get to the Server Information screen:

Complete the input fields as shown in the above image, and then complete the installation, selecting the defaults on each subsequent screen. Once the installation completes, you should see the feather icon with the play symbol on it in your notification area:

This means that the server has started successfully and is running. You can verify that the server is working by opening a browser and typing http://localhost into the address bar. You should see a page saying "It works!" Now, the directory that files are served from is buried quite deep within your file system (C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs on an x64 system) so you'll probably want to change it to something a little easier to access. To do this we'll need to make a few minor configuration changes and will therefore need to edit the configuration file manually, but don't worry, it's just a simple text file! To open it, go to:
All Programs -> Apache HTTP Server 2.2 -> Configure Apache Server -> Edit the httpd.conf Configuration File
Scroll down to the Main Server Configuration section and find the DocumentRoot directive. Change it to something like C:/apache site and make sure you create a folder in this location. Below the DocumentRoot directive there are two Directory blocks. The second one, which is helpfully labeled in the file, will need to be changed to C:/apache site as well.
This is all we need to do at this point, but depending on how your Vista is set up, you may need to give your user account permission to save the changes to the httpd.conf file. Once you have saved the file, you should restart the server. This can be done by left-clicking the feather icon and choosing Apache2.2 Restart. You'll probably want to test that the change of the content-serving directory worked; drop a test HTML file into the C:apache site folder. Something like the following should suffice:
<html>
<head>
<title>Apache is the Best!</title>
</head>
<body>
<h1>Apache is the bomb!</h1>
</body>
</html>
Save this as apachetest.html and then open a browser and type http://localhost/apachetest.html in the address bar. You should then see the test page:

| | 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... | | | | | | >>> Post your comment now! | | | | | |
|
 |
|
|
|
|
| |
|
|
|
|
 |
|
|
|