2

I installed php-extension php-mapscript-6.4.1 and restarted apache.

The installation looks like successfully. The appropriate files is established as for other working extensions:

  1. In /etc/php5/conf.d/ directory:

mapscript.ini

with extension=php_mapscript.so string.

  1. In /usr/lib/php5/extensions/ directory:

php_mapscript.so - link to php_mapscript.so.1

php_mapscript.so.1 - link to php_mapscript.so.6.4.1

php_mapscript.so.6.4.1 - shared library

But the extension does not work, php -m or phpinfo() does not show a presence of the php_mapscript and extension_loaded('php_mapscript') returns FALSE.

Thanx for any help.

MapUser
  • 161
  • 1
  • 2
  • 12
  • Did you install MapServer itself? php-mapscript won't work without it. And is there a particular reason you're using version 6.4 instead of 7.0? See http://mapserver.org. – Hal Mueller Sep 30 '15 at 20:38
  • The OpenSuse repository doesn't contain v 7.0, v 6.4.1 only. I prefer to get software from the native repository rather than compiling from source every time. So the MapServer was installed with Mapscript as its dependency automaticly. – MapUser Oct 02 '15 at 14:01

1 Answers1

0

I think your mapscript.ini might be incorrect. Mine has the full path to the extension:

; Enable php_mapscript
extension=/usr/lib64/php/modules/php_mapscript.so

I'm on a different distribution of Linux, so your path would be different than mine, of course.

Hal Mueller
  • 6,785
  • 2
  • 22
  • 40
  • Unfortunately the defining of full path does not help. – MapUser Oct 03 '15 at 18:18
  • I'm out of ideas. But this smells to me like a PHP/Linux issue more than a MapServer/MapScript one. You'll be able to get more MapServer eyes on this by asking on the mailing list, mapserver-users@lists.osgeo.org. See http://www.mapserver.org/community/lists.html – Hal Mueller Oct 05 '15 at 03:08