Book Image

Drupal 7 Mobile Web Development Beginner's Guide

By : Tom Stovall
Book Image

Drupal 7 Mobile Web Development Beginner's Guide

By: Tom Stovall

Overview of this book

<p>How disappointing is it to log on to a website for a product or business you love only to discover the feature you were drawn to doesn’t work on your mobile or tablet? Drupal has brand new features to adapt your existing site into a mobile site that will keep your customers coming back.</p> <p>The Drupal Mobile Web Development Beginner's Guide follows a humble 'Mom &amp; Pop' restaurant website which gets a makeover complete with cutting edge features that play to mobile, tablet and desktop audiences. By following the fun example, you will finish the book having effortlessly adapted your website so that it is accessible and, more importantly, looks good and functions well, on any mobile device.</p> <p>Restaurant websites are notoriously horrible to navigate and our Mom &amp; Pop example is wellintentioned but no exception to this rule. We bring this site out of the early 1990's with cutting edge development practices and a team development workflow. This pizza chain goes mobile with location services, audio, video, charting and mapping worthy of any multi-million dollar site. Each chapter examines the way the site works and shows you how to move the existing content and functionality into reusable features.</p>
Table of Contents (18 chapters)
Drupal 7 Mobile Web Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Pop quiz Answers

Time for action — configuring Apache


First, we need to establish the second URL locally, which means configuring Apache to respond and then configuring the development host to resolve.

For Mac, follow these steps:

  1. 1. Launch MAMP Pro.

  2. 2. Under the entry for DPK.LOCAL, add the site alias as m.dpk.local.

  3. 3. Click on the Apply button:

  • MAMP will warn you that it needs to restart Apache and MySQL. It will then do so. You may need to put in your administrator's username and password to approve the restarting of services.

For Windows, follow these steps:

  1. 1. Edit the Apache's vhosts.conf file, adding the highlighted line in the following code to the dpk.local virtual host definition:

    ServerAlias m.dpk.local
    <VirtualHost *:80>
    ServerName dpk.local
    ServerAlias m.dpk.local
    DocumentRoot "/Users/stovak/Sites/dpk"
    <Directory "/Users/stovak/Sites/dpk">
    Options Indexes Includes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>
    
  2. 2. Right...