Vista and apache




















Reviews Sort by:. Connie Wright. Buster Heiman. January 14, Laura Wildes. February 17, Linda Jean Fenner. December 2, November 14, Hiking No shade. First to Review. John Eaton. January 11, Katie R. January 8, Dave Burke. January 1, Caleb Diercks. December 7, Mark Cochrane. December 5, Moises Benavides Elizondo. November 28, Mountain biking. Barb Colwell. There are a few more configuration changes you must make to use WAMP. Firstly, open a port on your router and allow it to forward requests to WAMP.

This will allow you to connect to your WAMP server from outside your local area network. You will need to learn what your local area network IP address is before opening a port on the router. It will open up a command prompt window. Once in Command Prompt, type ipconfig. Your address will be different from the one displayed. Click the "Classic View" line in the left column.

In the right column, scroll down to locate "Windows Firewall" and doubleclick it. Click the "Change settings" link in the Windows Firewall window. Vista's User Account Control dialog box will appear. In the Windows Firewall Settings dialog box that appears, click the "Exceptions" tab near the top of the dialog box.

Select it with one click, being careful not to uncheck the box. If you accidentally unchecked it, just click it again to put the tick back. Click the "Properties" button.

The "Edit a Port" dialog box appears. Click the "Change scope" button in that dialog box. A new dialog box, "Change Scope", appears. The radio button "Any computer" should be currently selected. Click "My network subnet only" to select it. Click "OK". You will also probably want to close the Windows Firewall and Control Panel windows as well.

Just click the "X" in the corner of those windows to get rid of them. Now that you have a MySQL server running on your machine, you will probably want to set up PHP so that your scripts can access databases on the server.

As mentioned earlier, I will assume that you have already set up PHP. If this is not true, please see my guide on this first.

Open up your php. If you have followed the steps in my guide, you should already be familiar with how to do this. Be careful. It's surrounded by a number of lines that look very similar. A semi-colon indicates the start of a comment, which is ignored by the PHP interpreter. Removing it makes the line a configuration setting. If you did not previously set the session path in php. It's in the section entitled "Session Path".

You don't need to do this if you know for sure that your script does not use sessions. However, if you use third party scripts that need a MySQL database, it will probably need session support. Now start up Windows Explorer. That is, click the Start menu, followed by "Computer". A window should open. Look for "System properties" somewhere near the top of the window. Click it. Then click "Advanced system settings" in the left column. The Vista User Account Control should appear.

In the "System Properties" dialog box that appears, click the "Environment Variables" button. Then look at the name of the service on the left. Hopefully, the name of the service is informative enough for you to track down the program that currently uses that port.

If so, start up that program eg from your Start menu and look for a way to stop it from listening on port 80 in its Options. You can stop Skype from listening on port 80 from its Advanced Options.

If you have already tried installing Apache once before, make sure you uninstall it and then go through your "Program Files" folder and delete any remaining Apache files.

If you don't, your new installation won't work correctly. When you've finished with the above, close the command prompt window and the Windows Task Manager. Just hit the "X" close button on those windows. If you haven't got Apache 2.

Since this guide deals with the 2. You will be brought to the download page. Scroll down and look for one of the "Win32 Binary" links. Make sure that you get the 2. Save the file on your desktop. Technically speaking, you can save it anywhere you like, but I shall assume that you saved it on your desktop in this tutorial.

It's best that you save it on your desktop if you're following this tutorial, otherwise some of the command lines that you will use below won't work correctly. Before you run the installer, you will need to open the command prompt window as administrator. To do this, click the Start menu button, the "All Programs" menu item, the "Accessories" folder, and look for the item "Command Prompt".

Do NOT click it, or you'll be running the command prompt with normal rights even if you're logged in as an administrator. Instead, right click "Command Prompt" click with the right mouse button , and click the "Run as administrator" item in the menu that pops out.

Vista will prompt you with a dialog box entitled "User Account Control". Click the "Continue" button. A command prompt window will open. If you do not see the title "Administrator Command Prompt" on your command prompt window, it means you did it wrongly.

Close the command prompt window and redo this step, this time following every step of my instructions. Include all the quotation marks and the percent sign. That is, type it literally as given. This command switches you to your desktop directory, where you have saved your Apache installer. Next, you will need to run the Apache installer from this command line. The actual name of the Apache installer file is different depending on the version you downloaded. Later versions may, instead, have an ".

Now run the installer by typing the full name of the file including the extension, especially if it has an ". If you are too lazy to type the full filename, are a slow typist or simply afraid that you'll give the wrong filename, a shortcut is to type "apache" and hit the TAB key.

The command line shell the Command Prompt will immediately try to complete the filename for you. If you have many files on your desktop starting with the word "apache", just keep hitting the TAB key until Command Prompt auto-completes the correct filename for you. The Apache installation wizard will then pop up.

Follow the installer's instructions on setting up the web server that is, read the information displayed in each dialog box, and click the necessary buttons.

For the most part, installing is pretty straightforward. Don't worry, the not-so-straightforward portions are described in detail in the next few paragraphs. When you come to the "Server Information" window, enter "localhost" without the quotation marks in both the "Network Domain" and "Server Name" fields.

In the "Administrator's Email Address" field, enter whatever email address you wish. In theory, this information is used by the installer to create a default configuration file for your web server.

In practice, the installer seems to ignore whatever you enter here. But you should still enter what I said earlier, just in case the installer has been fixed in the version you use.

You can easily modify this in your configuration file later if you change your mind. Leave the default option "for All Users, on Port 80, as a Service" as it is. When you're satisfied with what you've entered, click the "Next" button. When you're presented with the "Setup Type" screen, leave the default setting of "Typical" and click "Next". You'll be asked for the location to install Apache. I will assume that you've installed to this location in the rest of this article.

Click "Next". When the "Ready to Install the Program" window appears, click the "Install" button. The setup utility will proceed to set up Apache on your machine. When the installer is done, click the "Finish" button to dismiss it. There should be no error messages or error windows. If you get any errors, it probably means that you did not rigorously follow my procedure in this guide.



0コメント

  • 1000 / 1000