My getting started with Drupal

When I want to install a new site on my laptop I do the following

  1. Edit /etc/hosts to add a new domain.
    sudo echo test 127.0.0.12 > /etc/hosts
  2. Next I add a new website
    vi /etc/apache2/sites-available/test
  3. To make the newly create site work there needs to be a directory to land on.
    mkdir -p /home/me/sites/test
  4. We can now enable the newly created site
    sudo a2ensite test
    sudo /etc/init.d/apache2 reload
  5. Now test whether both domain and website are working
    ping test
    wget test

Now suppose the directory /home/me/sites/test is actually a symlink to drupal? Then it become easier to install 10 sites with another few tricks.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.