Changes between Version 4 and Version 5 of faq/setup-development-workstation


Ignore:
Timestamp:
Feb 22, 2008, 5:46:58 PM (16 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • faq/setup-development-workstation

    v4 v5  
    6565In this example, let's assume the workstation is named "fidel." So - a new project called mfpl would have the development domain name: mfpl.fidel (below we will edit the /etc/hosts file so that this non-public domain name will resolve to the development workstation).
    6666
     67Create a projects directory in your home directory:
     68
     69{{{
     70mkdir ~/projects
     71}}}
     72
    6773Apache can be configured so that it dynamically sets the document root based on the domain name.
    6874
     
    8288
    8389== Steps to create a new project ==
     90
     91With your environment setup, you can easily start a new project by following these steps:
     92
     93 * Choose a name for the project. In this example, we'll choose the name mfpl (and remember - in our example the computer name is fidel).
     94 * Create the mysql database with:
     95{{{
     96mysql -u root -p -e "CREATE DATABASE mfpl; GRANT ALL ON mfpl.* to 'mfpl'@'localhost' identified by 'mfpl';"
     97}}}
     98 * Create a your project folders with:
     99{{{
     100mkdir ~/projects/mfpl
     101mkdir ~/projects/mfpl/web
     102mkdir ~/projects/mfpl/cgi-bin
     103}}}
     104 * Add a new domain to your /etc/hosts file. Add it to the line that starts with 127.0.1.1 (you can safely create the line if it doesn't exist). For example:
     105{{{
     106127.0.0.1       localhost
     107127.0.1.1       fidel.sunsetpark.mayfirst.org   fidel mfpl.fidel
     108}}}
     109
     110Now you are ready to begin. You can start placing files in your project's web directory and access your project at the URL: !http://mfpl.fidel/