Using the Drupal.org testing profile

Last modified: November 8, 2009 - 06:49

The Drupal.org testing profile is an installation profile that can be used to create a test site that is configured in a similar way to the drupal.org site.

In general, to use an installation profile you do the following:

  1. Download and extract Drupal.
  2. Create a database and/or database user for your installation.
  3. Download the Drupal.org testing.profile installation profile and extract it into the /profiles directory.
  4. Download the modules required by the Drupal.org testing profile and extract them into the /sites/all/modules directory. For the Drupal.org testing profile, the following modules are required:
  5. Install Drupal from your web browser. When asked what installation profile should be used, choose the Drupal.org testing profile.

There are some configuration options that you might want to change before you install Drupal. Using a text editor, open the /profiles/drupalorg_testing/drupalorg_testing.profile file and change any of the options at the top of the file.

If you frequently need to create sites using this profile, it is helpful to create a script to automate the creations of these sites. Attached to this handbook page is a bash shell script (drupal_testing_install.sh) that has been tested on both Linux and MacOS X. You will probably need shell access to your web server to run this script. The script also requires that the cvs command line client also be installed. Open the script in a text editor and change the options at the top of the file to match what needs to be used on your system before you run this script for the first time.

Also attached to this handbook page is a template MySQL script (testing_mysql_create_user_and_database_template.mysql) that will be called by drupal_testing_install.sh. If you use a different database server on your site, you may be able to edit this MySQL template file to work with your database system. If you edit this MySQL script file, do not change either installation_name or passwordGoesHere. Those will be replaced with the installation name and a randomly generated password when the drupal_testing_install.sh script is run.

The script takes one required parameter: an identifier of your test site. The test site will be installed in a directory with this name that is in your web root. In addition, the database and database user that will be created by the script will also have this same name.

Here is an example of what using this script from the command line looks like:

Macintosh:drupal $ ./drupal_testing_install.sh form1
cvs checkout: Updating drupal
U drupal/.htaccess
    [ Lots of CVS progress messages]
U profiles/drupalorg_testing/drupalorg_testing.profile


A file with MySQL statements has bee created in the current directory. The name of this file is testing_mysql_create_user_and_database_form1.sql
The statements in this file will be used to create your test user and database.
You probably should delete this file when you are finished setting up your
test site.

Enter password:

To finish installing your site, you need to run the web based Drupal
installer.
Go to the following URL to finish installation:
http://localhost/form1/drupal

Use the information below where requested:
Installation profile: Drupal.org testing
Database type: mysql
Database name: form1
Database username: form1
Database password: jfsd83rsRs-90

AttachmentSize
testing_mysql_create_user_and_database_template.mysql_.txt369 bytes
drupal_testing_install.sh_.txt4.53 KB

Watch out.

Island Usurper - August 16, 2008 - 18:52

Make sure that the "files/issues" folder exists in your Drupal root before you install the profile. Otherwise, none of the patches will get attached correctly.

This installation profile

himtuna - April 30, 2009 - 05:16

This installation profile also require some more modules

good point. I verified what

slip - November 8, 2009 - 06:53

good point. I verified what you said and added it to the body of the page.

 
 

Drupal is a registered trademark of Dries Buytaert.