Application erstellen
So, als erstes erstellen wir einmal unsere application. dazu einfach im WebTek Verzeichnis das webtek script starten. dieses erstellt uns jetzt mal ein Gerüst für unser Wiki:
./webtek Wiki
folgender Output sollte sichtbar sein:
create WebTek app 'Wiki'
create files:
/WebTek/app/Wiki/Handler.pm
/WebTek/app/Wiki/Page/Root.pm
WebTek/app/Wiki/config/db.config
/WebTek/app/Wiki/config/webtek.config
/WebTek/app/Wiki/config/webtek.dev.config
/WebTek/app/Wiki/config/server.config
/WebTek/app/Wiki/config/cache.config
/WebTek/app/Wiki/templates/others/master.tpl
/WebTek/app/Wiki/templates/others/master.ajax.tpl
/WebTek/app/Wiki/templates/others/master.json.tpl
/WebTek/app/Wiki/templates/others/comet.tpl
/WebTek/app/Wiki/templates/Root/index.tpl
/WebTek/app/Wiki/messages/de.properties
/WebTek/app/Wiki/messages/en.properties
/WebTek/app/Wiki/static/prototype.js
/WebTek/app/Wiki/static/webtek.css
/WebTek/app/Wiki/static/webtek.js
/WebTek/app/Wiki/templates/others/pagination/container.tpl
/WebTek/app/Wiki/templates/others/pagination/page.tpl
/WebTek/app/Wiki/templates/others/pagination/actual_page.tpl
/WebTek/app/Wiki/templates/others/pagination/previues_page.tpl
/WebTek/app/Wiki/templates/others/pagination/next_page.tpl
/WebTek/app/Wiki/templates/others/pagination/filler.tpl
/WebTek/app/Wiki/webtek
and add this to your httpd.conf:
# init perl
PerlSwitches -I/WebTek/app
PerlSwitches -I/WebTek/lib
PerlRequire/WebTek/extra/startup.pl
# init static content
Alias /static/wiki/WebTek/app/Wiki/static
<Directory /WebTek/app/Wiki/static>
Order allow,deny
Allow from all
</Directory>
# init dynamic content
<Location /wiki>
SetHandler modperl
PerlAddVar name Wiki
PerlAddVar dir /WebTek/app/Wiki
PerlAddVar env dev
PerlResponseHandler Wiki::Handler
</Location>
now restart your webserver and load http://localhost/wiki
Ok.. das heißt wir tragen jetzt die obigen Zeilen in das httpd.conf ein, restarten Apache, überprüfen, ob die Datebank läuft und gehen dann auf http://localhost/wiki . jetzt sollte ein Welcome to WebTek im Browser sichtbar sein.
weiter
|