[Mapserver-users] Crash installing on a dual-PHP server
Eduardo Patto Kanegae
eduardo at consultoria.eti.br
Wed Jul 21 18:13:21 PDT 2004
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 ***
More information about the MapServer-users
mailing list