Changes between Initial Version and Version 1 of PHPMapScriptFedoraCore


Ignore:
Timestamp:
Jan 27, 2009, 9:30:42 AM (15 years ago)
Author:
jmckenna
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PHPMapScriptFedoraCore

    v1 v1  
     1= Instructions to install PHPMapScript on Fedora Core =
     2
     3These instructions were sent to mapserver-users by Lindsay C. Blanton:
     4
     5To get php_mapscript working properly on a Redhat Fedora box, I used the
     6following steps:
     7
     81.  Download the php-devel rpm from Redhat and install
     92.  Compile mapserver with the --with-php=/usr/include/php option
     103.  Copy mapserv to /cgi-bin
     114.  Copy the php_mapscript.so file into /usr/lib/php4/
     125.  Create a php wrapper script (php.sh) for the php cgi and save it
     13    into /cgi/bin:
     14{{{
     15    #!/bin/bash
     16    export SCRIPT_FILENAME=$PATH_TRANSLATED
     17    /usr/bin/php
     18}}}
     196.  Add the following action handlers for phtml (and/or .php) files in
     20httpd.conf
     21{{{
     22    Action phtml-script /cgi-bin/php.sh
     23    AddHandler phtml-script .phtml
     24}}}
     25Now apache calls the php cgi for mapscript php files, and the php apache
     26module is called for everything else.
     27
     28Hope this helps someone out there using preinstalled Linux
     29distributions.
     30