Contents

What you need to start

  • RedHat Fedora 9
  • Internet connection.
  • 30 minutes.

Directions

Install PostgreSQL

Download and install PostgreSQL

To install PostgreSQL, we need to login to the server, and type following commands in a terminal (You will need logged in as the root user):

yum -y install postgresql postgresql-server

Configure the new service to start automatically

Set to start PostgreSQL service when boot Fedora.

/sbin/chkconfig postgresql on

Initial PostgreSQL database

/sbin/service postgresql initdb

Start PostgreSQL service

/sbin/service postgresql start

Create user for PostgreSQL

We now need to create the database user 'argos'. First, we need to switch to user postgres:

su - postgres

Notice: The dash is important!

Create a super user argos:

createuser -D -A -P argos

Enter in a DatabasePassword here, then answer 'Y' to the question.

Create database

We now need to use command createdb[1] to create the database 'argos' for the user 'argos'. You'll need to enter the password that you just created.

createdb -W -E utf8 -O argos argos

Configure PostgreSQL

Edit the postgres host based access configuration file:

vi /var/lib/pgsql/data/pg_hba.conf

Modify the local line to use "trust" based authentication rather than "identity". Please review the PostgreSQL documentation[2] before making this change and take the security

local	all		all			trust
host   all             all         127.0.0.1/32          md5

Restart PostgreSQL

Now, restart PostgreSQL.

/sbin/service postgresql restart

Configure Apache2

Install Apache2

Apache2 has been already installed on the Fedora 9, but we need to install PHP supports.

yum -y install php
yum -y install php-dom php-pgsql php-pdo

Create Argos documents root directory.

cd /var/www/
mkdir argos

Configure Apache

We should allow httpd to connect database through network:

/usr/sbin/setsebool -P httpd_can_network_connect_db=on

Install Apache as an auto start service

Install Apache as a service

/sbin/chkconfig httpd on

For the Apache settings to take effect, you need to restart Apache2.

/sbin/service httpd restart

Install Subversion

To install subversion, just type following command:

yum -y install svn

Install Argos

Get latest Argos code

Check out the latest version from subversion:

cd /var/www/argos
svn checkout https://argos-viewpoint.svn.sourceforge.net/svnroot/argos-viewpoint/trunk .

Press Y to continue.

In the future you will be able to update to the latest version using:

svn update

Set up Argos

Directory & File Permissions

Create an empty configure file name config.inc.php or just rename config.sample.inc.php to config.inc.php.

Set correct permissions for all your configuration files. Installation process can not be completed until you set writable permissions for config.inc.php and .htaccess in your Argos root directories.

Run Installation Script

Run the Argos installation script by accessing install/index.php in your favorite web browser.

IMPORTANT! After installation is complete remove install/ subdirectory in your Argos script directory.

Finnally, you're finished. Congratulations!

Other Resources

  • PostgreSQL 8.2.6 Documentation [3]
  • Apache 2.2 Documentation [4]
Powered by MediaWiki