Instalação OASIS 2.2.1 no CentOs/Red Hat 6.7
Dica publicada em Linux / Software
Instalação OASIS 2.2.1 no CentOs/Red Hat 6.7
Pré-requisitos:
Atualizando os pacotes:
# yum update -y
# yum install gcc
Instalar Apache:
# yum install httpd -y
# service httpd start
# chkconfig httpd on
Para configurar reescrita de URL:
# nano /etc/httpd/conf/httpd.conf
* Alterar todas as entradas AllowOverride None para AllowOverride All
Instalar PostGreSQL:
# yum install postgresql postgresql-client php5-pgsql postgresql-contrib libxslt -y
# adduser postgres
# psql -U postgres
postgres=# ALTER USER postgres WITH ENCRYPTED PASSWORD 'OUTRASENHA';
postgres=# CREATE DATABASE oasis;
postgres=# createlang -U postgres plpgsql
postgres=# CREATE LANGUAGE plpgsql;
postgres=# \q
Testar conexão com banco PostGreSQL:
# psql -U postgres -W -h localhost (aparecerá a versão psql)
Modificar:
# nano /var/lib/pgsql/data/pg_hba.conf (alterar para)
Instalar PHP:
# yum install gcc gd libXpm php-pear php-cli gmp php php-mysql php-mcrypt php-mbstring php-common php-gd php-bcmath -y
Instalar OASIS 2.2.1:
# mkdir -p /var/www
Descompatar o arquivo OASIS aqui:
# cd /var/www
# tar -zvxf oasis_2_2_1.tar.gz
# chmod 755 /var/www/html/oasis/application/configuration/const.php
# chmod 755 /var/www/html/oasis/application/configuration/config.ini
# nano /var/www/html/oasis/application/configuration/const.php
Alterar define("K_INSTALL","S"); para define("K_INSTALL","N");
Acessar:
http://localhost/oasis/
FIM
Atualizando os pacotes:
# yum update -y
# yum install gcc
Instalar Apache:
# yum install httpd -y
# service httpd start
# chkconfig httpd on
Para configurar reescrita de URL:
# nano /etc/httpd/conf/httpd.conf
* Alterar todas as entradas AllowOverride None para AllowOverride All
Instalar PostGreSQL:
# yum install postgresql postgresql-client php5-pgsql postgresql-contrib libxslt -y
# adduser postgres
# psql -U postgres
postgres=# ALTER USER postgres WITH ENCRYPTED PASSWORD 'OUTRASENHA';
postgres=# CREATE DATABASE oasis;
postgres=# createlang -U postgres plpgsql
postgres=# CREATE LANGUAGE plpgsql;
postgres=# \q
Testar conexão com banco PostGreSQL:
# psql -U postgres -W -h localhost (aparecerá a versão psql)
Modificar:
# nano /var/lib/pgsql/data/pg_hba.conf (alterar para)
local all all trust host all all 127.0.0.1/32 trust host all all ::1/128 trust
Instalar PHP:
# yum install gcc gd libXpm php-pear php-cli gmp php php-mysql php-mcrypt php-mbstring php-common php-gd php-bcmath -y
Instalar OASIS 2.2.1:
# mkdir -p /var/www
Descompatar o arquivo OASIS aqui:
# cd /var/www
# tar -zvxf oasis_2_2_1.tar.gz
# chmod 755 /var/www/html/oasis/application/configuration/const.php
# chmod 755 /var/www/html/oasis/application/configuration/config.ini
# nano /var/www/html/oasis/application/configuration/const.php
Alterar define("K_INSTALL","S"); para define("K_INSTALL","N");
Acessar:
http://localhost/oasis/
FIM