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.
phpinfo_mapscript_002.gif
Description: GIF image
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 |
This program makes use of the Zend Scripting Language Engine: Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
|
Configuration
PHP Core
| Directive | Local Value | Master Value |
| allow_call_time_pass_reference | On | On |
| allow_url_fopen | On | On |
| always_populate_raw_post_data | Off | Off |
| arg_separator.input | & | & |
| arg_separator.output | & | & |
| asp_tags | Off | Off |
| auto_append_file | no value | no value |
| auto_prepend_file | no value | no value |
| browscap | no value | no value |
| default_charset | no value | no value |
| default_mimetype | text/html | text/html |
| define_syslog_variables | Off | Off |
| disable_classes | no value | no value |
| disable_functions | no value | no value |
| display_errors | On | On |
| display_startup_errors | Off | Off |
| doc_root | no value | no value |
| docref_ext | no value | no value |
| docref_root | no value | no value |
| enable_dl | On | On |
| error_append_string | no value | no value |
| error_log | no value | no value |
| error_prepend_string | no value | no value |
| error_reporting | 2039 | 2039 |
| expose_php | On | On |
| extension_dir | /usr/lib/php/extensions | /usr/lib/php/extensions |
| file_uploads | On | On |
| gpc_order | GPC | GPC |
| 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_errors | On | On |
| ignore_repeated_errors | Off | Off |
| ignore_repeated_source | Off | Off |
| ignore_user_abort | Off | Off |
| implicit_flush | Off | Off |
| include_path | .:/usr/lib/php/:/usr/share/pear/ | .:/usr/lib/php/:/usr/share/pear/ |
| log_errors | Off | Off |
| log_errors_max_len | 1024 | 1024 |
| magic_quotes_gpc | On | On |
| magic_quotes_runtime | Off | Off |
| magic_quotes_sybase | Off | Off |
| max_execution_time | 30 | 30 |
| max_input_time | 60 | 60 |
| memory_limit | 8M | 8M |
| open_basedir | no value | no value |
| output_buffering | no value | no value |
| output_handler | no value | no value |
| post_max_size | 8M | 8M |
| precision | 14 | 14 |
| register_argc_argv | On | On |
| register_globals | On | On |
| report_memleaks | On | On |
| safe_mode | Off | Off |
| safe_mode_exec_dir | no value | no value |
| safe_mode_gid | Off | Off |
| safe_mode_include_dir | no value | no value |
| sendmail_from | [EMAIL PROTECTED] | [EMAIL PROTECTED] |
| sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i |
| serialize_precision | 100 | 100 |
| short_open_tag | On | On |
| SMTP | localhost | localhost |
| smtp_port | 25 | 25 |
| sql.safe_mode | Off | Off |
| track_errors | Off | Off |
| unserialize_callback_func | no value | no value |
| upload_max_filesize | 2M | 2M |
| upload_tmp_dir | no value | no value |
| user_dir | no value | no value |
| variables_order | EGPCS | EGPCS |
| xmlrpc_error_number | 0 | 0 |
| xmlrpc_errors | Off | Off |
| y2k_compliance | On | On |
| 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 $) |
| 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 |
| Directive | Local Value | Master Value |
| engine | 1 | 1 |
| last_modified | 0 | 0 |
| xbithack | 0 | 0 |
Apache Environment
| Variable | Value |
| 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 |
| 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 |
| IMAP c-Client Version | 2001 |
| SSL Support | enabled |
| 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 Support | enabled |
| 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 |
| Directive | Local Value | Master Value |
| mysql.allow_persistent | On | On |
| mysql.connect_timeout | 60 | 60 |
| mysql.default_host | no value | no value |
| mysql.default_password | no value | no value |
| mysql.default_port | no value | no value |
| mysql.default_socket | no value | no value |
| mysql.default_user | no value | no value |
| mysql.max_links | Unlimited | Unlimited |
| mysql.max_persistent | Unlimited | Unlimited |
| mysql.trace_mode | Off | Off |
| OpenSSL support | enabled |
| OpenSSL Version | OpenSSL 0.9.7e 25 Oct 2004 |
| PCRE (Perl Compatible Regular Expressions) Support | enabled |
| PCRE Library Version | 4.5 01-December-2003 |
| PostgreSQL Support | enabled |
| PostgreSQL(libpq) Version | 8.0.1 |
| Multibyte character support | enabled |
| SSL support | enabled |
| Active Persistent Links | 0 |
| Active Links | 0 |
| Directive | Local Value | Master Value |
| pgsql.allow_persistent | On | On |
| pgsql.auto_reset_persistent | Off | Off |
| pgsql.ignore_notice | Off | Off |
| pgsql.log_notice | Off | Off |
| pgsql.max_links | Unlimited | Unlimited |
| pgsql.max_persistent | Unlimited | Unlimited |
| Revision | $Revision: 1.51.2.2 $ |
| Session Support | enabled |
| Registered save handlers | files user |
| Directive | Local Value | Master Value |
| session.auto_start | Off | Off |
| session.bug_compat_42 | On | On |
| session.bug_compat_warn | On | On |
| session.cache_expire | 180 | 180 |
| session.cache_limiter | nocache | nocache |
| session.cookie_domain | no value | no value |
| session.cookie_lifetime | 0 | 0 |
| session.cookie_path | / | / |
| session.cookie_secure | Off | Off |
| session.entropy_file | no value | no value |
| session.entropy_length | 0 | 0 |
| session.gc_divisor | 100 | 100 |
| session.gc_maxlifetime | 1440 | 1440 |
| session.gc_probability | 1 | 1 |
| session.name | PHPSESSID | PHPSESSID |
| session.referer_check | no value | no value |
| session.save_handler | files | files |
| session.save_path | /tmp | /tmp |
| session.serialize_handler | php | php |
| session.use_cookies | On | On |
| session.use_only_cookies | Off | Off |
| session.use_trans_sid | Off | Off |
| Regex Library | Bundled library enabled |
| Dynamic Library Support | enabled |
| Path to sendmail | /usr/sbin/sendmail -t -i |
| Directive | Local Value | Master Value |
| assert.active | 1 | 1 |
| assert.bail | 0 | 0 |
| assert.callback | no value | no value |
| assert.quiet_eval | 0 | 0 |
| assert.warning | 1 | 1 |
| auto_detect_line_endings | 0 | 0 |
| default_socket_timeout | 60 | 60 |
| safe_mode_allowed_env_vars | PHP_ | PHP_ |
| safe_mode_protected_env_vars | LD_LIBRARY_PATH | LD_LIBRARY_PATH |
| url_rewriter.tags | a=href,area=href,frame=src,input=src,form=,fieldset= | a=href,area=href,frame=src,input=src,form=,fieldset= |
| user_agent | no value | no value |
| ZLib Support | enabled |
| Compiled Version | 1.2.2.2 |
| Linked Version | 1.2.2.2 |
| Directive | Local Value | Master Value |
| zlib.output_compression | Off | Off |
| zlib.output_compression_level | -1 | -1 |
| zlib.output_handler | no value | no value |
Additional Modules
| Module Name |
| readline |
| sysvsem |
| sysvshm |
Environment
| Variable | Value |
| 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
| Variable | Value |
| 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