Activer l'API avec fastcgi et authentif ident

* Install des paquets manquants

 
   yum install oar-restful-api
   yum install perl-FCGI
   yum install perl-YAML
   yum install oidentd
   rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
   rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
   yum install mod_fastcgi

* Désactivation de suexec dans la config de fastcgi, car ça empeche de lancer l'API en tant que oar

   sed -i -e "s/\(FastCgiWrapper \)On/\1Off/" /etc/httpd/conf.d/fastcgi.conf 

* Adaptation de la config apache oar-api pour Centos

  sed -i -e "s/mod_fastcgi.c/fastcgi_module/" /etc/httpd/conf.d/oar-restful-api.conf
  sed -i -e "s,#\(LoadModule ident_module modules/mod_ident.so\),\1," /etc/httpd/conf/httpd.conf

* Activer ident sur ipv6 (localhost est ipv6 !!)

  sed -i -e 's/\(OIDENTD_OPTIONS=\).*/\1"-a :: -q -u nobody -g nobody"/' /etc/sysconfig/oidentd

* (re)démarrage des services

     service oidentd start
     service httpd restart

Installer les tests

TODO

wiki/todos/use_oar_restful_api_with_fastcgi_and_ident_on_centos6.txt · Last modified: 2014/12/12 09:34 by neyron
Recent changes RSS feed GNU Free Documentation License 1.3 Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki