Project

General

Profile

Actions

DataPortalDeveloperEnvironmentSetupLinux » History » Revision 7

« Previous | Revision 7/91 (diff) | Next »
Patrick Plitzner, 04/14/2014 03:37 PM


Local dataportal development and test environment on Debian based Linux

Requires installed: mysql, apache2, php5-gd, php5-common:

sudo apt-get install php5 libapache2-mod-php5 php5-cli php5-common php5-curl php5-gd php5-mcrypt php5-mysql php5-suhosin php5-xdebug php5-json

NOTE: php5-suhosin may not be needed/available anymore. Does not matter

  1. get latest drupal from http://cybertaxonomy.eu/download/dataportal/stable/ (drupal7-cdm_dataportal-x.x.x.tar.gz)

  2. extract to /var/www

NOTE: It would be better to install it in sub folder of ~/@, e.g. @~/workspaces/www/drupal7-cdm_dataportal@, this however would involve that you modify the @/etc/apache2/sites-available/default accordingly.

  1. Go to /var/www/drupal/sites/all

  2. delete /themes

  3. insert symlink to checked out themes from svn (http://dev.e-taxonomy.eu/svn/trunk/drupal/7.x/themes/)

sudo ln -s /path/to/svn/drupal/7.x/themes/ themes
  1. delete /modules/cdm_dataportal

  2. insert symlink to checked out cdm_dataportal modules from svn (http://dev.e-taxonomy.eu/svn/trunk/drupal/7.x/modules)

sudo ln -s /path/to/svn/drupal/7.x/modules/cdm_dataportal/ modules/cdm_dataportal
  1. Go to /var/www/drupal/profiles

  2. delete /CDM_DataPortal and CDM_DataPortal_Testing

  3. insert symlink to checked out profiles from svn (http://dev.e-taxonomy.eu/svn/trunk/drupal/7.x/modules/cdm_dataportal/profile/)

sudo ln -s /path/to/svn/drupal/7.x/modules/cdm_dataportal/profile/CDM_Portal/ CDM_Portal
sudo ln -s /path/to/svn/drupal/7.x/modules/cdm_dataportal/profile/CDM_Portal_Testing/ CDM_Portal_Testing
  1. change ownership of drupal folder to www-data
 sudo chown -R www-data:www-data /var/www/drupal/. <-- not sure what ownership is necessary but this works
  1. Create database as root:

newSite

if you're not logged in to mysql as root then also:

 GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON newSite.* TO 'username'@'localhost';
  1. got to localhost/drupal/install.php

Setup of the PDT project in eclipse

[!drupal-project-includespng!|!drupal7-core-buildpath.png!]

PDT launch configuration for Drupal projects

[!d7-pdt-launcher-1png!|!d7-pdt-launcher-2.png!]

Updated by Patrick Plitzner about 10 years ago · 7 revisions