For Drupal there are some installation guides around which tell you to install PHP first, but that's not necessary with Cloud9.
You don't need to install MySQL either, it is already preinstalled in PHP workspaces.
Just make a new workspace, choose PHP, go to the Terminal, and execute the following:
curl -O http://ftp.drupal.org/files/projects/drupal-7.39.tar.gz
tar xvf drupal-7.39.tar.gz
mv drupal-7.39/* workspace/
mv drupal-7.39/.htaccess workspace/
Open the file install.php in the file tree, and while opened, click on the "Run Project" button in the menu bar on top of the IDE.
An URL will be shown at the bottom of the page, something like
https://projectname-username.c9.io/, but with your username and workspace name in it.
Copy the url in a new browser tab and you will see the install page of Drupal
If the Drupal install is trying to load certain stylesheets over HTTP and the page is loaded with HTTPS then those stylesheets will break and leave the page unstyled. If this occurs, reload the page with
http:// at the beginning.
You can now proceed with the installer.
Now be careful inserting the correct values for the database. You need to change the values as follows:
User: Your username
c9 (or you may make another database before running this install and use that one)
localhost will not work, while
Be sure to open the Advanced Options in the database settings page so you can change the host to
Now fill the form with the correct site information:
Continue the setup and enjoy your website!
Correct the broken styles by enabling SSL as follows: go to the Terminal, and execute the following:
sudo pico settings.php
Scroll down to the line:
# base_url = 'http://www.example.com';
$base_url = 'https://projectname-username.c9.io'; // NO trailing slash!
Press Ctrl+x to save the file
Press Y to confirm you want to save the changes.
The file name that will be overwritten (
settings.php), is shown. Press Enter to confirm.
Refresh the browser panel and your drupal-site will appear including stylesheets.