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.

Reacties

Nieuwe reactie inzenden

De inhoud van dit veld is privé en zal niet openbaar worden gemaakt.
  • Adressen van webpagina's en e-mailadressen worden automatisch naar links omgezet.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Regels en paragrafen worden automatisch gesplitst.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

Meer informatie over formaatmogelijkheden

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.