Orfeo 4.0 – Debian 7 Wheezy

Descripción

Esto es un howto .. montando el ulitmo orfeo .. como 4.4 en Debian 7

Prerequistos

Un Debian andando .. quiza mejor un Kuine

Instalación

Un Debian base

Configuración

1. Instale dependencias

Como solemos usar postgresql .. yo instalo phppgadmin .. y eso al menos pone las dependencias primarias como apache y php

apt-get install php5-gd php5-ldap zip unzip postgresql postgresql-contrib, ptop

2. Downgrade php

  • First, add these two lines to /etc/apt/sources.list. In short, it adds Debian Squeeze repositories as an additional source of packages:

deb http://archive.debian.org/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free

 

  • Then, add these to pin your old PHP 5.3 packages, to /etc/apt/preferences.d/preferences. If you don’t have this file, create an empty one.

Package: php5*
Pin: release a=oldoldstable
Pin-Priority: 700

Package: libapache2-mod-php5
Pin: release a=oldoldstable
Pin-Priority: 700

Package: php-pear
Pin: release a=oldoldstable
Pin-Priority: 700

Package: php-apc
Pin: release a=oldoldstable
Pin-Priority: 700

Package: *
Pin: release a=stable
Pin-Priority: 600

This will list your PHP packages

PHP=$(dpkg -l|grep php|grep 5.4.4|awk ‘{print $2}’)

  • Finally, reinstall:

# apt-get update

# apt-get install –reinstall $PHP
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libicu44 libjpeg62 libmagickcore3 libmagickwand3 libmysqlclient16 libt1-5 php5-suhosin
Suggested packages:
libmagickcore3-extra php5-dev
The following NEW packages will be installed:
libicu44 libjpeg62 libmagickcore3 libmagickwand3 libmysqlclient16 libt1-5 php5-suhosin
The following packages will be DOWNGRADED:
libapache2-mod-php5 php-apc php-pear php5 php5-cgi php5-cli php5-common php5-curl php5-gd php5-imagick php5-imap php5-intl php5-mcrypt php5-mysql
0 upgraded, 7 newly installed, 4 reinstalled, 14 downgraded, 0 to remove and 0 not upgraded.
Need to get 30.5 MB of archives.
After this operation, 30.9 MB of additional disk space will be used.
Do you want to continue [Y/n]?

3. Copie los fuentes en /var/www/

tar xvjf orfeo.tbz2

OJO con los permisos de la bodega

chown -R www-data:www-data  bodega

4. Configure BD

Creo Admin

su -c «echo CREATE USER admin WITH SUPERUSER CREATEDB CREATEROLE PASSWORD \’admin\’ | psql » postgres
su -c «echo ALTER USER admin WITH PASSWORD \’aCh7thoi\’ | psql » postgres

Ahora creo lo de orfeo
su -c «echo CREATE USER orfeousr WITH PASSWORD \’yaeph8Ai\’ | /usr/bin/psql » postgres
su -c «echo CREATE DATABASE orfeodb | /usr/bin/psql » postgres
su -c «echo GRANT ALL PRIVILEGES ON DATABASE orfeodb to orfeousr | /usr/bin/psql » postgres
su -c «/usr/bin/psql -q orfeodb < orfeoRIO.dump » postgres

Como usuario postgresql .. corrija los permisos de la BD

for tbl in `psql -qAt -c «select tablename from pg_tables where schemaname = ‘public’;» orfeodb` ; do
echo «psql -c alter table $tbl owner to orfeousr orfeodb»
psql -c «alter table $tbl owner to orfeousr» orfeodb
done

for tbl in `psql -qAt -c «select sequence_name from information_schema.sequences where sequence_schema = ‘public’;» orfeodb` ; do
echo «psql -c alter table $tbl owner to orfeousr orfeodb »
psql -c «alter table $tbl owner to orfeousr» orfeodb
done

for tbl in `psql -qAt -c «select table_name from information_schema.views where table_schema = ‘public’;» orfeodb` ; do
echo  «psql -c alter table $tbl owner to orfeousr orfeodb»
psql -c «alter table $tbl owner to orfeousr» orfeodb
done

Trucos

Problemas

1. Si el instale_mrtg.sh no le funciona

Referencias

FIN


Advertencia

Este documento es privado y es de u so exclusivo de sus autores y de SKINA TECH. Cualquier uso sin una autorización escrita es contra la ley de derechos de autor y de propiedad intelectual, y será motivo de una acción legal.


 

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

15-Marzo-2006 J.E.Gomez v1.0 Primera version