Table of Contents
MapServer, sau đó vì tính "nhanh, gọn, lẹ" mình chuyển sang dùng GeoServer cho các dự án mình làm.
https://mapserver.org/index.htmlTuy nhiên, đối với dự án cá nhân của mình (Mình muốn làm một trang chia sẻ dữ liệu GIS) thì bị eo hẹp về kinh phí, do vậy dữ liệu sẽ phải tìm cách lưu phân tán ở những Server khác nhau chứ không tập trung lên con VPS của mình được (Cài các app với hệ điều hành giờ nó chỉ còn trống 18Gb thôi, hic hic) [caption id="attachment_1634" align="alignnone" width="569"]

Cài đặt MapServer trên Linux
sudo apt-get install cgi-mapserver[caption id="attachment_1636" align="alignnone" width="733"]

https://gis.stackexchange.com/questions/64258/how-to-install-mapserver-on-ubuntuTuy nhiên, cài xong chạy lệnh mapserv -v bị lỗi
mapserv -v[caption id="attachment_1638" align="alignnone" width="628"]

Cài mapserver-bin
sudo apt-get install mapserver-binKiểm tra [caption id="attachment_1639" align="alignnone" width="675"]

Kiểm tra cài MapServer ok chưa
[caption id="attachment_1640" align="alignnone" width="887"]
Lỗi không tìm thấy mapserv trong thư mục cgi-bin
Nhưng rõ ràng là khi kiểm tra bằng lệnh mapserv -v thì ok. À, lúc này mới nhớ ra là mình cài MapServer chạy trên LAMPP Mà LAMPP thì config cái thư mục cgi-bin của riêng nó. Sau đó đọc cái tài liệu sau thì thấy nó bảo cứ copy mapserv của cgin-bin hệ thống bỏ vào cgi-bin của lampp là ok https://dothanhlong.org/installing-mapserver-on-a-lamp-server-linux/ Copy từ cgi-bin của hệ thống [caption id="attachment_1641" align="alignnone" width="691"]

http://dev.dothanhlong.org/cgi-bin/mapservKết quả hiển thị [caption id="attachment_1643" align="alignnone" width="577"]

Warning: Undefined variable $comments_number in /shared/webdir2/dothanhlong.org/wp-content/themes/business-hub/comments.php on line 35
Warning: Undefined variable $comments_number in /shared/webdir2/dothanhlong.org/wp-content/themes/business-hub/comments.php on line 39
0 thoughts on “[Note] Cài MapServer trên Linux (Kubuntu)”