php dso and the mapserv cgi

Miroslav Šulc miroslav.sulc at STARTNET.CZ
Fri Dec 17 12:16:21 PST 2004


I have the same problem with MapServer and PHP 5.0.2 (and I am also on
Gentoo). I thougth that the problem is on my side but I decided to use
only PHP MapScript which showed up can give me what I want. Up to that,
I didn't find any way to find out what's wrong with the CGI.

Miroslav  ulc



Ken-ichi wrote:

> Hi all.  I tried compiling MapServer against PHP 4.3.10 compiled as an
> Apache DSO, given recent messages on this list suggesting this was now
> possible.  PHP MapScript seems to work fine, but the mapserv cgi just
> gives 500 errors, and the error log says "Premature end of script
> headers: mapserv".  I've tried adding lines to httpd.conf specifying the
> LD_LIBRARY_PATH to all relevant directories, and updating my environment
> variables (env-update, as I'm on Gentoo), but with no luck.  Any idea
> what's going on?  I don't understand why the mapserv cgi even cares how
> php is running.  It's not even using php!
>
> Oh, and here are my configure statements, if it helps:
>
> APACHE
> ./configure  \
>    --with-openssl \
>    --with-zlib \
>    --with-dbase \
>    --with-dbx \
>    --with-gd=/usr \
>    --with-jpeg-dir=/usr \
>    --with-png-dir=/usr \
>    --with-zlib-dir=/usr \
>    --with-freetype-dir=/usr \
>    --with-mcrypt \
>    --with-pdflib=/usr \
>    --with-pgsql \
>    --with-pspell \
>    --with-pear \
>    --with-apxs2=/usr/local/apache2/bin/apxs \
>    --enable-force-cgi-redirect \
>    --enable-discard-path \
>    --with-regex=system
>
> MAPSERVER
> ./configure
>    --with-gd=/usr \
>    --with-freetype=/usr \
>    --with-zlib=/usr \
>    --with-png=/usr \
>    --with-jpeg=/usr \
>    --with-pdf=/usr \
>    --with-proj=/usr \
>    --with-ogr=/usr/local/bin/gdal-config \
>    --with-gdal=/usr/local/bin/gdal-config \
>    --with-postgis=/usr/local/pgsql/bin/pg_config \
>    --with-wfs \
>    --with-wmsclient \
>    --with-wfsclient \
>    --with-curl-config=/usr/bin/curl-config \
>    --with-httpd=/usr/local/apache2/bin/httpd \
>    --with-php=/usr/local/src/php-4.3.10 \
>    --without-tiff
>
> -Ken-ichi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: miroslav.sulc.vcf
Type: text/x-vcard
Size: 387 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20041217/aca72d93/attachment.vcf>


More information about the MapServer-users mailing list