| 90 | |
| 91 | With 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 | {{{ |
| 96 | mysql -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 | {{{ |
| 100 | mkdir ~/projects/mfpl |
| 101 | mkdir ~/projects/mfpl/web |
| 102 | mkdir ~/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 | {{{ |
| 106 | 127.0.0.1 localhost |
| 107 | 127.0.1.1 fidel.sunsetpark.mayfirst.org fidel mfpl.fidel |
| 108 | }}} |
| 109 | |
| 110 | Now 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/ |