Gforge Installation Guide

Source: Internet
Author: User
Tags psql
Gforge Installation Guide-Linux Enterprise Application-Linux server application information. For details, refer to the following section. 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 to run)
# 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.
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.