![]() So that Lizmap Web Client can modify the data contained in databases Spatialite, we must ensure that the webserver user (www-data) has well write access to the directory containing each Spatialite fileįor example, if a directory contains a QGIS project, which uses a Spatialite database placed in a db directory at the same level as the QGIS project:Īccess to the WMS and WFS servers can be limited by assigning privileges to specific repositories, see Give the appropriate rights to the directory containing Spatialite databases You can always use PostgreSQL data for editing. If it is not, then spatialite layers will not be used in the editing tool. ![]() Lizmap Web Client tests whether the spatialite support is enabled in PHP. You can follow these instructions to do so: To use editing on layers spatialite,you have to add the spatialite extension in PHP. driver = pgsql service = my_service database = "your_database" search_path = lizmap,public driver = pgsql service = my_service database = "your_database" search_path = lizmap,public Spatialite Enable Spatialite extension Retrieve the latest available stable version from our Github release page. Installing sources of Lizmap Web Client # Create a directory to store the cached serverĬhown www-data:www-data /home/data/cache/ $MYUSER -R Mkdir /home/data/ftp/ $MYUSER/qgis/rep5 & chown $MYUSER:client /home/data/ftp/ $MYUSER/qgis/rep5 Mkdir /home/data/ftp/ $MYUSER/qgis/rep4 & chown $MYUSER:client /home/data/ftp/ $MYUSER/qgis/rep4 Mkdir /home/data/ftp/ $MYUSER/qgis/rep3 & chown $MYUSER:client /home/data/ftp/ $MYUSER/qgis/rep3 Mkdir /home/data/ftp/ $MYUSER/qgis/rep2 & chown $MYUSER:client /home/data/ftp/ $MYUSER/qgis/rep2 ![]() Mkdir /home/data/ftp/ $MYUSER/qgis/rep1 & chown $MYUSER:client /home/data/ftp/ $MYUSER/qgis/rep1 Useradd -g client -d /home/data/ftp/ $MYUSER -s /bin/ftponly -m $MYUSER -k /home/data/ftp/template/Ĭhmod a-w /home/data/ftp/ $MYUSER # Creating empty directories that will be the future Lizmap Web Client directories # If error messages, increase the linux kernel configuration variables echo "kernel.shmall = 4294967296" > /etc/nf # to increase shred buffer param in kernel echo "kernel.shmmax = 4294967296" > /etc/nfĮcho 4294967296 > /proc/sys/kernel/shmallĮcho 4294967296 > /proc/sys/kernel/shmmaxįor installing Lizmap tables into the PostgreSQL database (instead of SqLite by default), you can continue until the next sectionīelow when you need to edit the file lizmap/var/config/. Pgtune -i /etc/postgresql/9.6/main/nf -o /etc/postgresql/9.6/main/ -type WebĬp /etc/postgresql/9.6/main/nf /etc/postgresql/9.6/main/Ĭp /etc/postgresql/9.6/main/ /etc/postgresql/9.6/main/nf Or into your DNS.), or replace it by your own domain name.Įnable the virtual host you just created: You should declare the lizmap.local domain name somewhere (in your /etc/hosts,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |