HTML and CSS Reference
In-Depth Information
If you get that error, double-click the database name in the left pane and run the script
You now have PHP and MySQL set up and working on your Windows 7 machine.
C.3. Installing PHP and MySQL on Mac OS X Mountain Lion
All recent versions of Mac OS X come equipped with Apache and PHP. By default, Apache
is not running, nor is it configured to load PHP when it runs. To get everything running,
you'll need to follow along with a few steps.
C.3.1. Configuring Apache and PHP
To get PHP running on your computer you must first edit a couple of Apache configuration
files. By default, these files are hidden from the Finder, so the easiest way to access them is
through the Terminal application. Don't worry if you're not familiar with the Terminal and
command line in OS X; just follow along and you should be okay.
For brevity, when we display the command line we'll simply use $ to represent the prompt.
Any bold text is text that you'll type in, and any nonbold text is what will appear in the
Using the Terminal
The Terminal app can be found in the Applications/Utilities folder on your system.
Open the Terminal and you'll be presented with a greeting message followed by a prompt
that looks similar to this:
MacBook:~ scott$
The first part of the prompt, MacBook , is the hostname of your computer; this will most
likely be different on your computer. (The hostname can be set to whatever you'd like in
Search WWH ::

Custom Search