How to Install GForge Advanced Server on CentOS 5.5 Server

In this post, i will show you on how to install GForge Advanced Server on CentOS 5.5 Server.

    [root@server ~]# wget http://gforge.org/download/install-gforge-as-571-src.zip
    [root@server ~]# unzip install-gforge-as-571-src.zip
    [root@server ~]# cd gforge-as-571-src
    [root@server gforge-as-571-src] yum install php*
    [root@server gforge-as-571-src]# yum install -y postgresql-server postgresql svn wget poppler-utils wv php-pgsql php-gd php-ldap php-xml php-mbstring
    [root@server gforge-as-571-src]# php check-deps.php
    -=# Welcome to GForge DB-Installer v5.0 #=-
    -=# GForge Dependencies Checker #=-
    
    Checking PHP version... Ok (5.1.6)
    Checking... cvs
    /usr/bin/cvs
    Checking... psql
    /usr/bin/psql
    Checking... svn
    /usr/local/bin/svn
    Checking... ssh
    /usr/bin/ssh
    Checking... wget
    /usr/bin/wget
    Checking... pdftotext
    /usr/bin/pdftotext
    Checking... wvText
    /usr/bin/wvText
    Checking... apache
    /etc/init.d/httpd
    Checking PHP support for... PostgreSQL
    Found
    Checking PHP support for... GD
    Found
    Checking PHP support for... LDAP
    Found
    Checking PHP support for... MultiByte
    Found
    Checking classes... DOMDocument
    Found
    
    All dependencies seem to be installed
    Starting postgresql service:                               [  OK  ]
    
    [root@server gforge-as-571-src]# php install-gforge-1-deps.php CENTOS5
    
    -=# Welcome to GForge Pre-Installer v5.0 #=-
    Do you want to perform an (I)nitial installation or an (U)pgrade of the system [I/u]?
    I
    [root@server gforge-as-571-src]# php install-gforge-2-db.php
    [root@server gforge-as-571-src]# php install-gforge-3.php CENTOS5
    [root@server gforge-as-571-src]# crontab crontab.in
    

How to Install the Dependencies for GForge Community Edition and GForge Advanced Server

Question : How install dependencies for GForge Community Edition and GForge Advanced Server?

-=# GForge Dependencies Checker #=-

Checking PHP version... Ok (5.1.6)
Checking... cvs
/usr/bin/cvs
Checking... psql
which: no psql in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
Not Found
Checking... svn
/usr/local/bin/svn
Checking... ssh
/usr/bin/ssh
Checking... wget
which: no wget in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
Not Found
Checking... pdftotext
which: no pdftotext in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
Not Found
Checking... wvText
which: no wvText in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
Not Found
Checking... apache
/etc/init.d/httpd
Checking PHP support for... PostgreSQL
Not Found
Checking PHP support for... GD
Not Found
Checking PHP support for... LDAP
Not Found
Checking PHP support for... MultiByte
Not Found
Checking classes... DOMDocument
Not Found

The following dependencies were not found: psql, wget, pdftotext, wvText, PHP PostgreSQL, PHP GD, PHP LDAP, PHP MultiByte, PHP-Class DOMDocument

Answer : Please run below yum command on your CentOS/RHEL server
Prerequisites
a)How to Prepare Other Yum Repositories For RHEL/CentOS 5
b)How to Resolved Dependencies Related with wvText
Install the dependencies using yum command :

[root@server ~]# yum install -y php* postgresql-server postgresql svn wget poppler-utils wv php-pgsql php-gd php-ldap php-xml php-mbstring

How to Fix “dependencies were not found: PHP MultiByte” in Linux Server

Question : During the installation such as gforge Collaborative development, the following dependencies were not found: PHP MultiByte. How to install PHP MultiByte into my linux server ? What php extention should i use?

Answer : You just need to run below yum command to install PHP MultiByte on your linux server such as CentOS or RHEL. This will PHP with mbstring support.

    [root@server ~]# yum install php-mbstring
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * addons: centos.maulvi.net
     * base: centos.maulvi.net
     * extras: centos.maulvi.net
     * updates: centos.maulvi.net
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package php-mbstring.i386 0:5.1.6-27.el5_5.3 set to be updated
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ==========================================================================================
     Package                Arch           Version                       Repository      Size
    ==========================================================================================
    Installing:
     php-mbstring           i386           5.1.6-27.el5_5.3              base           995 k
    
    Transaction Summary
    ==========================================================================================
    Install       1 Package(s)
    Upgrade       0 Package(s)
    
    Total download size: 995 k
    Is this ok [y/N]: y
    Downloading Packages:
    php-mbstring-5.1.6-27.el5_5.3.i386.rpm                             | 995 kB     00:33
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing     : php-mbstring                                                       1/1
    
    Installed:
      php-mbstring.i386 0:5.1.6-27.el5_5.3
    
    Complete!