CouchDB and PHP Web Development Beginner’s Guide
上QQ阅读APP看书,第一时间看更新

Time for action — opening your web browser

We are going to access the Apache service on our machine by opening a web browser, and navigating to Apache's URL.

  1. Open your web browser.
  2. Type http://localhost into the address bar, and hit Enter.
  3. Your browser will display the following message to you:
    Time for action — opening your web browser

What just happened?

We used the web browser to access Apache, and in return, it showed us a quick verification that everything was hooked up correctly. Our computer knew that we were trying to access our local Apache service because of the URL http://localhost. The URL http://localhost actually maps to the address http://127.0.0.1:80, which is the address and port of the Apache service. You will see 127.0.0.1 come up again when we discuss CouchDB.

PHP

PHP is in the title of this book, so you know it will play a big part in the development process. PHP is already installed on your machine, so you have nothing to install. Let's just double check that you can access PHP by using Terminal.