SlideShare a Scribd company logo
1 of 3
Download to read offline
Table of Contents
Documentation1.
FAQ2.
User Portal
Use of this Wiki and Ticket system1.
3.
Quick install instructions for p.mapper 3.2
For more detailed documentation see the p.mapper manual
PHP Settings
PHP/MapScript Library and WebServer
p.mapper in the current version requires PHP 5. If you want to run p.mapper on PHP 4 you need to use
the older version 3.0.
Install the PHP/MapScript library in the appropriate place and configure your webserver to parse *.php
and *.phtml files with PHP.
See the documentation for PHP/MapScript and MapServer for details.
LIBICONV
PHP needs to be compiled with support of the ICONV library. This should be the default on Windows and
Unix versions of PHP
PHP.INI
Under section [PHP] for Error handling and logging set
error_reporting = E_ALL & ~E_NOTICE ;;;IMPORTANT!!!
log_errors = On
error_log = ...: Set a valid file name writable by the webserver user. IMPORTANT!!!
See the PHP Manual for more details.
In section [PHP] under the paragraph Paths and Directories set:
enable_dl = On
alternatively: load the Mapscript extension via the php.ini. This is also the required method on Windows
both for IIS and Apache running PHP as module.
The application uses PHP sessions to store user settings during the session. Modify the php.ini file to
the following settings below section [Session]:
session.save_path = ... : Set a valid path writable by the webserver user
session.use_trans_sid = 0 : set to 0 in order to be compliant with W3C XHTML Strict
session.auto_start = 0
1
Using cookies for sessions
In most cases it is recommended to disable the usage of cookies for session handling. You achieve this
by the following setting
session.use_cookies = 0
For a more detailed discussion about this setting please see the FAQ
Note that for p.mapper 1 you have to set session.use_trans_sid to 1
Settings for security As with all PHP installations it is strongly recommended to disable both
register_globals and allow_url_include (allow_url_fopen before PHP 5.2) to avoid
potential cross side scripting attacks:
register_globals = Off
allow_url_include = Off
Note that register_globals is set to Off by default and its dangerous activation needs an active input
by the system admin. Since v3.2 there are additional checks to prevent code insertion in case of very
weak PHP security settings that are against any [recommendations].
Application settings
config/config_default.ini The main configuration for p.mapper is set under the subdirectory config in
the file config.ini. Adapt following mandatory settings to your environment:
msVersion: e.g. for php_mapscript_48.so set to 48, for php_mapscript_50.dll set to 50
This setting can be skipped if the php_mapscript extension is loaded via the php.ini (see above).
If commented out the php_mapscript.so/php_mapscript.dll will be used.
mapFile: Map file location; 2 possibilities:
1) use absolute path to map file in file system (use slashes instead of backslashes)
2) filename only, if map file is under the directory specified at 'pm_config_location'
allGroups: a comma-separated list of layers/groups available in the application
useCategories: if set to 1 the thematic categories and the assigned layers/groups
have to be defined in the array $categories in "php_config.php"
General rule: if a layer belongs to a group, use the group name, otherwise use the layer name. Layer
and group names must not have spaces.
Other settings
Directory /images/legend/
This directory has to be writeable for the user that runs the web server (used for automatic update of
legend icons). Important
On a Debian system for example, this could be achieved with the command
chown -R www-data /var/www/pmapper_demo/images/legend/
2
On Windows and IIS set the directory security properties to 'Modify' for user IUSR_hostname
Demo data
You can download the demo dataset (pmapper-demodata-3.zip) and test p.mapper with the supplied
map file pmapper_demo.map.
Map file
in pmapper_demo.map adapt settings for
MAP
SHAPEPATH
(FONTSET)
(SYMBOLSET)
WEB
IMAGEPATH
IMAGEURL
Layer and group names must not have spaces.
Start p.mapper
Starting p.mapper can be done via the map.phtml file or a link from index.html.
Pre-prepared packages - MS4W and Debian/Ubuntu
In order to facilitate the first set-up of p.mapper, packages for MS4W and Debian/Ubuntu are available.
See the here how to get and install them.
3

More Related Content

Viewers also liked

Psychiatric care for mental illness
Psychiatric care for mental illnessPsychiatric care for mental illness
Psychiatric care for mental illnessJerryMorello
 
THE NEW NATURE OF BRICKELL CITY LIVING FLOOR PLANS
THE NEW NATURE OF BRICKELL CITY LIVING FLOOR PLANSTHE NEW NATURE OF BRICKELL CITY LIVING FLOOR PLANS
THE NEW NATURE OF BRICKELL CITY LIVING FLOOR PLANSLEPARC AT BRICKELL
 
Interdisciplinary presentation Lauzon
Interdisciplinary presentation LauzonInterdisciplinary presentation Lauzon
Interdisciplinary presentation LauzonDoug Shaw
 
Hotels cornwall
Hotels cornwallHotels cornwall
Hotels cornwalljohnaboyne
 
We are the world song~
We are the world song~We are the world song~
We are the world song~carolsj
 
Will Phillips: Interim Portfolio Deck Autumn 2013
Will Phillips: Interim Portfolio Deck Autumn 2013Will Phillips: Interim Portfolio Deck Autumn 2013
Will Phillips: Interim Portfolio Deck Autumn 2013Will Phillips
 
Антропогенез
АнтропогенезАнтропогенез
АнтропогенезKuklinaGL
 
StandardsandStylesCProgramming
StandardsandStylesCProgrammingStandardsandStylesCProgramming
StandardsandStylesCProgrammingKaushik Patidar
 
Cape gooseberries holland
Cape gooseberries hollandCape gooseberries holland
Cape gooseberries hollandNelson Bernal
 
Week 7 Commodity Crops and CAFOs
Week 7   Commodity Crops and CAFOsWeek 7   Commodity Crops and CAFOs
Week 7 Commodity Crops and CAFOsJenSantry
 
Capiel smart grids
Capiel smart gridsCapiel smart grids
Capiel smart gridsANIE Energia
 

Viewers also liked (17)

Psychiatric care for mental illness
Psychiatric care for mental illnessPsychiatric care for mental illness
Psychiatric care for mental illness
 
THE NEW NATURE OF BRICKELL CITY LIVING FLOOR PLANS
THE NEW NATURE OF BRICKELL CITY LIVING FLOOR PLANSTHE NEW NATURE OF BRICKELL CITY LIVING FLOOR PLANS
THE NEW NATURE OF BRICKELL CITY LIVING FLOOR PLANS
 
Interdisciplinary presentation Lauzon
Interdisciplinary presentation LauzonInterdisciplinary presentation Lauzon
Interdisciplinary presentation Lauzon
 
Hotels cornwall
Hotels cornwallHotels cornwall
Hotels cornwall
 
Автоми
АвтомиАвтоми
Автоми
 
We are the world song~
We are the world song~We are the world song~
We are the world song~
 
Will Phillips: Interim Portfolio Deck Autumn 2013
Will Phillips: Interim Portfolio Deck Autumn 2013Will Phillips: Interim Portfolio Deck Autumn 2013
Will Phillips: Interim Portfolio Deck Autumn 2013
 
Антропогенез
АнтропогенезАнтропогенез
Антропогенез
 
StandardsandStylesCProgramming
StandardsandStylesCProgrammingStandardsandStylesCProgramming
StandardsandStylesCProgramming
 
Cape gooseberries holland
Cape gooseberries hollandCape gooseberries holland
Cape gooseberries holland
 
Inspiration
InspirationInspiration
Inspiration
 
Catálogo Etiquetas Estaño
Catálogo Etiquetas EstañoCatálogo Etiquetas Estaño
Catálogo Etiquetas Estaño
 
Week 7 Commodity Crops and CAFOs
Week 7   Commodity Crops and CAFOsWeek 7   Commodity Crops and CAFOs
Week 7 Commodity Crops and CAFOs
 
1800 treat me
1800 treat me1800 treat me
1800 treat me
 
Progress in Agriculture
Progress in AgricultureProgress in Agriculture
Progress in Agriculture
 
T is for Tester May 2016
T is for Tester May 2016T is for Tester May 2016
T is for Tester May 2016
 
Capiel smart grids
Capiel smart gridsCapiel smart grids
Capiel smart grids
 

Similar to Doc quickinstall 3.x

Information on PHP Handlers
Information on PHP HandlersInformation on PHP Handlers
Information on PHP HandlersHTS Hosting
 
Updating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_ServerUpdating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_Servertutorialsruby
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />tutorialsruby
 
Updating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_ServerUpdating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_Servertutorialsruby
 
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in UbuntuHow To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in UbuntuWirabumi Software
 
Setting up a debugging environment for Drupal
Setting up a debugging environment for DrupalSetting up a debugging environment for Drupal
Setting up a debugging environment for Drupaljonlee554
 
CICON2010: Adam Griffiths - CodeIgniter 2
CICON2010: Adam Griffiths - CodeIgniter 2CICON2010: Adam Griffiths - CodeIgniter 2
CICON2010: Adam Griffiths - CodeIgniter 2CodeIgniter Conference
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linuxVicent Selfa
 
Doc manual 3.x
Doc manual 3.xDoc manual 3.x
Doc manual 3.xsetankecos
 
Supercharging your PHP pages with mod_lsapi in CloudLinux OS
Supercharging your PHP pages with mod_lsapi in CloudLinux OSSupercharging your PHP pages with mod_lsapi in CloudLinux OS
Supercharging your PHP pages with mod_lsapi in CloudLinux OSCloudLinux
 
RH302 Exam-Red Hat Linux Certification
RH302 Exam-Red Hat Linux CertificationRH302 Exam-Red Hat Linux Certification
RH302 Exam-Red Hat Linux CertificationIsabella789
 
RH302 Exam-Red Hat Linux Certification
RH302 Exam-Red Hat Linux CertificationRH302 Exam-Red Hat Linux Certification
RH302 Exam-Red Hat Linux CertificationIsabella789
 
Best Practices For Direct Admin Security
Best Practices For Direct Admin SecurityBest Practices For Direct Admin Security
Best Practices For Direct Admin Securitylisa Dsouza
 

Similar to Doc quickinstall 3.x (20)

Information on PHP Handlers
Information on PHP HandlersInformation on PHP Handlers
Information on PHP Handlers
 
Php
PhpPhp
Php
 
PHP selber bauen
PHP selber bauenPHP selber bauen
PHP selber bauen
 
Updating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_ServerUpdating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_Server
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
 
Updating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_ServerUpdating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_Server
 
Php Ppt
Php PptPhp Ppt
Php Ppt
 
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in UbuntuHow To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
 
linux installation.pdf
linux installation.pdflinux installation.pdf
linux installation.pdf
 
Setting up a debugging environment for Drupal
Setting up a debugging environment for DrupalSetting up a debugging environment for Drupal
Setting up a debugging environment for Drupal
 
CICON2010: Adam Griffiths - CodeIgniter 2
CICON2010: Adam Griffiths - CodeIgniter 2CICON2010: Adam Griffiths - CodeIgniter 2
CICON2010: Adam Griffiths - CodeIgniter 2
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linux
 
Doc manual 3.x
Doc manual 3.xDoc manual 3.x
Doc manual 3.x
 
Supercharging your PHP pages with mod_lsapi in CloudLinux OS
Supercharging your PHP pages with mod_lsapi in CloudLinux OSSupercharging your PHP pages with mod_lsapi in CloudLinux OS
Supercharging your PHP pages with mod_lsapi in CloudLinux OS
 
Php myadmin
Php myadminPhp myadmin
Php myadmin
 
RH302 Exam-Red Hat Linux Certification
RH302 Exam-Red Hat Linux CertificationRH302 Exam-Red Hat Linux Certification
RH302 Exam-Red Hat Linux Certification
 
RH302 Exam-Red Hat Linux Certification
RH302 Exam-Red Hat Linux CertificationRH302 Exam-Red Hat Linux Certification
RH302 Exam-Red Hat Linux Certification
 
Best Practices For Direct Admin Security
Best Practices For Direct Admin SecurityBest Practices For Direct Admin Security
Best Practices For Direct Admin Security
 
Manual 5
Manual 5Manual 5
Manual 5
 
Oracle applications 11i dba faq
Oracle applications 11i dba faqOracle applications 11i dba faq
Oracle applications 11i dba faq
 

Recently uploaded

Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 

Recently uploaded (20)

Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 

Doc quickinstall 3.x

  • 1. Table of Contents Documentation1. FAQ2. User Portal Use of this Wiki and Ticket system1. 3. Quick install instructions for p.mapper 3.2 For more detailed documentation see the p.mapper manual PHP Settings PHP/MapScript Library and WebServer p.mapper in the current version requires PHP 5. If you want to run p.mapper on PHP 4 you need to use the older version 3.0. Install the PHP/MapScript library in the appropriate place and configure your webserver to parse *.php and *.phtml files with PHP. See the documentation for PHP/MapScript and MapServer for details. LIBICONV PHP needs to be compiled with support of the ICONV library. This should be the default on Windows and Unix versions of PHP PHP.INI Under section [PHP] for Error handling and logging set error_reporting = E_ALL & ~E_NOTICE ;;;IMPORTANT!!! log_errors = On error_log = ...: Set a valid file name writable by the webserver user. IMPORTANT!!! See the PHP Manual for more details. In section [PHP] under the paragraph Paths and Directories set: enable_dl = On alternatively: load the Mapscript extension via the php.ini. This is also the required method on Windows both for IIS and Apache running PHP as module. The application uses PHP sessions to store user settings during the session. Modify the php.ini file to the following settings below section [Session]: session.save_path = ... : Set a valid path writable by the webserver user session.use_trans_sid = 0 : set to 0 in order to be compliant with W3C XHTML Strict session.auto_start = 0 1
  • 2. Using cookies for sessions In most cases it is recommended to disable the usage of cookies for session handling. You achieve this by the following setting session.use_cookies = 0 For a more detailed discussion about this setting please see the FAQ Note that for p.mapper 1 you have to set session.use_trans_sid to 1 Settings for security As with all PHP installations it is strongly recommended to disable both register_globals and allow_url_include (allow_url_fopen before PHP 5.2) to avoid potential cross side scripting attacks: register_globals = Off allow_url_include = Off Note that register_globals is set to Off by default and its dangerous activation needs an active input by the system admin. Since v3.2 there are additional checks to prevent code insertion in case of very weak PHP security settings that are against any [recommendations]. Application settings config/config_default.ini The main configuration for p.mapper is set under the subdirectory config in the file config.ini. Adapt following mandatory settings to your environment: msVersion: e.g. for php_mapscript_48.so set to 48, for php_mapscript_50.dll set to 50 This setting can be skipped if the php_mapscript extension is loaded via the php.ini (see above). If commented out the php_mapscript.so/php_mapscript.dll will be used. mapFile: Map file location; 2 possibilities: 1) use absolute path to map file in file system (use slashes instead of backslashes) 2) filename only, if map file is under the directory specified at 'pm_config_location' allGroups: a comma-separated list of layers/groups available in the application useCategories: if set to 1 the thematic categories and the assigned layers/groups have to be defined in the array $categories in "php_config.php" General rule: if a layer belongs to a group, use the group name, otherwise use the layer name. Layer and group names must not have spaces. Other settings Directory /images/legend/ This directory has to be writeable for the user that runs the web server (used for automatic update of legend icons). Important On a Debian system for example, this could be achieved with the command chown -R www-data /var/www/pmapper_demo/images/legend/ 2
  • 3. On Windows and IIS set the directory security properties to 'Modify' for user IUSR_hostname Demo data You can download the demo dataset (pmapper-demodata-3.zip) and test p.mapper with the supplied map file pmapper_demo.map. Map file in pmapper_demo.map adapt settings for MAP SHAPEPATH (FONTSET) (SYMBOLSET) WEB IMAGEPATH IMAGEURL Layer and group names must not have spaces. Start p.mapper Starting p.mapper can be done via the map.phtml file or a link from index.html. Pre-prepared packages - MS4W and Debian/Ubuntu In order to facilitate the first set-up of p.mapper, packages for MS4W and Debian/Ubuntu are available. See the here how to get and install them. 3