Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revisionBoth sides next revision | ||
drupal_notes [2008-03-19 17:05] – 81.188.78.24 | drupal_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 / | + | * make a VirtualHost |
< | < | ||
Line 15: | Line 15: | ||
ServerAdmin admin@example.com | ServerAdmin admin@example.com | ||
DocumentRoot / | DocumentRoot / | ||
- | ServerName | + | ServerName |
< | < | ||
Line 35: | Line 35: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | then symlink this VirtualHost from / | ||
+ | |||
+ | < | ||
+ | cd / | ||
+ | ln -sf ../new-site 001-new-site | ||
+ | </ | ||
also you need to make a new site config directory in / | also you need to make a new site config directory in / | ||
< | < | ||
- | cp -r / | + | cp -r / |
</ | </ | ||
+ | |||
+ | 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: | ||
</ | </ | ||
+ | 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: | ||
+ | |||
+ | < | ||
+ | 78.46.38.135 new-site.example.com | ||
+ | </ | ||
+ | now if you visit the new-site.example.com, | ||
==== themes ==== | ==== themes ==== |