Drupal

Installation

Assuming MediaWiki has already been installed, this description only deals with the Drupal specific parts.

  1. Install Drupal7
    pkg_add -r drupal7 php5-gd
  2. Create the configuration file and grant permissions
    cp sites/default/default.settings.php sites/default/settings.php

    Give the web server write privileges (666 or u=rw,g=rw,o=rw) to the configuration file:

    chmod a+w sites/default/settings.php

    Give the web server write privileges to the sites/default directory:

    chmod a+w sites/default
  3. PHP settings
    Edit /usr/local/etc/php.ini:
    apc.rfc1867 = 1

    Restart Apache for the changes to take effect:

    apachectl restart
  4. Create the Drupal database
    mysqladmin -u root -p create group_web
    mysql -u root -p

    At the MySQL prompt, enter:

    GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON group_web.* TO 'webuser'@'localhost' IDENTIFIED BY 'new_webuser_password';
    FLUSH PRIVILEGES;
    exit
  5. Set up Apache
    Add an alias for the Drupal directory between and
    Alias /drupal7 /usr/local/www/drupal7

    Also add an entry for the Drupal directory to httpd.conf:

    <Directory "/usr/local/www/drupal7">
       Options Indexes FollowSymLinks
       DirectoryIndex index.php index.html
       AllowOverride None
       Order allow,deny
       Allow from all
     </Directory>

    Restart Apache:

    apachectl restart
  6. Run the installation script Point your browser to the Drupal site: http://localhost/drupal7, and follow the wizard to set up the database, add the first user account, and provide basic website settings.
  7. Install extensions
    • Download the following modules from Drupal Module project: wysiwyg, biblio, media(which requires ctools, views, file_entity), filedepot (which requires libraries).
    • Install by extracting them to site/all/modules and enabling them in Administration > Modules (see Installing modules and themes for more information).
    • Go to Administration > Modules, review the Permissions settings for the newly installed modules and modify them as necessary.
    • Go to Administration > Modules > Wysiwyg > Configure, and follow the instructions to install CKEditor.
    • Follow the instructions in the README file for filedepot to set it up.

Upgrade

Log in as an administrator user, go to Administration > Configuration > Development > Maintenance mode. Enable the “Put site into maintenance mode” checkbox and save the configuration. Update software files by updating FreeBSD (such as using portupgrade), and run update.php through the browser to update the database.

Backup

Remember to backup both the database and file system. You can also create a backup tarball at administer >> content >> backup.

Comments

Comments powered by Disqus