Dear Friends,

I have problem for using phpmapscript.
I'm using Mandrake 10.2 and I have downloaded and installed php4.4.2 and 
mapserver4.8.3.

actually Apache server which I'm using 2.0.53 version comes php as modules 
version is 4.3.10. 
I have installed PHP4.4.2 on /usr/bin/php-4.4.2/ directory succesfully and
I have installed Mapserver /usr/bin/mapserver-4.8.3/ by using following 
command succesfully

./configure --with-php=/usr/bin/php-4.4.2/
make
cp mapserv /var/www/cgi-bin
than after this 
I have copied php_mapscript.so file which is existing under  directory of  

"/usr/bin/mapserver-4.8.3/mapscript/php3/"

by using following command to directory ../extensions

cp php_mapscript.so /usr/lib/php/extensions/  

Than When I try to open phpinfo_mapscript.phtml file attached file opening and 
php_mapscript seems installed but I'm not sure this way is correct.


MapScript
MapServer Version       MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG 
OUTPUT=JPEG 
OUTPUT=WBMP OUTPUT=SVG SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=JPEG 
INPUT=SHAPEFILE
PHP MapScript Version   ($Revision: 1.242.2.2 $ $Date: 2006/03/16 21:03:01 $)

But when I'm trying to test gmap75.phtml 
I'm facing following error mesages 

Warning: dl(): Unable to load dynamic library 
'/usr/lib/php/extensions/php_dbase.so' 
- /usr/lib/php/extensions/php_dbase.so: cannot open shared object file: No 
such file or directory in /var/www/html/gmap-ms46/htdocs/gmap75.phtml on line 
58

and

Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 
'bathymetry'. in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 550

Warning: [MapServer Error]: drawTIFF(): TIFF support is not available. 
in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 550

Fatal error: Call to a member function on a non-object 
in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 552


So How can I run mapserver with phpmapscript applications...
Please ıf anyone will help me I will be thankfull to him/her...

Thank you for your interest...

Murat BEYHAN
Geophysical Engineer, M.Sc
Earthquake Research Department
Ankara/TURKEY




-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Attachment: phpinfo_mapscript_002.gif
Description: GIF image

Attachment: phpinfo_mapscript.gif
Description: GIF image

Title: phpinfo()
PHP Logo

PHP Version 4.3.10


System Linux sakura.deprem.gov.tr 2.6.11-6mdk #1 Tue Mar 22 16:04:32 CET 2005 i686
Build Date Mar 21 2005 15:54:09
Configure Command This is irrelevant, look inside the /usr/share/doc/php-4.3.10/configure_command file. urpmi is your friend, use it to install extensions not shown below.
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php.ini
Scan this dir for additional .ini files /etc/php.d
additional .ini files parsed /etc/php.d/23_gd.ini, /etc/php.d/26_imap.ini, /etc/php.d/27_ldap.ini, /etc/php.d/34_mysql.ini, /etc/php.d/39_pgsql.ini, /etc/php.d/41_readline.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.zlib

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies


PHP Credits


Configuration

PHP Core

DirectiveLocal ValueMaster Value
allow_call_time_pass_referenceOnOn
allow_url_fopenOnOn
always_populate_raw_post_dataOffOff
arg_separator.input&&
arg_separator.output&&
asp_tagsOffOff
auto_append_fileno valueno value
auto_prepend_fileno valueno value
browscapno valueno value
default_charsetno valueno value
default_mimetypetext/htmltext/html
define_syslog_variablesOffOff
disable_classesno valueno value
disable_functionsno valueno value
display_errorsOnOn
display_startup_errorsOffOff
doc_rootno valueno value
docref_extno valueno value
docref_rootno valueno value
enable_dlOnOn
error_append_stringno valueno value
error_logno valueno value
error_prepend_stringno valueno value
error_reporting20392039
expose_phpOnOn
extension_dir/usr/lib/php/extensions/usr/lib/php/extensions
file_uploadsOnOn
gpc_orderGPCGPC
highlight.bg#FFFFFF#FFFFFF
highlight.comment#FF8000#FF8000
highlight.default#0000BB#0000BB
highlight.html#000000#000000
highlight.keyword#007700#007700
highlight.string#DD0000#DD0000
html_errorsOnOn
ignore_repeated_errorsOffOff
ignore_repeated_sourceOffOff
ignore_user_abortOffOff
implicit_flushOffOff
include_path.:/usr/lib/php/:/usr/share/pear/.:/usr/lib/php/:/usr/share/pear/
log_errorsOffOff
log_errors_max_len10241024
magic_quotes_gpcOnOn
magic_quotes_runtimeOffOff
magic_quotes_sybaseOffOff
max_execution_time3030
max_input_time6060
memory_limit8M8M
open_basedirno valueno value
output_bufferingno valueno value
output_handlerno valueno value
post_max_size8M8M
precision1414
register_argc_argvOnOn
register_globalsOnOn
report_memleaksOnOn
safe_modeOffOff
safe_mode_exec_dirno valueno value
safe_mode_gidOffOff
safe_mode_include_dirno valueno value
sendmail_from[EMAIL PROTECTED][EMAIL PROTECTED]
sendmail_path/usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision100100
short_open_tagOnOn
SMTPlocalhostlocalhost
smtp_port2525
sql.safe_modeOffOff
track_errorsOffOff
unserialize_callback_funcno valueno value
upload_max_filesize2M2M
upload_tmp_dirno valueno value
user_dirno valueno value
variables_orderEGPCSEGPCS
xmlrpc_error_number00
xmlrpc_errorsOffOff
y2k_complianceOnOn

MapScript

MapServer Version MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE
PHP MapScript Version ($Revision: 1.242.2.2 $ $Date: 2006/03/16 21:03:01 $)

apache2handler

Apache Version Apache-AdvancedExtranetServer/2.0.53 (Mandriva Linux/PREFORK-9.4.102mdk) mod_ssl/2.0.53 OpenSSL/0.9.7e PHP/4.3.10 mod_perl/1.999.21 Perl/v5.8.6
Apache API Version 20020903
Server Administrator [EMAIL PROTECTED]
Hostname:Port sakura.deprem.gov.tr:0
User/Group apache(73)/73
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 15
Virtual Server No
Server Root /etc/httpd/2.0
Loaded Modules core prefork http_core mod_so mod_access mod_auth mod_auth_anon mod_auth_digest mod_include mod_log_config mod_logio mod_env mod_expires mod_headers mod_usertrack mod_setenvif mod_mime mod_status mod_autoindex mod_asis mod_info mod_cgi mod_vhost_alias mod_negotiation mod_dir mod_imap mod_actions mod_userdir mod_alias mod_rewrite mod_ssl mod_suexec mod_php4 mod_perl

DirectiveLocal ValueMaster Value
engine11
last_modified00
xbithack00

Apache Environment

VariableValue
HTTP_HOST localhost
HTTP_USER_AGENT Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.7
HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_KEEP_ALIVE 300
HTTP_CONNECTION keep-alive
HTTP_CACHE_CONTROL max-age=0
PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
SERVER_SIGNATURE <address>Apache-AdvancedExtranetServer/2.0.53 (Mandriva Linux/PREFORK-9.4.102mdk) mod_ssl/2.0.53 OpenSSL/0.9.7e PHP/4.3.10 mod_perl/1.999.21 Perl/v5.8.6 Server at sakura.deprem.gov.tr Port 80</address>
SERVER_SOFTWARE Apache-AdvancedExtranetServer/2.0.53 (Mandriva Linux/PREFORK-9.4.102mdk) mod_ssl/2.0.53 OpenSSL/0.9.7e PHP/4.3.10 mod_perl/1.999.21 Perl/v5.8.6
SERVER_NAME sakura.deprem.gov.tr
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 127.0.0.1
DOCUMENT_ROOT /var/www/html
SERVER_ADMIN [EMAIL PROTECTED]
SCRIPT_FILENAME /var/www/html/phpinfo_mapscript.phtml
REMOTE_PORT 2272
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /phpinfo_mapscript.phtml
SCRIPT_NAME /phpinfo_mapscript.phtml

HTTP Headers Information

HTTP Request Headers
HTTP Request GET /phpinfo_mapscript.phtml HTTP/1.1
Host localhost
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.7
Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
Cache-Control max-age=0
HTTP Response Headers
X-Powered-By PHP/4.3.10
Keep-Alive timeout=15, max=100
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/html

ctype

ctype functions enabled

ftp

FTP support enabled

gd

GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

gettext

GetText Support enabled

imap

IMAP c-Client Version 2001
SSL Support enabled

ldap

LDAP Support enabled
RCS Version $Id: ldap.c,v 1.130.2.10 2004/06/01 21:05:33 iliaa Exp $
Total Links 0/unlimited
API Version 3001
Vendor Name OpenLDAP
Vendor Version 20223

mysql

MySQL Supportenabled
Active Persistent Links 0
Active Links 0
Client API version 4.1.11
MYSQL_MODULE_TYPE none
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value

DirectiveLocal ValueMaster Value
mysql.allow_persistentOnOn
mysql.connect_timeout6060
mysql.default_hostno valueno value
mysql.default_passwordno valueno value
mysql.default_portno valueno value
mysql.default_socketno valueno value
mysql.default_userno valueno value
mysql.max_linksUnlimitedUnlimited
mysql.max_persistentUnlimitedUnlimited
mysql.trace_modeOffOff

openssl

OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.7e 25 Oct 2004

pcre

PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 4.5 01-December-2003

pgsql

PostgreSQL Supportenabled
PostgreSQL(libpq) Version 8.0.1
Multibyte character support enabled
SSL support enabled
Active Persistent Links 0
Active Links 0

DirectiveLocal ValueMaster Value
pgsql.allow_persistentOnOn
pgsql.auto_reset_persistentOffOff
pgsql.ignore_noticeOffOff
pgsql.log_noticeOffOff
pgsql.max_linksUnlimitedUnlimited
pgsql.max_persistentUnlimitedUnlimited

posix

Revision $Revision: 1.51.2.2 $

session

Session Support enabled
Registered save handlers files user

DirectiveLocal ValueMaster Value
session.auto_startOffOff
session.bug_compat_42OnOn
session.bug_compat_warnOnOn
session.cache_expire180180
session.cache_limiternocachenocache
session.cookie_domainno valueno value
session.cookie_lifetime00
session.cookie_path//
session.cookie_secureOffOff
session.entropy_fileno valueno value
session.entropy_length00
session.gc_divisor100100
session.gc_maxlifetime14401440
session.gc_probability11
session.namePHPSESSIDPHPSESSID
session.referer_checkno valueno value
session.save_handlerfilesfiles
session.save_path/tmp/tmp
session.serialize_handlerphpphp
session.use_cookiesOnOn
session.use_only_cookiesOffOff
session.use_trans_sidOffOff

standard

Regex Library Bundled library enabled
Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i

DirectiveLocal ValueMaster Value
assert.active11
assert.bail00
assert.callbackno valueno value
assert.quiet_eval00
assert.warning11
auto_detect_line_endings00
default_socket_timeout6060
safe_mode_allowed_env_varsPHP_PHP_
safe_mode_protected_env_varsLD_LIBRARY_PATHLD_LIBRARY_PATH
url_rewriter.tagsa=href,area=href,frame=src,input=src,form=,fieldset=a=href,area=href,frame=src,input=src,form=,fieldset=
user_agentno valueno value

yp

YP Support enabled

zlib

ZLib Support enabled
Compiled Version 1.2.2.2
Linked Version 1.2.2.2

DirectiveLocal ValueMaster Value
zlib.output_compressionOffOff
zlib.output_compression_level-1-1
zlib.output_handlerno valueno value

Additional Modules

Module Name
readline
sysvsem
sysvshm

Environment

VariableValue
text_x 10
text_y 450
CONSOLE /dev/console
theme Mandrakelinux
TMPDIR /tmp
LOCPATH /etc/locale
progress 47
INIT_VERSION sysvinit-2.85
text_color 0xeef4ff
res 800x600
PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
RUNLEVEL 5
runlevel 5
progress_enable 1
splash_rc yes
PREVLEVEL N
previous N
acpi ht
SHLVL 2
BOOT_IMAGE linux
TMP /tmp
text_size 16
splash silent
nbservices 49
LOGO_CONSOLE vt
TEXTDOMAINDIR /etc/locale
_ /sbin/initlog

PHP Variables

VariableValue
PHP_SELF /phpinfo_mapscript.phtml
_SERVER["HTTP_HOST"]localhost
_SERVER["HTTP_USER_AGENT"]Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.7
_SERVER["HTTP_ACCEPT"]text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
_SERVER["HTTP_ACCEPT_LANGUAGE"]en-us,en;q=0.5
_SERVER["HTTP_ACCEPT_ENCODING"]gzip,deflate
_SERVER["HTTP_ACCEPT_CHARSET"]ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_KEEP_ALIVE"]300
_SERVER["HTTP_CONNECTION"]keep-alive
_SERVER["HTTP_CACHE_CONTROL"]max-age=0
_SERVER["PATH"]/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
_SERVER["SERVER_SIGNATURE"]<address>Apache-AdvancedExtranetServer/2.0.53 (Mandriva Linux/PREFORK-9.4.102mdk) mod_ssl/2.0.53 OpenSSL/0.9.7e PHP/4.3.10 mod_perl/1.999.21 Perl/v5.8.6 Server at sakura.deprem.gov.tr Port 80</address>
_SERVER["SERVER_SOFTWARE"]Apache-AdvancedExtranetServer/2.0.53 (Mandriva Linux/PREFORK-9.4.102mdk) mod_ssl/2.0.53 OpenSSL/0.9.7e PHP/4.3.10 mod_perl/1.999.21 Perl/v5.8.6
_SERVER["SERVER_NAME"]sakura.deprem.gov.tr
_SERVER["SERVER_ADDR"]127.0.0.1
_SERVER["SERVER_PORT"]80
_SERVER["REMOTE_ADDR"]127.0.0.1
_SERVER["DOCUMENT_ROOT"]/var/www/html
_SERVER["SERVER_ADMIN"][EMAIL PROTECTED]
_SERVER["SCRIPT_FILENAME"]/var/www/html/phpinfo_mapscript.phtml
_SERVER["REMOTE_PORT"]2272
_SERVER["GATEWAY_INTERFACE"]CGI/1.1
_SERVER["SERVER_PROTOCOL"]HTTP/1.1
_SERVER["REQUEST_METHOD"]GET
_SERVER["QUERY_STRING"]no value
_SERVER["REQUEST_URI"]/phpinfo_mapscript.phtml
_SERVER["SCRIPT_NAME"]/phpinfo_mapscript.phtml
_SERVER["PHP_SELF"]/phpinfo_mapscript.phtml
_SERVER["PATH_TRANSLATED"]/var/www/html/phpinfo_mapscript.phtml
_SERVER["argv"]
Array
(
)
_SERVER["argc"]0
_ENV["text_x"]10
_ENV["text_y"]450
_ENV["CONSOLE"]/dev/console
_ENV["theme"]Mandrakelinux
_ENV["TMPDIR"]/tmp
_ENV["LOCPATH"]/etc/locale
_ENV["progress"]47
_ENV["INIT_VERSION"]sysvinit-2.85
_ENV["text_color"]0xeef4ff
_ENV["res"]800x600
_ENV["PATH"]/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
_ENV["RUNLEVEL"]5
_ENV["runlevel"]5
_ENV["progress_enable"]1
_ENV["splash_rc"]yes
_ENV["PREVLEVEL"]N
_ENV["previous"]N
_ENV["acpi"]ht
_ENV["SHLVL"]2
_ENV["BOOT_IMAGE"]linux
_ENV["TMP"]/tmp
_ENV["text_size"]16
_ENV["splash"]silent
_ENV["nbservices"]49
_ENV["LOGO_CONSOLE"]vt
_ENV["TEXTDOMAINDIR"]/etc/locale
_ENV["_"]/sbin/initlog

PHP License

This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact [EMAIL PROTECTED]


Current PHP version: 4.3.10

Reply via email to