i just dont understand few things

Help
raaf_m
2004-06-25
2013-04-02
  • raaf_m

    raaf_m - 2004-06-25

    hi!

    i am very sorry, but i just dont understand few things. what should do to install cyborg. but let see step by step...

    >Getting CybOrg:
    >-------------

    >You can download CybOrg from the Sourceforge >project page at
    >http://sourceforge.net/projects/cyborg/

    ok i i did, it was easy ;)

    >Requirements:
    >------------

    first of all i use gentoo

    >- HTTP server with CGI (both POST and GET) >support.
    > Development version: Apache 1.3.20.

    i use apache2, but right now i dont even get error so if i really have to change to apache 1.3 then i will

    >- Perl.
    > Development version: Perl 5.6.1.

    here is perl-5.8.2

    >- CGI.pm
    > Development version: CGI.pm 3.0.1

    CGI-3.05

    >- Template Toolkit
    > Development version: Template Toolkit 2.0.8.

    Template-Toolkit-2.09

    >- String::Random
    > Development version: String::Random 0.198.

    i am not sure what is it, but here what i have installed.

    *  dev-perl/IO-String
          Latest version available: 1.03
          Latest version installed: 1.03
          Size of downloaded files: 6 kB
          Homepage:    http://www.cpan.org/modules/by-module/IO/IO-String-1.03.readme
          Description: IO::File interface for in-core strings
          License:     Artistic

    *  dev-perl/IO-stringy
          Latest version available: 2.108-r1
          Latest version installed: 2.108-r1
          Size of downloaded files: 65 kB
          Homepage:    http://www.cpan.org/modules/by-module/IO/ERYQ/IO-stringy-2.108.readme
          Description: A Perl module for I/O on in-core objects like strings and arrays
          License:     Artistic

    *  dev-perl/String-ShellQuote
          Latest version available: 1.00-r1
          Latest version installed: 1.00-r1
          Size of downloaded files: 2 kB
          Homepage:    http://search.cpan.org/author/ROSCH/String-ShellQuote-1.00/ShellQuote.pm
          Description: Quote strings for passing through the shell
          License:     Artistic

    *  dev-perl/Unicode-String
          Latest version available: 2.07
          Latest version installed: 2.07
          Size of downloaded files: 59 kB
          Homepage:    http://cpan.valueclick.com/modules/by-module/Unicode/Unicode-String-2.07.readme
          Description: String manipulation for Unicode strings
          License:     Artistic

    *  dev-perl/string-crc32
          Latest version available: 1.2
          Latest version installed: 1.2
          Size of downloaded files: 6 kB
          Homepage:    http://www.cpan.org/modules/by-authors/id/S/SO/SOENKE/String-CRC32-1.2.readme
          Description: Perl interface for cyclic redundency check generation
          License:     Artistic | GPL-2

    >- DBI
    > Development version: DBI 1.20

    DBI-1.38

    >- DBI driver: You must install some DBI driver for >database access.
    > Development version: dbi::Pg

    i dont know what is it, but since i can see cyborg database through webmin i think i have everythink ok.

    >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

    i did it

    >After that, move to the directory cyborg-X.Y.Z:

    >  javier@hal:~> cd cyborg-X.Y.Z/
    >  javier@hal:~/cyborg-X.Y.Z/>

    this too

    >The "cgi-bin/cyborg/" directory contains all the >scripts (executable) and
    >configuration files.

    i understand

    >The "htdocs/cyborg/" directory contains all the static >files (html, images and css).

    this too

    >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.

    here i have problem, because:

    ># System name
    >system        = CybOrg - Cybercafe Organizer

    ok this a name, and it can stay like that

    ># Base HTTP URL
    >base_url    = http://cyborg.local

    ?? i think that i can write here everything but how server will know were is cyborg.local?

    ># Base HTTP CGI path
    >cgi_path    = /cgi-bin

    the same

    ># HTTP server hostname
    >http_host    = cyborg.local

    the same

    i just dont understand how entering to http://localhost i will go cyborg. rigth now cyborg is in my home directory.

    ># Timeout for connecting clients (in seconds)
    >station_timeout = 0

    no problem

    ># Enable/disable debug messages to log
    >debug         = yes

    no problem

    ># Station update time (in seconds)
    >station_update = 60

    no problem

    >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".

    i still dont know where is http://myserver.mydomain. on localhost i see apache start page.

    >Important: Your browser must support cookies!

    it support cookies

    >Database Creation:
    >----------------

    >data base creation went with no problem, since i see >it throught webmin i think it is ok.

    >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.

    >Client Installation:
    >-------------------

    first i have to install server.

    regards
    raaf

     
    • TerraRoot

      TerraRoot - 2004-07-14

      yeah i have the same problem in the same area, i think it has to do with configuring the http server, but i have'nt a clue how to start doing that, i can configure httpd for a basic site, but CybOrg?. HELP!

       
    • Absorto

      Absorto - 2005-05-23

      >># Base HTTP URL
      >>base_url = http://cyborg.local

      >?? i think that i can write here everything but how server will know were is cyborg.local? 

      Here you define the base url of YOUR instalation. You could use localhost, but then it is likely that you won't be able to access the cyborg page from anywhere but the localhost!

      You should use a domain like, say, http://mycafe.greatbusiness.net.

      You should probably configure a virtual host on your apache that answers to requests to mycafe.greatbusiness.net.

      Perhaps an example would be more clarifying, so there:

      NameVirtualHost *
      <VirtualHost *>
              ServerAdmin admin@greatbusiness.net

              DocumentRoot /var/www/mycafe.greatbusiness.net/docs/
              <Directory />
                      Options FollowSymLinks
                      AllowOverride None
              </Directory>

              <Directory /var/www/mycafe.greatbusiness.net/docs>
                      Options Indexes FollowSymLinks MultiViews
                      AllowOverride None
                      Order allow,deny
                      allow from all
              </Directory>

              ScriptAlias /cgi-bin/ /var/www/mycafe.greatbusiness.net/cgi-bin/

              <Directory "/var/www/mycafe.greatbusiness.net/cgi-bin">
                      AllowOverride None
                      Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
                      Order allow,deny
                      Allow from all
              </Directory>

              ErrorLog /var/log/apache2/mycafe.error.log

              # Possible values include: debug, info, notice, warn, error, crit,
              # alert, emerg.
              LogLevel warn

              CustomLog /var/log/apache2/mycafe.access.log combined
              ServerSignature On

      </VirtualHost>

      Since you seem to run gentoo you probably want to look inside /etc/apache2/conf/vhosts

      Also, read the documentation on apache at
      http://httpd.apache.org/docs-2.0/howto/cgi.html

      Hope it helps!

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks