Changes between Version 5 and Version 6 of faq/drupal/configuration
- Timestamp:
- Nov 21, 2010, 4:05:42 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
faq/drupal/configuration
v5 v6 18 18 Our 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. 19 19 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 }}} 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. 21 24 22 An example web directory listing looks like this: 25 23 {{{ 26 24 0 jm@chavez:web$ ls -l 27 25 total 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 26 lrwxrwxrwx 1 mayfirst mayfirst 34 2007-11-17 04:14 cron.php -> /usr/local/share/drupal-5/cron.php 30 27 drwxr-xr-x 4 mayfirst mayfirst 4096 2008-03-11 03:58 files 31 28 lrwxrwxrwx 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 29 lrwxrwxrwx 1 mayfirst mayfirst 35 2007-11-17 04:14 index.php -> /usr/local/share/drupal-5/index.php 30 lrwxrwxrwx 1 mayfirst mayfirst 37 2007-11-17 04:14 install.php -> /usr/local/share/drupal-5/install.php 36 31 lrwxrwxrwx 1 mayfirst mayfirst 30 2007-11-17 04:14 misc -> /usr/local/share/drupal-5/misc 37 32 lrwxrwxrwx 1 mayfirst mayfirst 33 2007-11-17 04:14 modules -> /usr/local/share/drupal-5/modules … … 40 35 drwxr-xr-x 3 mayfirst mayfirst 4096 2007-11-17 04:14 sites 41 36 lrwxrwxrwx 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 37 lrwxrwxrwx 1 mayfirst mayfirst 36 2007-11-17 04:14 update.php -> /usr/local/share/drupal-5/update.php 38 lrwxrwxrwx 1 mayfirst mayfirst 36 2007-11-23 11:16 xmlrpc.php -> /usr/local/share/drupal-5/xmlrpc.php 46 39 0 jm@chavez:web$ 47 40 }}} 48 41 49 Feel free to [browser:trunk/admin/directives/mf-drupalize-install/files browse the files] used to create Drupal sites on our servers.