How To Install php-mapserver on Fedora 36

In this tutorial we learn how to install php-mapserver in Fedora 36. php-mapserver is PHP/Mapscript map making extensions to PHP

Introduction

In this tutorial we learn how to install php-mapserver on Fedora 36.

What is php-mapserver

The PHP/Mapscript extension provides full map customization capabilities within the PHP scripting language.

We can use yum or dnf to install php-mapserver on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-mapserver.

Install php-mapserver on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install php-mapserver using dnf by running the following command:

sudo dnf -y install php-mapserver

Install php-mapserver on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install php-mapserver using yum by running the following command:

sudo yum -y install php-mapserver

How To Uninstall php-mapserver on Fedora 36

To uninstall only the php-mapserver package we can use the following command:

sudo dnf remove php-mapserver

php-mapserver Package Contents on Fedora 36

/etc/php.d/40-mapserver.ini
/usr/lib/.build-id
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/b57716ab2c65ede7e8cf7cd8119c280f111ba2
/usr/lib64/php/modules/php_mapscript.so
/usr/share/doc/php-mapserver
/usr/share/doc/php-mapserver/README
/usr/share/doc/php-mapserver/examples
/usr/share/doc/php-mapserver/examples/phpinfo_mapscript.phtml
/usr/share/doc/php-mapserver/examples/test_draw_legend_icon.phtml
/usr/share/doc/php-mapserver/examples/test_draw_map.phtml
/usr/share/doc/php-mapserver/examples/test_layer_mask.phtml
/usr/share/doc/php-mapserver/examples/test_writeshape.phtml

References

Summary

In this tutorial we learn how to install php-mapserver on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).