PHP MapScript installation problem
Jussi Rasinmäki
jussi.rasinmaki at HELSINKI.FI
Sat Feb 12 12:24:20 PST 2005
Yes, Mapserver was compiled with
option --with-php=/opt/app/mapserver/mapserver_libs/php-4.3.10
which is the PHP version that's running.
----- Original Message -----
From: "Andy Canfield" <andy.canfield at gmail.com>
To: "Jussi Rasinmäki" <jussi.rasinmaki at helsinki.fi>
Sent: Friday, February 11, 2005 10:18 PM
Subject: Re: [UMN_MAPSERVER-USERS] PHP MapScript installation problem
Hmmm have you checked to make sure the Php version you are running is
the same one that Mapscript was compiled with? IE if you had both Php
3 and 4 on your machine and the compile linked 3 but you are running 4
that could probably cause this problem too.
On Sat, 12 Feb 2005 21:46:55 +0200, Jussi Rasinmäki
<jussi.rasinmaki at helsinki.fi> wrote:
> Hei Andy,
> All the directories and files that I can see have any relevance for the
> matter have the r-x rights for others, so this shouldn't be a problem?
> Jussi
>
> ----- Original Message -----
> From: "Andy Canfield" <andy.canfield at gmail.com>
> To: "Jussi Rasinmäki" <jussi.rasinmaki at helsinki.fi>
> Sent: Friday, February 11, 2005 5:05 PM
> Subject: Re: [UMN_MAPSERVER-USERS] PHP MapScript installation problem
>
> Paiva Jussi. Have you checked the security settings on the directory
> mapserver is in within Apache to see what the permissions are? So far
> the biggest reason I have seen for library load failures is the
> directories security settings.
>
> On Fri, 11 Feb 2005 03:00:24 -0600, Jussi Rasinmäki
> <jussi.rasinmaki at helsinki.fi> wrote:
> > My spanish is elementary, very elementary, but:
> > I've run the info.php with phpinfo() and the location of the php
> > configuration file corresponds to the one given by phpinfo()
> >
> > Jussi
> >
> > On Thu, 10 Feb 2005 14:06:05 -0600, Carlos Eduardo Sibaja Salazar
> > <carloseduardo at COSTARRICENSE.CR> wrote:
> >
> > >Lo que tienes que hacer es correr primero un script que solo ejecute la
> > instrucción
> > >phpinfo(), de esta manera:
> > ><html>
> > > <?php
> > > phpinfo();
> > > ?>
> > ></html>
> > >Si eso funciona entonces verás una serie de tablas con información
> > >sobre
> > php. Busca donde
> > >dice: "Configuration File (php.ini) Path", y asegúrate de copiar el
> > >archivo
> > php.ini en esa
> > >dirección.
> > >
> > >Luego de eso ya puedes agregar la instrucción "dl(php_mapscript.so)" en
> > >el
> > script.
> > >
> > >Suerte.
> > >
> > >----- Mensaje original -----
> > >De: jussi.rasinmaki at HELSINKI.FI
> > >Enviado: Jue 10/02/2005 12:05:43 AM
> > >Asunto: [UMN_MAPSERVER-USERS] PHP MapScript installation problem
> > >
> > >Hi,
> > >
> > >I've tried to install Mapserver with PHP Mapscript on Whitebox Linux 3,
> > >but
> > >have run into difficulties with PHP and php_mapscript.so.
> > >dl("php_mapscript.so") returns the following warning:
> > >Warning: dl(): Unable to load dynamic library
> > >'/usr/local/php/extensions/php_mapscript.so' - libclntsh.so.10.1:
> > >cannot
> > >open shared object file: No such file or directory in
> > >/var/www/html/info.
> > php
> > >on line 7
> > >
> > >PHP 4.3.10 is installed using the following configuration:
> > >/configure --enable-shared --with-jpeg-dir=/usr --with-png-dir=/usr --with-
> > >zlib --with-gd=/usr/local --with-freetype-dir=/usr --enable-force-cgi-
> > redire
> > >ct --with-config-file-path=/usr/local/php/ --prefix=/usr/local/php
> > >
> > >and the php.ini in /user/local/php has the following line:
> > >extension_dir = "/usr/local/php/extensions/"
> > >
> > >Mapserver is configured as:
> > >/configure --without-tiff --without-eppl --with-threads --with-proj --with-
> > >gdal --with-oraclespatial=/opt/app/oracle/product/10.1.0/Db_1 --with-php=/
> > op
> > >t/app/mapserver/mapserver_libs/php-4.3.10 --with-gd=/usr/local --with-
> > freet
> > >ype=/usr/bin --with-wmsclient
> > >
> > >and the built php_mapscript.so is copied to /usr/local/php/extensions
> > >
> > >However, php-config --extension-dir returns
> > >/usr/local/php/lib/php/extensions/no-debug-non-zts-20020429
> > >which is a non-existing directory.
> > >
> > >What went wrong?
> > >
> > >Thanks,
> > >Jussi Rasinmäki
> > >
> > >
> > >_______________________________________
> > >Yo me registré en www.costarricense.cr
> >
>
>
More information about the MapServer-users
mailing list