Gforge for PostgreSQL Installation Guide (RH Linux 4.4 32 bits)

Source: Internet
Author: User
Tags psql

Preface:

As an excellent collaborative development software in the Open Source world, gforge provides a complete software development platform for open source software development, developers are encouraged to make full use of this open platform to develop richer Open Source Software for the Open Source world.

Gforge initially originated from the open-source sf.net -- SourceForge, and switched to commercial version development until cvs2.6, instead of open-source.
Then we have the branch gforge, which is mainly developed by SF. In fact, gforge was initially used In Debian.
The official server is also Debian, and there are other SF branches. Gforge is also used on the IBM open-source website, but it adds more plug-ins.

Gforge generates a branch that supports MySql in MySQL 4.6, but it has not released any available version for nine months. Therefore, this article uses gforge for PostgreSQL.

To install gforge, you must prepare the following:
OpenSSL
Apache
PostgreSQL
PHP
Bdb
SVN

The server version used is RedHat Enterprise 4.4 32 bits. The default web server and database server are not installed.

The tar package to be prepared is as follows:
Openssl-0.9.8e.tar.gz
Httpd-2.2.6.tar.gz
Postgresql-8.2.5.tar.gz
Php-5.2.4.tar.gz
Db-4.4.20.tar.gz
Subversion-1.2.1.tar.bz2
Gforge-4.5.16.tar.bz2
These packages can be found online.

 

Install the SDK in the following sequence:
I. OpenSSL
# Tar-zvxf openssl-0.9.8e.tar.gz
# Cd openssl-0.9.8e
#./Config -- prefix =/usr/local/OpenSSL
# Make
# Make install

Ii. Apache
# Tar-zxf httpd-2.2.6.tar.gz
# Cd httpd-2.2.6
#. /Configure -- prefix =/usr/local/Apache -- enable-Dav -- enable-so -- enable-SSL -- With-SSL =/usr/local/OpenSSL -- enable-Rewrite -- enable -maintainer-Mode
# Make
# Make install

Iii. PostgreSQL
# Tar-zxvf postgresql-8.2.5.tar.gz
# Cd postgresql-8.2.5
#./Configure -- prefix =/usr/local/pgsql -- With-OpenSSL
# Gmake
# Gmake install
# Adduser Postgres
# Passwd ipvs
# Mkdir-P/usr/local/pgsql/Data
# Chown-r Postgres/usr/local/pgsql/
# Chown Postgres/usr/local/pgsql/Data
# Su ipvs
$/Usr/local/pgsql/bin/initdb-D/usr/local/pgsql/data (initialize database)
$/Usr/local/pgsql/bin/postmaster-D/usr/local/pgsql/data> logfile 2> & 1 & (run in the background and return a PID)

Iv. php
# Tar zxf php-5.2.4.tar.gz
# Cd php-5.2.4
#. /Configure -- prefix =/usr/local/PHP -- with-apxs2 =/usr/local/Apache/bin/apxs -- With-pgsql =/usr/local/pgsql -- enable-mbstring -- enable-FTP
# Make
# Make install
# Cp PHP. ini-Dist/usr/local/PHP/lib/PHP. ini

# Vi PHP. ini
Modify
Register_globals = on
Magic_quotes_gpc = on
File_uploads = on
Include_path = ". :/var/www/gforge/www/include:/etc/gforge: /var/www/gforge/www/admin/:/var/www/gforge/plugins/scmcvs/etc: /var/www/gforge/plugins/scmsvn/etc "# vi/usr/local/Apache/CONF/httpd. conf
Add
Addtype application/X-httpd-PHP. php
Addtype application/X-httpd-PHP-source. PHPs

Find directoryindex
Add index.htm index. php
Restart Apache:
#/Usr/local/Apache/bin/apachectl restart

V. bdb
# Tar zxf db-4.4.20.tar.gz
# Cd db-4.4.20/build_unix/
# ../Dist/configure -- prefix =/usr/local/bdb (note that config cannot be run in the DIST/directory)
# Make
# Make install

Vi. SVN
# Tar xvfj subversion-1.2.1.tar.bz2
# Cd subversion-1.2.1
#. /Configure -- prefix =/usr/local/SVN -- With-Berkeley-DB =/usr/local/bdb -- With-apxs =/usr/local/Apache/bin/apxs -- with-SSL -- With-libs =/usr/local/OpenSSL -- enable-maintainer-Mode
# Make
# Make install
# Svnadmin-version (failed)
# Svnserve-D (failed to start)

VII. gforge
# Tar xvfj gforge-4.5.16.tar.bz2
# Music gforge-4.5.16/var/www/gforge
# Mkdir/etc/gforge
# Cp/var/www/gforge/etc/local. Inc. Example/etc/gforge/local. inc

# Vi/etc/gforge/local. inc
Modify
$ Sys_dbhost = "localhost"
$ Sys_dbname = "gforge"
$ Sys_dbuser = "s"
$ Sys_dbpasswd = "s"
$ Sys_urlroot = '/var/www/gforge/www /';
$ Sys_themeroot = '/var/www/gforge/www/themes /';
$ Sys_default_domain = 'gforge .teamlet.org ';
$ Sys_forum_return_domain = "gforge.teamlet.org ";
$ Sys_download_host = 'Download .gforge.teamlet.org ';
$ Sys_shell_host = 'Shell .gforge.teamlet.org ';
$ Sys_users_host = 'users .gforge.teamlet.org ';
$ Sys_scm_host = 'cvs .gforge.teamlet.org ';
(Replace gforge.teamlet.org with your own domain name)
$ Svndir_prefix = '/usr/local/bin ';
$ Sys_plugins_path = '/var/www/gforge/plugins /';

8. Prepare the database for gforge
# Vi/usr/local/pgsql/data/pg_assist.conf
Join
Host gforge 127.0.0.1 255.255.255.255 MD5

# Vi/usr/local/pgsql/data/PostgreSQL. conf
Join
Tcpip_socket = true

# Chown-r Postgres/var/www/gforge/www/DB
# Su-Postgres
$/Usr/local/pgsql/bin/Psql template1
Template1 = # create user gforge nocreateuser nocreatedb password 'gfpwd ';
Template1 = # create database gforge owner gforge encoding 'unicode ';
Template1 = #/Q

$/Usr/local/pgsql/bin/createlang plpgsql gforge
$ CD/var/www/gforge/www/DB
$/Usr/local/pgsql/bin/Psql gforge
Gforge = #/I gforge. SQL
Gforge = #/Q

(Copy/var/www/gforge/to/usr/local/Apache/htdocs)
# Cp-r/var/www/gforge/usr/local/Apache/htdocs
Then you can access it through a browser.

The following steps have not been tested.

========================================================== ================

9. Set Apache Virtual Server to/var/www/gforge/WWW
(Server name must be consistent with the domain of local. Inc in gforge to run)
An example of setting virtual server is as follows:

Listen 8080.
DocumentRoot "/var/www/gforge/www"
Forcetype application/X-httpd-PHP

Forcetype application/X-httpd-PHP

Options followsymlinks
AllowOverride none
Order allow, deny
Allow from all

Servername gforge.teamlet.org

If you use Webmin to set virtual host, you only need to modify the httpd. conf file and modify it according to the preceding example.

References:

Http://it-ivan.blogspot.com/2007/10/gforgerh-linux-44-32bits.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.