Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
drupal_notes [2008-03-19 16:41] – created 81.188.78.24drupal_notes [2008-03-24 17:53] 81.188.78.24
Line 2: Line 2:
 ==== setup on debian ==== ==== setup on debian ====
   * http://www.debian-administration.org/articles/544   * http://www.debian-administration.org/articles/544
 +  * creating the database user: http://drupal.org/getting-started/5/install/create-database/mysql
 +
 +=== multisite setup on debian ===
 +
 +the drupal5 package installs drupal in /usr/share/drupal5, with config files in /etc/drupal/5. with a multi-site setup, this is the codebase that will be used by all of the sites. in theory it will be updated by the package-manager.
 +
 +the following is based on http://drupal.org/getting-started/5/install/multi-site
 +
 +to make a new site:
 +
 +make a VirtualHost in /etc/apache2/sites-available/new_site
 +
 +<file>
 +<VirtualHost *>
 +        ServerAdmin admin@example.com
 +        DocumentRoot /usr/share/drupal5
 +        ServerName new-site.example.com
 +
 +        <Directory "/"> 
 +               Options FollowSymLinks
 +               AllowOverride None
 +        </Directory>
 +
 +        <Directory "/usr/share/drupal5">
 +               Options Indexes FollowSymLinks MultiViews
 +               AllowOverride None
 +               Order allow,deny
 +               allow from all
 +        </Directory>
 +
 +        ErrorLog /var/log/apache2/error.log
 +        LogLevel warn
 +        CustomLog /var/log/apache2/access.log combined
 +        ServerSignature Off
 +</VirtualHost>
 +</file>
 +
 +then symlink this VirtualHost from /etc/apache2/sites-enabled
 +
 +<code>
 +cd /etc/apache2/sites-enabled
 +ln -sf ../new-site 001-new-site
 +</code>
 +
 +also you need to make a new site config directory in /etc/drupal/5/sites. the easiest way to do this is to copy the "default" site:
 +
 +<code>
 +cp -r /etc/drupal/5/sites/default /etc/drupal/5/sites/new-site.example.com
 +</code>
 +
 +the name of the directory needs to be the domain under which the site will be accessed.
 +
 +make sure that both the dbconfig.php and settings.php files are writeable by www-data.
 +
 +<code>
 +chown .www-data /etc/drupal/5/sites/dbconfig.php /etc/drupal/5/sites/settings.php
 +chmod g+w /etc/drupal/5/sites/dbconfig.php /etc/drupal/5/sites/settings.php
 +</code>
 +
 +before you have a real domain setup, you can edit your /etc/hosts file on your local machine and add an entry that points the domain at the ip address of the server. eg:
 +
 +<code>
 +78.46.38.135 new-site.example.com
 +</code>
 +
 +//possibly you also need to add this to the server /etc/hosts file???//
 +
 +now if you visit the new-site.example.com, it should run the installation script and set up the database.
 +
  
 ==== themes ==== ==== themes ====
-  * http://drupal.org/project/Themes+  * overviews  
 +    * http://themegarden.org/drupal50/ 
 +    * http://alldrupalthemes.com/ 
 +    * http://drupal.org/project/Themes 
 +  * theme construction >> http://drupal.org/project/atck 
 +  * A collection of 'How-to' articles on subjects relevant to theme developers >> http://drupal.org/node/22803 
 +  * Neem-tree tutorials on themes & theming.. . 
 +    * http://neemtree.com.au/drupal-theming-designers 
 +    * http://neemtree.com.au/drupal-theming-designers-continued 
 +  * theming a particular content type: http://drupal.org/node/17565 
 + 
 + 
 + 
 +==== modules ==== 
 +  * timeline http://drupal.org/project/timeline 
 +    * development 5.x release http://drupal.org/node/77900/release 
 +  * views_multiblock: http://drupal.org/project/views_multiblock 
 +    * allegedly allows blocks to take arguments from the currently viewed node (eg, taxonomy) 
 + 
 + 
 +==== things to find out ==== 
 + 
 +  * flickr integration? 
 +    * special arrangements like our frontpage picture selection idea? 
 +    * http://www.lullabot.com/articles/how_to_build_flickr_in_drupal 
 +    * module that uploads to flickr and drupal at the same time: http://drupal.org/project/flickrup 
 +      * how to get the flickr filter working? 
 +  * how to do lists of related links 
 +    * will they be made manually? or based on tags? or... 
 +    * views? 
 +    * and only have them show up on the correct pages 
 +      * block configuration? if the pages have urls that can be selected with a wildcard, then it will be easier. 
 +    * about tags: http://drupal.org/handbook/modules/taxonomy/ 
 +    * "Displaying related nodes using Views and Contemplate" > http://drupal.org/node/134320 
 +  * what is cck? ;) 
 +    * http://drupal.org/project/cck 
 +    * for making structured kinds of content... but what is the structure of our content? 
 + 
 + 
 + 
 +==== tutorials etc ==== 
 +  * some screencasts on CCK/nodereference (building a node out of several other nodes) 
 +    * http://geoffhankerson.com/drupal 
 +  * drupal api 
 +    * http://api.drupal.org/api/
 +  * creating new node types in 5.x: http://drupal.org/node/132845 
 +    * node_example.module: http://api.drupal.org/api/file/developer/examples/node_example.module/5/source 
 +    * node_example.install: http://api.drupal.org/api/file/developer/examples/node_example.install/5/source 
  • drupal_notes.txt
  • Last modified: 2008-03-31 17:24
  • by 81.188.78.24