Jump to content
Sign in to follow this  
sutaaanisu

Centos 4.3

Recommended Posts

assalamualaikum.....

kwn2 yg terer linux...aku nie newbie dlm OSS nie...baru nie aku ader install Linux Centos 4.3 pc kt opis. Aku nk install e-groupware kt Centos..tp aku taktau cara nk install menda alah tue...ader sesaper yg leh tolong bagitau cara nk install menda tue tk. Aku download dua version

1)eGroupWare-1.2-102.tar.bz2

2)eGroupWare-1.2.FC4-102.src.rpm

:unsure:

Share this post


Link to post
Share on other sites

Installing eGroupWare

Last modified on: 06-28-2006

I’m in the middle of evaluating calendaring software for my employer, and so far this one is my favorite one I’ve worked with. I figured I’d document the installation so I can refer to it later when I need it. It’s a little tricky to install and get setup. The documentation is fairly good at helping you along, but they forget to tell you little things, like create the database before you run the setup…these kinds of things. So I’ll do a step-by-step on CentOS and share. That should make it easy enough.

System:

Below are the packages I have installed with particular versions.

* CentOS 4.3

* PostgreSQL 7.4.13

* Apache 2.0

* PHP 4.3.9

Requirements:

* PostgreSQL 7.2+

* Apache 1.33+

* PHP 4.3+

For the cowards ;) , they offer a “canned†installation called XAMPP. This contains Apache, PHP, Pear, all the good stuff you need that eGroupWare requires. For these kinds of things, I simply install the bare minimum from a CentOS 4.3 Server CD and add all the applications that I need. This keeps a new install very small, tight, and fast. A bare minimum install from CentOS Server CD is around 689Mb.

Install Prerequisites

If you don’t already have Apache, PostgreSQL, and PHP setup, then follow along. Otherwise, skip over this section. Unless otherwise stated, assume running everything from root.

1) PostgreSQL Setup

First thing to do is install Postgresql. I’m assuming very little security here, so if you require further security measures on your database, then please seek help and guidance from PostgreSQL.org.

[root@yourbox ~]# yum install postgresql postgresql-server postgresql-devel

Next, start and stop the postgresql server. This will initialize the database.

[root@yourbox ~]# service postgresql start

Initializing database: [ OK ]

Starting postgresql service: [ OK ]

[root@yourbox ~]# service postgresql stop

Stopping postgresql service: [ OK ]

Next configure postgresql to allow for TCP/IP connections.

[root@yourbox ~]# vim /var/lib/pgsql/data/postgresql.conf

#tcpip_socket = false

tcpip_socket = true

# While I'm here, I usually change some memory options around too.

#sort_mem = 1024

sort_mem = 16384

#vacuum_mem = 8192

vacuum_mem = 16384

Write and quit the configuration file. Configure the permissions for postgresql.

[root@yourbox ~]# vim /var/lib/pgsql/data/pg_hba.conf

# Add the following to allow the egroupware user to connect.

host egroupware egroupware 127.0.0.1/24 password

Restart the postgresql server and configure it on.

[root@yourbox ~]# service postgresql start

[root@yourbox ~]# chkconfig postgresql on

2) Create eGroupWare DB and User

Let’s go ahead and create the database and password for the eGroupWare software. I’ll use generic values, but you can change them to something more useful if you’d like. Don’t forget if you choose a different user and password to change it in the file above you just configured.

[root@yourbox ~]# su - postgres

# Create the user

-bash-3.00$ createuser --no-adduser --no-createdb -P egroupware

Enter password for new user: type_your_pw

Enter it again: type_it_again

CREATE USER

# Create the database

-bash-3.00$ createdb --owner egroupware egroupware

CREATE DATABASE

# Test out the connection

-bash-3.00$ psql egroupware

Welcome to psql 7.4.13, the PostgreSQL interactive terminal.

Type: copyright for distribution terms

h for help with SQL commands

? for help on internal slash commands

g or terminate with semicolon to execute query

q to quit

egroupware=# q

-bash-3.00$ exit

3) Install and Configure Apache

Again, skip over if this is completed. This provides no security measures, consult Apache’s documentation if you wish to configure things more strict.

[root@yourbox ~]# yum install httpd httpd-devel

[root@yourbox ~]# vim /etc/httpd/conf/httpd.conf

#ServerName new.host.name:80

ServerName yourserver.yourdomain.example:80

Start and configure Apache to be on.

[root@yourbox ~]# service httpd start

[root@yourbox ~]# chkconfig httpd on

4) Install Remaining Packages

Let’s install the remaining packages eGroupWare is going to need. These include mainly PHP packages. A few of these packages might not be needed, but I just install them anyways. They aren’t that big in size. For instance, the LDAP items aren’t needed if you’re not planning on using the the mailing module for eGroupWare.

[root@yourbox ~]# yum install php php-pear php-imap php-ldap php-pgsql php-gd php-devel php-mbstring

Installation/Configuration of eGroupWare:

1) Download and Unpack

They have platform independent RPMs available, but I found it easier to just install from the source package. Grab either the .zip or .tar.gz from SourceForge.net.

Next, unpack the files into your document root of Apache. You can change the name of the unzipped directory to something else if you’d like. I’m keeping it default for this.

[root@yourbox ~]# cd /var/www/html/

[root@yourbox ~]# tar -xzf /path/to/eGroupWare-1.x-xxx.tar.gz

[root@yourbox ~]# chown -R apache.apache egroupware

2) Configure PHP

Before you begin the installation, let’s go ahead and configure a few things that eGroupWare is going to want from PHP.

[root@yourbox ~]# vim /etc/php.ini

# Change the memory_limit to 16MB

memory_limit = 16M

# Change the following line for UNICODE

;mbstring.func_overload = 0

mbstring.func_overload = 7

Make sure you restart the Apache after these changes.

[root@yourbox ~]# service httpd restart

Pear needs a logging package installed as well.

[root@yourbox ~]# pear install log

[snip]

install ok: Log 1.9.6

3) Installing eGroupWare

eGroupWare is easily setup from a web interface. Point your browser to http://yourbox/egroupware/setup to begin. Click on Run installation tests.

Kalo salah tolong betulknan. ;)

Share this post


Link to post
Share on other sites

eemm..aku tengah ikut tutorials yg ko kasik tu mohdzainal......skarang nie tengah download postgresql nyer database......under construction.....nnt kalaua der error aku tanyer ko lagi

Share this post


Link to post
Share on other sites

mohdzainal.....naper biler sampai part nie

#vim /var/lib/pgsql/data/postgresql.conf

bash: vim: command not found

aper yg perlu aku baut yer..kalau aku gune "vi" bule tk utk edit tcpip_socket tue

Share this post


Link to post
Share on other sites

Ko kena install vim tu dulu. Command tu dia tak jumpe. Download kat sini. ./configure , make dan make install. Ko restart pc pastu cuba test ok ke tak.

Edited by mohdzainal

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...