<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="https://build2be.com"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>build2be/com/e - simpletest</title>
 <link>https://build2be.com/category/simpletest</link>
 <description></description>
 <language>en</language>
<item>
 <title>My development environment so far</title>
 <link>https://build2be.com/content/my-development-environment-so-far</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;h3&gt;Intro&lt;/h3&gt;

These are my notes when doing my first (drupal) presentation @ FrOSCon 2008 Drupal Room

This method uses the concepts
&lt;ol&gt;
&lt;li&gt;All drupal sites in directory www&lt;/li&gt;
&lt;li&gt;All site-config in a separate directory&lt;/li&gt;
&lt;li&gt;All site-data in a separate directory&lt;/li&gt;
&lt;/ol&gt;

This way an upgrade to another drupal version runs smoothly. Hmmm this was about developer environment.

&lt;h3&gt;Add new local domain&lt;/h3&gt;

Why do I need this? To make sites like http://nf.test http://nf.dev  or http://froscon.demo

&lt;pre&gt;&lt;code&gt;sudo su -
echo 127.0.0.254&amp;nbsp; froscon.demo &amp;gt;&amp;gt; /etc/hosts
exit&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;add apache site&lt;/h3&gt;
We need a new website with a configured drupal install somewhere. Key words are VirtualRoot and DocumentRoot.

This is my template &lt;a href=&quot;/sites/build2be.com/files/TEMPLATE.txt&quot;&gt;TEMPLATE&lt;/a&gt;
&lt;pre&gt;&lt;code&gt;sudo su -
cd /etc/apache2/sites-available
cp TEMPLATE.tmp froscon.demo
vi froscon.demo
# :%s/HOSTNAME/froscon.demo/g
# DON&amp;#039;T FORGET TO CHANGE DocumentRoot and log file locations
# :wq
exit&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;Let apache know of the new site&lt;/h4&gt;

&lt;pre&gt;&lt;code&gt;a2ensite froscon.demo
/etc/init.d/apache2 reload
exit&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;Installing drupal&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;cd /home/clemens/www&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;Get and unpack your drupal version&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;cd /home/clemens/usr/lib/drupal/core
wget http://ftp.drupal.org/files/projects/drupal-6.4.tar.gz
tar xvf drupal-6.4.tar.gz&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;create site&lt;/h3&gt;

This is my &lt;a href=&quot;/sites/build2be.com/files/new-site.php_.txt&quot;&gt;new-site.php&lt;/a&gt; script.

&lt;pre&gt;&lt;code&gt;cd /home/clemens/www
vi new-site.php
# change site name
# change drupal version

php new-site.php | bash&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;install site&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;cd ~/www/sites-data/froscon.demo/
cp default.settings.php settings.php 
chmod 777 settings.php&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;Create the database&lt;/h3&gt;

This is my &lt;a href=&quot;/sites/build2be.com/files/new-db.php_.txt&quot;&gt;new-db.php&lt;/a&gt; script.

&lt;pre&gt;&lt;code&gt;vi new-db.php
# edit hostname
# :wq
php new-db.php | mysql -u root&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;Fire up drupal&lt;/h3&gt;

http://froscon.demo

Do as drupal tells you
&lt;pre&gt;&lt;code&gt;chmod 777 settings.php&lt;/code&gt;&lt;/pre&gt;
and then reset it again
&lt;pre&gt;&lt;code&gt;chmod 755 settings.php&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;install drush&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;cd /home/clemens/www/site-config/froscon.demo/modules
wget http://ftp.drupal.org/files/projects/drush-6.x-1.x-dev.tar.gz
wget http://ftp.drupal.org/files/projects/drush_mm-6.x-1.x-dev.tar.gz
tar xzf drush_*&lt;/code&gt;&lt;/pre&gt;

http://froscon.demo/admin/build/modules

&lt;h3&gt;Running wild on the command line&lt;/h3&gt;

Install &lt;a href=&quot;/sites/build2be.com/files/drush.txt&quot;&gt;my drush script runner&lt;/a&gt; to follow along with the commands.
&lt;pre&gt;&lt;code&gt;cd ~/www
./drush froscon.demo help

./drush froscon.demo pm install simpletest cck node_factory

./drush froscon.demo mm dot | neato -o ~/froscon/2008/frosdem.png -T png

./drush froscon.demo -s -v mm enable drush_simpletest

./drush froscon.demo mm enable drush_simpletest nodereference&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;Running simpletest&lt;/h3&gt;

http://froscon.demo/admin/build/simpletest

&lt;pre&gt;&lt;code&gt;vi ~/www/sites-config/froscon.demo/settings.php &lt;/code&gt;&lt;/pre&gt;

http://froscon.demo/admin/build/simpletest

&lt;h3&gt;uninstall modules&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;./drush froscon.demo -v -s mm uninstall content

./drush froscon.demo mm uninstall content
rm -r sites-config/froscon.demo/modules/cck/

./drush froscon.demo mm dot | neato -o ~/froscon/2008/frosdem.png -T png&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;eclipse&lt;/h3&gt;

- a test from node_factory
- mylyn task tracking
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-upload field-type-file field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;div class=&quot;table-responsive&quot;&gt;
&lt;table class=&quot;table table-hover table-striped sticky-enabled&quot;&gt;
 &lt;thead&gt;&lt;tr&gt;&lt;th&gt;Attachment&lt;/th&gt;&lt;th&gt;Size&lt;/th&gt; &lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
 &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;file&quot;&gt;&lt;img class=&quot;file-icon&quot; alt=&quot;Plain text icon&quot; title=&quot;text/plain&quot; src=&quot;/modules/file/icons/text-plain.png&quot; /&gt; &lt;a href=&quot;https://build2be.com/sites/build2be.com/files/TEMPLATE.txt&quot; type=&quot;text/plain; length=434&quot; title=&quot;TEMPLATE.txt&quot;&gt;TEMPLATE.txt&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;434 bytes&lt;/td&gt; &lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;file&quot;&gt;&lt;img class=&quot;file-icon&quot; alt=&quot;Plain text icon&quot; title=&quot;text/plain&quot; src=&quot;/modules/file/icons/text-plain.png&quot; /&gt; &lt;a href=&quot;https://build2be.com/sites/build2be.com/files/new-site.php_.txt&quot; type=&quot;text/plain; length=2266&quot; title=&quot;new-site.php_.txt&quot;&gt;new-site.php_.txt&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;2.21 KB&lt;/td&gt; &lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;file&quot;&gt;&lt;img class=&quot;file-icon&quot; alt=&quot;Plain text icon&quot; title=&quot;text/plain&quot; src=&quot;/modules/file/icons/text-plain.png&quot; /&gt; &lt;a href=&quot;https://build2be.com/sites/build2be.com/files/new-db.php_.txt&quot; type=&quot;text/plain; length=451&quot; title=&quot;new-db.php_.txt&quot;&gt;new-db.php_.txt&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;451 bytes&lt;/td&gt; &lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;file&quot;&gt;&lt;img class=&quot;file-icon&quot; alt=&quot;Plain text icon&quot; title=&quot;text/plain&quot; src=&quot;/modules/file/icons/text-plain.png&quot; /&gt; &lt;a href=&quot;https://build2be.com/sites/build2be.com/files/drush.txt&quot; type=&quot;text/plain; length=581&quot; title=&quot;drush.txt&quot;&gt;drush.txt&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;581 bytes&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-4 field-type-taxonomy-term-reference field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;free form:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/category/drushmm&quot;&gt;drush_mm&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/category/drush&quot;&gt;drush&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/category/development&quot;&gt;development&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/category/planet-drupal&quot;&gt;planet drupal&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/category/simpletest&quot;&gt;simpletest&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Fri, 22 Aug 2008 11:40:43 +0000</pubDate>
 <dc:creator>clemens</dc:creator>
 <guid isPermaLink="false">57 at https://build2be.com</guid>
 <comments>https://build2be.com/content/my-development-environment-so-far#comments</comments>
</item>
</channel>
</rss>
