Mac Instructions
PHP Installation on a PC for Vista
I do not have a machine with Vista on it to test installation of PHP.
However, a student recommended the following:
I have PHP server running smoothly under Windows Vista Ultimate. I downloaded
WampServer2.1e-x32.exe
from http://www.wampserver.com/en/index.php .
The single download above
installs Apache, PHP server, mySQL and a PHP-based tool for administering mySQL,
and configures everything to work together.
There are probably two sources of problems students may have. First,
I'm not sure that Apache and IIS will run concurrently on the same physical
machine without some tweaking. The student should probably be sure that IIS is
not running. Second, he should probably save the download rather than running
it directly from the download screen. Then, after saving it, he should
right-click on it and choose "run as administrator" when he installs it.
I'm pretty sure the steps will be very similar to the steps for WAMP that I have listed below.
PHP Installation on a PC for Windows XP (and students have said works fine on Windows 7)
I could not get the steps for PHP installation in the book to work for me. I was able
to get these steps to work on a PC.
- Go to http://www.wampserver.com/en/
- Click on Download the latest release of Wampserver 2
- Notice the warning:
WARNING : do not try to install WampServer 2 over WAMP5. If WAMP5 is installed on your computer,
save your data, uninstall it and delete the WAMP5 directory before installing WampServer 2.
- Click on DOWNLOAD WampServer 2.0 (current version)
- Click Save File
- Find where you saved your file. If you can't remember, do a search for WampServer2.O.exe
- Click on WampServer2.O.exe, and click Run
- If you know you do not have Wamp5 installed, click yes
- Close your other applications and click Next
- Select I accept the agreement and click Next
- Keep or change the default folder and click Next
- Decide if you want a quick launch icon or a desktop icon and click Next
- Select Install
- Select your default browser and add your email if you choose and click Next
- Select Finish
- Using My Computer go to C:\wamp\www or the location where you installed wamp.
- Either rename or delete index.php
- This folder is now your server. Drag any pages here that you would need if you were
uploading to any server. (You do not need to change the properties on the txt files.
- Open your browser
- Enter http://localhost/ in the address bar
- Bookmark this location
- Save all of your pages in your wamp/www folder (or mamp/www folder).
- You must invoke the wamp server so that it shows to be online, enter http://localhost in your address bar, and
you should see the default index page with links to your pages saved in your www folder.
- You can now view any of your html or php pages locally.
PHP Installation on a Mac
- Go to http://www.mamp.info/en/index.html.
- Click on Download now beneath MAMP: One-click-solution for setting up your personal webserver
- Select Save File
- Go to download folder and drag MAMP_MAMP_PRO_x.x.dmg.zip to desktop
- Double click file.
- Double click .dmg file
- Click agree.
- Follow instructions given in set up to place MAMP in Application folder only.
- Go to your applications, hover over MAMP, then inside the MAMP folder click on MAMP.
- There should be a window opened that says MAMP manage your website locally. Click Start Servers.
- Save your files in a folder named htdocs.
- To access your pages enter http://localhost:8888/. This will give you the default index page for your files.