{{tag>centos config serveur}}
{{:systeme:centos_icon_60.png|http://www.centos.org}}{{:systeme:centos_logo_45.png||http://www.centos.org}}
====== Centos ou Redhat comme serveur ======
Enterprise Linux GIS : [[http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS|Utiliser des logiciels libres de SIG sur Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux]]
===== Base de données ======
==== PostgreSQL ====
http://yum.postgresql.org/repopackages.php
rpm -ivh chemin_vers_le_depot_correspondant_a_ma_version_de_centos.rpm
* http://wiki.postgresql.org/wiki/YUM_Installation
* http://www.server-world.info/en/note?os=CentOS_6&p=postgresql
* http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
yum install postgis91.x86_64 postgis91-docs.x86_64 postgis91-utils.x86_64 postgresql91.x86_64 postgresql91-contrib.x86_64 postgresql91-plpython.x86_64 postgresql91-server.x86_64
service postgresql-9.1 initdb
chkconfig postgresql-9.1 on
=== PostGIS ===
\i /usr/pgsql-9.1/share/contrib/postgis-1.5/postgis.sql
\i /usr/pgsql-9.1/share/contrib/postgis-1.5/spatial_ref_sys.sql
=== PostGIS Ratser ===
=== Contrib ===
* dblink
CREATE EXTENSION dblink;
=== Langages procéduraux ===
* pl/pgsql
* pl/python
* pl/r
===== Serveur Web =====
==== Apache ====
* autoriser l'accès au port 80 depuis l’extérieur : http://www.binarytides.com/open-http-port-iptables-centos/
* mod_wsgi (pour emabrquer applicatifs python)
* yum install mod_wsgi.x86_64
* php
* yum install php.x86_64 php-pgsql.x86_64 phpPgAdmin.noarch
* Drupal
* http://www.akiban.com/blog/2011/08/19/installing_drupal_7_postgresql_90_centos_5
=== ressources ===
* http://www.techotopia.com/index.php/Configuring_an_RHEL_6_Based_Web_Server
* http://www.yann.com/fr/hebergement-web-sous-gnulinux-quels-permissions-pour-les-fichiers-09/05/2011.html
* http://drupal.org/node/15365
==== Mapserver ====
* dépôt elgis
rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
rpm -Uvh http://elgis.argeo.org/repos/6/elgis-release-6-6_0.noarch.rpm
==== QGis Mapserver ====
==== Mapproxy ====
http://tmintt.eu/content/step-step-howto-installing-mapproxy-centos-5-amd64
==== Tomcat ====
* http://newpush.com/2011/10/how-to-install-tomcat-6-on-rhel-6-or-centos-6/
* http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-6-on-fedora-centos-red-hat-rhel/
=== MD WEB ===
* http://www.mdweb-project.org
* http://www.mdweb-project.org/files/documentation/2011.09/Quickstart_2.3.pdf
=== JasperServer ===
http://jasperforge.org/website/jasperserverwebsite/JSJA%20Website/jasperserver_getting_started.html?header=project&target=jasperserver
=====Serveur de mail =====
==== PostFix ====
==== A noter ====
* Il faudra configurer le pare-feu en fonction de ses besoins.
* SELinux nécessitera quelques aménagements
===SELinux empêche la connexion à postgresql depuis le réseau===
getsebool httpd_can_network_connect_db on
-> httpd_can_network_connect_db --> off
setsebool -P httpd_can_network_connect_db on
-> httpd_can_network_connect_db --> on
===SELinux empêche l'envoi de mail par Apache===
getsebool httpd_can_sendmail
-> httpd_can_sendmail --> off
setsebool -P httpd_can_sendmail on
-> httpd_can_sendmail --> on
**l'option -P rend la modification persistante**
==== Sauvegardes ====
[[systeme:scripts_shellcas_des_sites_internets_de_l_atlas_des_papillons_de_jours_et_des_libellules|Sauvegarde des sites internets de l'atlas]]