Benutzer-Werkzeuge

Webseiten-Werkzeuge


becki:linux:web_based_apps

Dies ist eine alte Version des Dokuments!


Tips for Web based Applications

Abstract

Tips and Howtos for installation, update and modifications on web based applications. Targeted mainly for a LAMP system.

Drupal

Newsletter

FIXME Check Simplenews!

Calendar Events

All is done on Drupal 6.9 / information source (screencast) / General info

  1. Install cck, date, views and calendar modules
  2. Enable in Administer → Modules
    • CCK: Content (and optionally Number, Option widgets & Text for later usage)
    • Date/Time: Calendar, Date, Date API & Date Timezone
    • Views: Views & Views UI
  3. Set Timezone anew in Administer → Date and time
  4. Administer → Content types → Add content type:
    • Name: Event, Type: event (proposal)
    • Uncheck: Workflow settings → Default options → Promoted to front page
  5. Administer → Content types → „Event“ → Manage fields
    • Add new field: Label: Date; field name: field_date; Field type: Date; Widget: Select list
    • Save
    • Global Settings → Required: yes; Global Settings → To Date: optional
    • Save
  6. FIXME

WYSIWYG with FCKEditor

  1. Download the module and the editor
  2. Follow the instructions in README.TXT of the Module :!:
    1. Install module and editor
    2. Enable the module in Administer → Modules
    3. Grant fckeditor access permissions for user with story/page write access (eg. self-created role authors) and authenticated users
    4. Under Administer → FCKeditor, allow authors to use the advanced profile and optionally authenticated users to use the default profile
    5. Under Administer → Input formats
      1. Make Filtered HTML the default format
      2. Add the tags <p> <br /> to the list of allowed HTML tags in Filtered HTML
      3. Allow the role authors to use Full HTML
      4. Uncheck Line break converter in both formats

Handling Images

The image module is easy to use and allows to add one image per node. See Attaching images to other nodes.

Install

  • Download and extract Drupal somewhere in apache document root, on Slackware /var/www/htdocs. Maybe its better not to extract directly on the server but to ftp the files up to the server, because otherwise you get strange permissions for the directories i.e. drwxr-sr-x instead of drwxr-xr-x
  • Symlink drupal → drupal-<versionnumber>
  • chown -R nobody:nobody /var/www/htdocs/drupal/* :?: Maybe it's more secure to just give write permission to only the files wich drupal wants to edit, eg. drupal/sites/default/settings.php
  • Make sure that you use PHP5 not 4. Otherwise you may get an error message about register_globals being illegally on. You can check this by creating a file containing „<?php phpinfo(); ?>“ inside the drupal directory on your server. You can switch to PHP5 by adding the line „AddHandler php-fastcgi5 .php .php5“ to the file .htaccess in the drupal directory.
  • Point your Browser to http://yourhostname/drupal and follow installation instructions.

Obsolete instructins for drupal 5.2:

  • Create the drupal database by help of INSTALL.mysql.txt. Don't omit @localhost in the SQL statement :!: Otherwise you might not connect to the database. (See column mysql.user.Host)
  • Create administrator account
  • Create a directory called 'files' in root dir of drupal and make it writable by httpd

Install a different Language

Update: It seems to be better to select the default language at installation (Drupal 6.9) — 2009-01-19

This refers to Drupal 6.2:

  • Downlad a language tarball from drupal>project/Translations
  • Enable: Administer → Site building → Modules → Locale
  • Upload language tarball to drupa root dir and unpack it
  • Home › Administer › Site configuration > Languages > Add language
  • Make new language the default language on the same page

Cron

Some modules need to be triggered periodically. This is done by calling the script /drupal/cron.php with lynx. Therfore add a hourly conjob. With Slackware this is achieved by simply creating and making runnable /etc/cron.hourly/drupal whith the following content:

#!/bin/bash
lynx -source http://localhost/drupal/cron.php

WYSIWYG with Tinymce

This paragraph is obsolete!

Download tinymce module and follow the instructions in INSTALL.txt and optionally at the Drupal Handbook

Notes:

  • If seems better to try additonal features (eg images) with WYSIWYG turned off in order to get the proper source code and then perhaps config tinymce to produce that source code.
  • Images to be set up with tinymce.
  • For config HTML-Filters see: node/59769
  • There is also a FCKEditor module, but Tinymce seems to be more lightweight & better supported
  • Recommendation for tinymce & freelinking instead of a wiki

Test / Todo

Dokuwiki

Updating Dokuwiki

FIXME

Add an Interwiki Shortcut

  1. Add URL in dokuwiki/conf/interwiki.conf
  2. Add the interwiki icon at dokuwiki/lib/images/interwiki. Possible formats: .gif and .png, but not .ico (Tested with version 2007-06-26b)
  3. Delete the cache: rm -rf dokuwiki/data/cache/*
  4. Reload the page in browser

See also http://www.dokuwiki.org/interwiki

Linebreak Plugin

Just install the linebreak plugin. No additional config is necessary.

URL Rewriting

Make sure that .htaccess file is respected with

<Directory /path/to/dokuwiki>
  AllowOverride All
</Directory>

or

<Directory /var/www/htdocs>
  AllowOverride All
</Directory>

in /etc/apache/httpd.conf

Uncomment everything beginning with #Rewrite… in /var/www/htdocs/dokuwiki/.htaccess, but not the line #RewriteBase /dokuwiki.

Enable rewriting in admin config menu by setting it to type 1

See also: wiki:rewrite

monospaced in blue

lib/tpl/default/design.css — 2007-01-06 17:16

diff design.css.org design.css

465a466
>   color: darkblue;

Webadmin

Webadmin is a simple Web-based file manager (with text edit function).

I tweaked the text editor part to suit better to my requierements. I needed:

  1. Files to be saved generally as UTF-8 unicode
  2. Word wrap in text edit area
  3. Keep in the edior window and do not return to file view when save button is pressed

The following steps are required:

  1. Convert the webadmin.php from ISO-8859-1 to UTF-8 with your text editor (eg jEdit) or use iconv. FIXME Serarch for „charset“ and replace all charsets to UTF-8
  2. Search for FIXME textarea an replace FIXME from off to on
  3. Search for FIXME case: edit and FIXME

Possible untested alternatives to webadmin are ide.php, Ve-EDIT, codepress, ecco

Search („web based“ OR webbased OR „web-based“ OR online) AND 1) editor OR ide)

1)
(text OR sorcecode
Cookies helfen bei der Bereitstellung von Inhalten. Diese Website verwendet Cookies. Mit der Nutzung der Website erklären Sie sich damit einverstanden, dass Cookies auf Ihrem Computer gespeichert werden. Außerdem bestätigen Sie, dass Sie unsere Datenschutzerklärung gelesen und verstanden haben. Wenn Sie nicht einverstanden sind, verlassen Sie die Website. Weitere Information
becki/linux/web_based_apps.1233592821.txt.gz · Zuletzt geändert: 2009-03-25 10:20 (Externe Bearbeitung)

Impressum - Datenschutzerklärung