Last updated December 12, 2012. Created by kreynen on December 6, 2012.
Edited by avguy. Log in to edit this page.
There are a number of ways to create a test site.
Steps for a Standard Ubuntu/Apache2 Server
Get the Code to Your Server
- Log into your site using SSH with root or an account with sudo account
cd /var/wwwwget http://ftp.drupal.org/files/projects/cm_starterkit_moderate-7.x-1.12-core.tar.gz(use the link to most recent version of the kit http://drupal.org/project/cm_starterkit_moderate)tar -xvf cm_starterkit_moderate-7.x-1.12-core.tar.gzmv cm_starterkit_moderate-7.x-1.12 [youdecide].[yourdomain].org
Create a Database
- $ mysql -u ''adminusername'' -p
- mysql> CREATE DATABASE ''databasename'';
- mysql> GRANT ALL PRIVILEGES ON ''databasename''.* TO "''username''"@"''localhost''" IDENTIFIED BY "''password''";
- mysql> FLUSH PRIVILEGES;
- mysql> EXIT
Tell Apache Where to Send Requests for [youdecide].[yourdomain].org with a VHost
cd /etc/apache2/sites-availablesudo nano [youdecide].[yourdomain].org<VirtualHost *:80>
ServerName [youdecide].[yourdomain].org
ServerAdmin webmaster@localhost
DocumentRoot /var/www/[youdecide].[yourdomain].org
AccessFileName .htaccess
<Directory /var/www/[youdecide].[yourdomain].org>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>- Save the file using ctrl-X
- Tell Apache2 to enable the new site using the new VHost file
sudo a2ensite [youdecide].[yourdomain].org - The server should tell you
Run '/etc/init.d/apache2 reload' to activate new configuration! sudo service apache2 restart(service is easier to remember than init.d)
The last step requires you add a ANAME or CNAME record to your DNS provider. These steps vary based on where your domain is registered.