Warning: dl() [function.dl]: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_mapscript.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_mapscript.so: cannot open shared object file: No such file or directory in /usr/local/apache2/htdocs/app/getcode.php on line 12
Fatal error: Call to undefined function ms_newMapObj() in /usr/local/apache2/htdocs/app/getcode.php on line 14
to fix:
make sure mapserver is compiled with --with-php=/usr/local/include/php
create directory /usr/local/lib/php/extensions/no-debug-non-zts-20060613
copy mapserver-5.0.3/mapscript/php3/php_mapscript.so to the directory above
to test:
create a php test file and browse
<html>
<body>
<?php
if (PHP_OS == "WINNT" || PHP_OS == "WIN32")
{
dl("php_mapscript.dll");
}
else
{
dl("php_mapscript.so");
}
phpinfo();
?>
</body>
</html>
Ensure that the php_mapscript.webspacekit so extension is installed and enabled in your PHP configuration, and verify the path to the library is correctly set.
ReplyDelete