Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
drupal_notes [2008-03-19 17:05] 81.188.78.24drupal_notes [2008-03-19 17:14] 81.188.78.24
Line 9: Line 9:
  
 to make a new site: to make a new site:
-  * make a vhost in /etc/apache2/sites-available/new_site+  * make a VirtualHost in /etc/apache2/sites-available/new_site
  
 <file> <file>
Line 15: Line 15:
         ServerAdmin admin@example.com         ServerAdmin admin@example.com
         DocumentRoot /usr/share/drupal5         DocumentRoot /usr/share/drupal5
-        ServerName 127.0.0.1+        ServerName new-site.example.com
  
         <Directory "/">          <Directory "/"> 
Line 35: Line 35:
 </VirtualHost> </VirtualHost>
 </file> </file>
 +
 +then symlink this VirtualHost from /etc/apache2/sites-enabled
 +
 +<code>
 +cd /etc/apache2/sites-enabled
 +ln -sf ../new-site 001-new-site
 +</code>
  
 also you need to make a new site config directory in /etc/drupal/5/sites. the easiest way to do this is to copy the "default" site: also you need to make a new site config directory in /etc/drupal/5/sites. the easiest way to do this is to copy the "default" site:
  
 <code> <code>
-cp -r /etc/drupal/5/sites/default /etc/drupal/5/sites/new-site+cp -r /etc/drupal/5/sites/default /etc/drupal/5/sites/new-site.example.com
 </code> </code>
 +
 +the name of the directory needs to be the domain under which the site will be accessed.
  
 make sure that both the dbconfig.php and settings.php files are writeable by www-user. make sure that both the dbconfig.php and settings.php files are writeable by www-user.
Line 48: Line 57:
 </code> </code>
  
 +before you have a real domain setup, you can edit your /etc/hosts file on your local machine and add an entry that points the domain at the ip address of the server. eg:
 +
 +<code>
 +78.46.38.135 new-site.example.com
 +</code>
  
 +now if you visit the new-site.example.com, it should run the installation script and set up the database.
  
 ==== themes ==== ==== themes ====
  • drupal_notes.txt
  • Last modified: 2008-03-31 17:24
  • by 81.188.78.24