- Code: Tout sélectionner
You can download CybOrg from the Sourceforge project page at
http://sourceforge.net/projects/cyborg/
Requirements:
------------
- HTTP server with CGI (both POST and GET) support.
Development version: Apache 1.3.20.
- Perl.
Development version: Perl 5.6.1.
- CGI.pm
Development version: CGI.pm 3.0.1
- Template Toolkit
Development version: Template Toolkit 2.0.8.
- String::Random
Development version: String::Random 0.198.
- DBI
Development version: DBI 1.20
- DBI driver: You must install some DBI driver for database access.
Development version: dbi::Pg
Server Installation:
-------------------
Unpack the CybOrg distribution file (cyborg-X.Y.Z.tgz) using the following
command (where X.Y.Z is the version number):
javier@hal:~> tar zxvf cyborg-X.Y.Z.tgz
After that, move to the directory cyborg-X.Y.Z:
javier@hal:~> cd cyborg-X.Y.Z/
javier@hal:~/cyborg-X.Y.Z/>
The "cgi-bin/cyborg/" directory contains all the scripts (executable) and
configuration files.
The "htdocs/cyborg/" directory contains all the static files (html, images
and css).
The "database/cyborg.sql" file contains a SQL script to create de tables for
the CybOrg database and the default administrator. This script is PostgreSQL
specific. (See the section "Database Creation".)
Next, you must edit the files under "cgi-bin/cyborg/config/" to adapt it to
your system.
Finally, point your browser at http://yourserver.yourdomain/. If everything
goes well, you must be prompted with the login page. Login using the name
"admin" and the password "secret".
Important: Your browser must support cookies!
Database Creation:
-----------------
The following instructions where tested using PostgreSQL 7.1.3
1) As root, change to user "postgres" (or whatever your PostgreSQL uses as
database admin).
hal:~ # su postgres
postgres@hal:~>
2) Create the user "cyborg"
postgres@hal:~> createuser cyborg
Shall the new user be allowed to create databases? (y/n) y
Shall the new user be allowed to create more new users? (y/n) n
CREATE USER
postgres@hal:~>
3) As "cyborg" create the "cyborg" database
postgres@hal:~> createdb -U cyborg cyborg
CREATE DATABASE
postgres@hal:~>
4) As "cyborg" run the SQL script "cyborg.sql" (pay attention to the path
where "cyborg.sql" is located!)
postgres@hal:~> psql -U cyborg -d cyborg -f cyborg.sql
BEGIN
psql:cyborg.sql:10: NOTICE: CREATE TABLE will create implicit ...
...
COMMIT
postgres@hal:~>
5) Next, you can test the database using "pgaccess", the graphical client
included in PostgreSQL distribution written in Tcl/Tk.
j'ai rajouter aussi la procedure d'installation, alors ma question est la suivante, je dispose d'une sme 6.0 que j'ai installer hier, et je sais pas si elle convient aux bosoins de Cyborg, Merci