Estou instalando o I3geo Ver.4.0.3 no Fedora 10, porém houve alguns problemas que não estou conseguindo solucionar.
Não estou conseguindo fazer com que o I3geo encontre o mapserv e a pasta ms_tmp.
Tentei criar links simbólicos, porém sem resultado.
Estou criando o através do comando
# su -l
# cd /var/www/html/
# ln -s /usr/sbin/mapserv mapserv
# ln -s /var/tmp/ms_tmp ms_tmp
#chmod 777 /var/tmp/ms_tmp
--------------------------------
Resultado do testainstall.php
TESTE DE INSTALACAO DO I3Geo
/var/www/html/i3geo
PHP (a vers�o deve ser a 5x):
5.2.6
MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=TIFF INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE
---
Extensoes:
Problema: n�o est� instalado a libxml
Obs: n�o est� instalado a gd2 - o que n�o � muito cr�tico....
array(48) {
[0]=>
string(6) "libxml"
[1]=>
string(3) "xml"
[2]=>
string(4) "wddx"
[3]=>
string(9) "tokenizer"
[4]=>
string(7) "sysvshm"
[5]=>
string(7) "sysvsem"
[6]=>
string(7) "sysvmsg"
[7]=>
string(7) "session"
[8]=>
string(4) "pcre"
[9]=>
string(9) "SimpleXML"
[10]=>
string(7) "sockets"
[11]=>
string(3) "SPL"
[12]=>
string(5) "shmop"
[13]=>
string(8) "standard"
[14]=>
string(10) "Reflection"
[15]=>
string(5) "posix"
[16]=>
string(5) "iconv"
[17]=>
string(4) "hash"
[18]=>
string(3) "gmp"
[19]=>
string(7) "gettext"
[20]=>
string(3) "ftp"
[21]=>
string(6) "filter"
[22]=>
string(4) "exif"
[23]=>
string(4) "date"
[24]=>
string(4) "curl"
[25]=>
string(5) "ctype"
[26]=>
string(8) "calendar"
[27]=>
string(3) "bz2"
[28]=>
string(4) "zlib"
[29]=>
string(7) "openssl"
[30]=>
string(14) "apache2handler"
[31]=>
string(5) "dbase"
[32]=>
string(3) "dom"
[33]=>
string(2) "gd"
[34]=>
string(4) "json"
[35]=>
string(9) "MapScript"
[36]=>
string(8) "mbstring"
[37]=>
string(4) "odbc"
[38]=>
string(3) "PDO"
[39]=>
string(8) "PDO_ODBC"
[40]=>
string(9) "pdo_pgsql"
[41]=>
string(10) "pdo_sqlite"
[42]=>
string(5) "pgsql"
[43]=>
string(9) "xmlreader"
[44]=>
string(6) "xmlrpc"
[45]=>
string(9) "xmlwriter"
[46]=>
string(3) "xsl"
[47]=>
string(3) "zip"
}
Existe o ms_configura.php? Sim
Incluindo...
dir_tmp = /var/tmp/ms_tmp
temasdir = /var/www/html/i3geo/temas
temasaplic = /var/www/html/i3geo/aplicmap
locmapserv = /cgi-bin/mapserv
locaplic = /var/www/html/i3geo
locsistemas = http://mapas.mma.gov.br/i3geo/menutemas/sistemas.xml
locidentifica = http://mapas.mma.gov.br/i3geo/menutemas/identifica.xml
localizando o cgi...
O arquivo cgi http://localhost/cgi-bin/mapserv do mapserver nao foi encontrado
Escrevendo no diretorio temporario...
Erro. Saindo...N�o foi poss�vel gravar no diret�rio tempor�rioExiste o geral1.map? Sim
Existe o http://mapas.mma.gov.br/i3geo/menutemas/sistemas.xml? ok
Lendo sistemas.xml
Existe o http://mapas.mma.gov.br/i3geo/menutemas/identifica.xml? ok
Lendo locidentifica.xml
Existe o menutemas.xml? ok
Lendo /var/www/html/i3geo/menutemas/menutemas.xml
Carregando o map_file geral1...
E agora..desenhando o mapa (se o mapa n�o aparecer � um problema...
verifique os caminhos no ms_configura.php e no geral1.map ou geral1windows.map):
Nome da imagem gerada: teste.png
-----------------
Desde já agradeço atenção.
--
Vicente Bauer Neto
Soldado PMSC
Engenheiro Sanitarista e Ambiental
Autor: Vicente Bauer

1Um comentário
# ln /usr/sbin/mapserv mapserv
Resolvido o problema do mapserver. Com relação ao acesso da pasta ms_tmp, o problema era lidar com as permissões do SELinux.
Como comecei a usar o Fedora a pouco tempo. Não sei como lidar com suas políticas, mas eram estas que não deixam o Apache utilizar as pasta var/tmp/ms_tmp e o diretório /home/ onde eu guardo meus shapefiles. Para testar o I3geo desliguei o SELinux, mas não aconselho isso por longo tempo, pois desabilita toda a segurança que o SELinux provê.
# gedit /etc/selinux/config no editor de texto substitua a linha: SELINUX=enforcing pela linha:
SELINUX=disabled Salve e reinicie o sistema
# reboot
Problema SELinux resolvido. Permissões:
Estava encucado em como dar acesso a ms_tmp ao usuário apache sem mudar as permissões de escrita,leitura e execução originais. Pois isso seria mais benéfico em relação a segurança do que dar acesso irrestrito a todos (chmod 777).
No Fedora o usuário que o Apache usa é o apache e no Ubuntu é o www-data. No Fedora
# chown apache.apache /var/tmp/ms_tmp No Ubuntu
# chown www-data.www-data /var/tmp/ms_tmp Abraços