SquidGuard is a URL redirector used to use blacklists with the proxysoftware Squid. There are two big advantages to squidguard: it is fast and it is free.
Revision of Create a new website from Tue, 12/28/2010 - 12:20
Revisions allow you to track differences between multiple versions of your content, and revert back to older versions.
Create a site using your Drupal repo
mkdir /tmp/projectname
cd /tmp/projectname
mkdir branches trunk tags
Create the SVN project for your site:
svnadmin create /var/svn/projectname
svn import /tmp/projectname file:///var/svn/projectname -m "initial creation of site structure"
Adjust the repo file permissions:
find /var/svn/projectname -type f -exec chmod 660 {} \;
find /var/svn/projectname -type d -exec chmod 2770 {} \;
chown -R nobody.nobody /var/svn/projectname
Create the Trac project:
cd /var/trac
trac-admin projectname initenv
Adjust the project's file permissions:
chown -R nobody:nobody projectname
Give the Administrator access to the project but remove Anonymous access:
cd /var/trac
trac-admin projectname permission add administrator TRAC_ADMIN
trac-admin projectname permission remove anonymous '*'
Check out a working copy
We'll store our website copy in /var/websites
to keep it separate from the Apache programs in /usr/local/bin/apache2
. This will also make a directory for the Apache logs:
mkdir -p /var/websites/projectname/logs
mkdir /var/websites/projectname/htdocs
We'll then checkout a copy from svn into /var/websites/projectname/htdocs/drupal-6.20
:
cd /var/websites/projectname/htdocs
svn checkout http://<your_svn_server>/svn/projectname/trunk .
Hmmmm...there's nothing in the resulting htdocs
folder. We need to copy the Drupal core files from our Drupal repo:
svn export http://<your_svn_server>/svn/drupal/6.x/core/current drupal-6.20
Move the sites
folder out of the Drupal core and put a symbolic link there instead:
mv drupal-6.20/sites .
cd drupal-6.20
ln -s ../sites sites
cd ..
Make a copy of original settings.php
and give write permissions to it:
- Drupal 6.x:
cp sites/default/default.settings.php sites/default/settings.php
chmod ugo+w sites/default/settings.php - Drupal 5.x:
cp sites/default/settings.php sites/default/settings-orig.php
chmod ugo+w sites/default/settings.php
Load the site in your web browser and perform the initial configuration. Afterwards, create the files
directory:
mkdir sites/default/files
chmod ugo+w sites/default/files
Set the site's files
location in the web admin /admin/settings/file-system
.
With a basic site up and running, commit the changes into the site's SVN repo:
cd /var/websites/projectname/htdocs
svn add drupal-6.20
svn add sites
svn commit -m "Initial site configuration."
- Log in to post comments