Changes between Version 5 and Version 6 of faq/drupal/configuration


Ignore:
Timestamp:
Nov 21, 2010, 4:05:42 AM (13 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • faq/drupal/configuration

    v5 v6  
    1818Our approach uses symlinks instead. It is designed to work with suexec, in which the PHP process running runs with the privileges of the user who owns the file.
    1919
    20 Using our approach, every member has their own web directory, which they control. The web directory contains symlinks to all the top level directories in Drupal core (`includes`, `misc`, etc.) except for the files and sites directories - these are real directories under the control of the user. In addition, each top level file (`index.php`, `cron.php`, etc) is symlinked in the user's web directory, but with the name `index.drupal.php`, `cron.drupal.php`, etc. Finally, every top level file is created and owned by the user with the original Drupal name (`index.php`, `cron.php`) and with a simple one line of php code which includes the Drupal symlink. For example, `index.php` contains:
    21 {{{
    22 require_once('index.drupal.php');
    23 }}}
     20Using our approach, every member has their own web directory, which they control. The web directory contains symlinks to all the top level directories in Drupal core (`includes`, `misc`, etc.) except for the files and sites directories - these are real directories under the control of the user.
     21
    2422An example web directory listing looks like this:
    2523{{{
    26240 jm@chavez:web$ ls -l
    2725total 28
    28 lrwxrwxrwx 1 mayfirst mayfirst   34 2007-11-17 04:14 cron.drupal.php -> /usr/local/share/drupal-5/cron.php
    29 -rw-r--r-- 1 mayfirst mayfirst   38 2007-11-17 04:14 cron.php
     26lrwxrwxrwx 1 mayfirst mayfirst   34 2007-11-17 04:14 cron.php -> /usr/local/share/drupal-5/cron.php
    3027drwxr-xr-x 4 mayfirst mayfirst 4096 2008-03-11 03:58 files
    3128lrwxrwxrwx 1 mayfirst mayfirst   34 2007-11-17 04:14 includes -> /usr/local/share/drupal-5/includes
    32 lrwxrwxrwx 1 mayfirst mayfirst   35 2007-11-17 04:14 index.drupal.php -> /usr/local/share/drupal-5/index.php
    33 -rw-r--r-- 1 mayfirst mayfirst   39 2007-11-17 04:14 index.php
    34 lrwxrwxrwx 1 mayfirst mayfirst   37 2007-11-17 04:14 install.drupal.php -> /usr/local/share/drupal-5/install.php
    35 -rw-r--r-- 1 mayfirst mayfirst   41 2007-11-17 04:14 install.php
     29lrwxrwxrwx 1 mayfirst mayfirst   35 2007-11-17 04:14 index.php -> /usr/local/share/drupal-5/index.php
     30lrwxrwxrwx 1 mayfirst mayfirst   37 2007-11-17 04:14 install.php -> /usr/local/share/drupal-5/install.php
    3631lrwxrwxrwx 1 mayfirst mayfirst   30 2007-11-17 04:14 misc -> /usr/local/share/drupal-5/misc
    3732lrwxrwxrwx 1 mayfirst mayfirst   33 2007-11-17 04:14 modules -> /usr/local/share/drupal-5/modules
     
    4035drwxr-xr-x 3 mayfirst mayfirst 4096 2007-11-17 04:14 sites
    4136lrwxrwxrwx 1 mayfirst mayfirst   32 2007-11-17 04:14 themes -> /usr/local/share/drupal-5/themes
    42 lrwxrwxrwx 1 mayfirst mayfirst   36 2007-11-17 04:14 update.drupal.php -> /usr/local/share/drupal-5/update.php
    43 -rw-r--r-- 1 mayfirst mayfirst   40 2007-11-17 04:14 update.php
    44 lrwxrwxrwx 1 mayfirst mayfirst   36 2007-11-23 11:16 xmlrpc.drupal.php -> /usr/local/share/drupal-5/xmlrpc.php
    45 -rw-r--r-- 1 mayfirst mayfirst   40 2007-11-17 04:14 xmlrpc.php
     37lrwxrwxrwx 1 mayfirst mayfirst   36 2007-11-17 04:14 update.php -> /usr/local/share/drupal-5/update.php
     38lrwxrwxrwx 1 mayfirst mayfirst   36 2007-11-23 11:16 xmlrpc.php -> /usr/local/share/drupal-5/xmlrpc.php
    46390 jm@chavez:web$
    4740}}}
    4841
    49 Feel free to [browser:trunk/admin/directives/mf-drupalize-install/files browse the files] used to create Drupal sites on our servers.