Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
drupal_notes [2008-03-19 16:59] – 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 |
- | <pre> | + | <file> |
< | < | ||
- | ServerAdmin | + | ServerAdmin |
DocumentRoot / | DocumentRoot / | ||
- | ServerName | + | ServerName |
< | < | ||
Line 34: | Line 34: | ||
ServerSignature Off | ServerSignature Off | ||
</ | </ | ||
- | </pre> | + | </file> |
+ | |||
+ | then symlink this VirtualHost from / | ||
+ | |||
+ | < | ||
+ | cd / | ||
+ | ln -sf ../new-site 001-new-site | ||
+ | </ | ||
+ | |||
+ | also you need to make a new site config directory in / | ||
+ | |||
+ | < | ||
+ | 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. | ||
+ | |||
+ | < | ||
+ | chmod g+w / | ||
+ | </ | ||
+ | |||
+ | 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 ==== |