[Mapserver-users] Crash installing on a dual-PHP server

Mark Cave-Ayland m.cave-ayland at webbased.co.uk
Thu Jul 22 03:47:47 EDT 2004


Hi Eduardo,

It may be that you need to use the workaround given in this thread here
to create a small script that will execute the PHP executable with a
missing CGI parameter.

http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0403/msg00448.h
tml


Kind regards,

Mark.

---

Mark Cave-Ayland
Webbased Ltd.
Tamar Science Park
Derriford
Plymouth
PL6 8BX
England

Tel: +44 (0)1752 764445
Fax: +44 (0)1752 764446


This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender. You
should not copy it or use it for any purpose nor disclose or distribute
its contents to any other person.

> -----Original Message-----
> From: mapserver-users-admin at lists.gis.umn.edu 
> [mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of 
> Eduardo Patto Kanegae
> Sent: 22 July 2004 02:13
> To: mapserver-users at lists.gis.umn.edu
> Subject: [Mapserver-users] Crash installing on a dual-PHP server
> 
> 
> Hi folks,
> 
> I'm running a Linux Fedora Core 2 with its own Apache and PHP 
> installed...
> 
> So, I'll process .php, .phtml and .php3 files using this 
> default PHP ( 
> which is an Apache module).
> 
> And the files .pms will be maped to run using a PHP CGI installation.
> 
> I dowloaded php4.3.7 and compiled using:
> 
> $ ./configure --prefix=/usr/phpcgi --exec-prefix=/usr/phpcgi 
> --disable-embed --enable-cgi --enable-force-cgi-redirect 
> --enable-discard-path --enable-fastcgi --disable-debug 
> --with-layout=GNU 
> --with-config-file-path=/etc/phpcgi 
> --with-config-file-scan-dir=/etc/phpcgi/php.d --enable-safe-mode 
> --with-exec-dir=/usr/bin --enable-magic-quotes --disable-rpath 
> --enable-short-tags --with-openssl --with-zlib=/usr --enable-bcmath 
> --with-bz2 --enable-calendar --with-jpeg-dir=/usr 
> --with-tiff-dir=/usr 
> --with-curl=/usr --enable-dba --with-gdbm --with-db4=/lib --with-dbm 
> --with-inifile --enable-dbase --enable-dbx --enable-dio 
> --with-dom=shared,/usr --with-dom-xslt=/usr --with-dom-exslt=/usr 
> --enable-exif --enable-ftp --with-gd=/usr --with-png-dir=/usr 
> --with-xpm-dir=/usr/X11R6/lib --with-freetype-dir=/usr 
> --enable-gd-native-ttf --with-gettext --with-gmp --with-iconv 
> --with-imap=shared --with-kerberos --with-imap-ssl --with-ldap=shared 
> --enable-mbstring --enable-mbregex --with-mime-magic 
> --with-mysql=shared,/usr --with-ncurses --with-unixODBC  
> --with-pgsql=shared --enable-session --enable-shmop 
> --enable-sockets=shared --with-regex=system --enable-wddx 
> --enable-xml 
> --with-expat-dir=/usr --with-xmlrpc=shared 
> --with-pear=/usr/share/pear 
> --enable-inline-optimization --enable-memory-limit 
> --enable-shared 2>&1 
> | tee configure.log
> 
> $ make 2>&1 | tee make.log
> 
> $ make install 2>&1 | tee make_install.log
> 
> then modified the file /etc/httpd/conf/httpd/conf , adding:
> 
> ScriptAlias /phpcgi/ "/usr/phpcgi/bin/"
> AddType application/x-httpd-php-cgi .pms
> Action application/x-httpd-php-cgi "/phpcgi/php"
> 
> 
> so, I created a simple http://localhost/phpinfo.pms containing:
> 
> <? phpinfo() ?>
> 
> But when I run http://localhost/phpinfo.pms I only got:
> 
> *PHP ERROR* ::
> *Warning*: Unexpected character in input: '' (ASCII=15) state=1 in 
> */usr/phpcgi/bin/php* on line *4957*
> *PHP ERROR* ::
> *Warning*: Unexpected character in input: '' (ASCII=5) state=1 in 
> */usr/phpcgi/bin/php* on line *4957*
> *PHP ERROR* ::
> *Parse error*: parse error, unexpected T_STRING in 
> */usr/phpcgi/bin/php* 
> on line *4957
> 
> *and the strange is that if try to run it on prompt:
> 
> /usr/phpcgi/bin/php /var/www/html/phpinfo.pms > 
> /var/www/html/phpinfo.html
> 
> when I open http://localhost/phpinfo.html this file is OK??? strange?
> 
> 
> anybody has any idea ?
> 
> thanks in advance
> 
> -- 
> Eduardo Patto Kanegae
> http://www.consultoria.eti.br
> UIN: 303747254
> 
> Treinamento em UMN MapServer - 
> http://www.consultoria.eti.br/ptbr/?> menuoption=mapserver
> I 
> Encontro Nacional de Usuários 
> MapServer - http://mapserver.cttmar.univali.br/encontro2004
> Fórum MapServer Brasil - http://mapserver.cttmar.univali.br/forum
> 
> ***Fim da Mensagem / End of Message ***
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu 
> http://lists.gis.umn.edu/mailman/listinfo/maps> erver-users
> 






More information about the mapserver-users mailing list