[FGS] Foss-gis-suite Digest, Vol 60, Issue 2

Normand Savard nsavard at mapgears.com
Mon Feb 15 09:33:08 EST 2010


Fernando,

I'm glad it works for you.  You could also have install the fgs module 
fgs-php_dbase-module-svn_trunk-linux-i386.tar.gz from

http://dl.maptools.org/dl/fgs/dev/dev-20091216/modules/

Norm

Fernando Sánchez García wrote:
> Thank you very much Norman, but this is the solution I've found:
>
>      * Download the package php (at php.net) -> php-5.2.12.tar.gz
>      * Install the package php5-dev
>      * Unpack php and enter the folder ext / dbase
>      * Execute the command phpize
>      * Execute the command. / Configure
>      * Execute the command make
>      * Copy the file to the folder compiled libraries php5 in my case  
> (usr/lib/php5/20060613 + lfs) # cp. / .libs / Dbase.so  
> usr/lib/php5/20060613 + lfs /
>      * Change the permissions # chmod 644 usr/lib/php5/20060613 + lfs  
> / dbase.so
>      * Add the extension to php.ini
>        extension_dir = "usr/lib/php5/20060613 + lfs"
>        extension = dbase.so
>      * Restart the web server
>
> With this, we dbase module for php5.
>
> I know that with the FGS suite is everything easier but I wanted to  
> install all parts. Thank you for your contributions.
>
> I also know that Chameleon is at the end of his life, but I have been  
> working since 2007 in a project where I use it until I came to  
> customize any of the widgets.
>
>
>
>
> foss-gis-suite-request at lists.maptools.org escribió:
>
>   
>> Send Foss-gis-suite mailing list submissions to
>> 	foss-gis-suite at lists.maptools.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> 	http://lists.maptools.org/mailman/listinfo/foss-gis-suite
>> or, via email, send a message with subject or body 'help' to
>> 	foss-gis-suite-request at lists.maptools.org
>>
>> You can reach the person managing the list at
>> 	foss-gis-suite-owner at lists.maptools.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Foss-gis-suite digest..."
>>
>>
>> Today's Topics:
>>
>>    1. LocateByAttribute Widget Library needed (Fernando S?nchez Garc?a)
>>    2. Re: LocateByAttribute Widget Library needed (Normand Savard)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Fri, 12 Feb 2010 13:05:58 +0100
>> From: Fernando S?nchez Garc?a 	<i82sagaf at uco.es>
>> Subject: [FGS] LocateByAttribute Widget Library needed
>> To: foss-gis-suite at lists.maptools.org
>> Message-ID: <20100212130558.43452x5kel4f1vdy at webmail.uco.es>
>> Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes";
>> 	format="flowed"
>>
>> Hello I have installed
>> Apache-PHP5-Mapsever-postgresql-postgis-Chameleon on Ubuntu Server
>> 9.10 32 bit and now everything is correct. Apache returns "It's works"
>> to do returns MAPSERVER http://locahost and typical message "No query
>> information to decode. QUERY_STRING is set, but empty."
>> http://locahost/cgi-bin/mapserv doing.
>>
>> Now I copied my website that was scheduled in windows and I have
>> copied to / opt / portal_web, I have edited the file "/
>> etc/apache2/sites-enabled/000-default and created:
>>
>> Alias / portal_web "/ opt / portal_web / htdocs"
>> <Directory "/opt/portal_web/htdocs">
>> Options Indexes FollowSymLinks MultiViews
>> AllowOverride None
>> </ Directory>
>>
>> Then I restarted and the website is perfect.
>>
>> I need to install Chameleon to view the maps. I downloaded
>> "chameleon-2.6rc1.zip" and I unpacked in / opt look like: / opt /
>> chameleon
>>
>> SET CHAMELEON:
>> 1) Following the installation guide on the help of chameleon
>> (http://chameleon.maptools.org/help/viewer.phtml) in installing Linux
>> says:
>>
>> "Create a temporary directory for MapServer to create and publish
>> images. For example, create / tmp / ms_tmp /.
>> Configure your Web Server to be able to access this directory. For
>> example, create a symlink from / var / www / html / ms_tmp / to / tmp
>> / ms_tmp /.
>> It is recommended that a cron job be created to delete the contents of
>> this directory on a regular basis (hourly or daily, depending on
>> usage). "
>>
>> I have created in / var / www / folder "html" and within this
>> "ms_tmp", with this: / var / www / html / ms_tmp / and without
>> creating the symbolic link because I want the stay there for ms_tmp
>> example.
>>
>> 2) Then the guide says:
>>
>> "Configure your Web Server to be able to access / opt / chameleon /
>> htdocs /. For example, create a symlink from / var / www / html /
>> chameleon / to / opt / chameleon / htdocs /.
>> Make sure directory chameleon / data is writable by the web user. This
>> is where temporary cached capabilities and other information are
>> stored for the duration of a user's session. "
>>
>> But I think this is to see from localhost chameleon links to their
>> samples and other things and I have not done.
>>
>> 3) Then say:
>>
>> "Config/cwc2.xml-dist Copy the file under the name cwc2.xml and edit
>> it to suit your local settings (the Web-based interface is not ready)."
>>
>> I have edited the "cwc2.xml" and "chameleon.xml" and I placed my
>> routes. I also edited the portal_web.pthml pitcher and I have put the
>> correct path of "chameleon.php.
>>
>> 4) After you restart Apache everything correctly except Widget
>> "LocateByAttribute.
>>
>> I open it and find I get the following error:
>>
>> "Warning: dl () [function.dl]: Dynamically loaded extensions are not
>> enabled in / opt / chameleon / htdocs / widgets / LocateByAttribute /
>> searchresults.phtml on line 68
>>
>> Fatal error: Call to undefined function dbase_create () in / opt /
>> chameleon / htdocs / widgets / LocateByAttribute / searchresults.phtml
>> on line 438 "
>>
>>
>> I have searched and those lines are:
>>
>>         if (! extension_loaded ( 'dbase'))
>>
>>         (
>>
>>         $ dbasemodulename = 'php_dbase.'. PHP_SHLIB_SUFFIX;
>>
>>         dl ($ dbasemodulename);
>>
>>         )
>>
>>
>> therefore infer that I am missing some library. After looking on from
>> FGS've seen that I'm missing:
>>
>> "php_dbase-module: svn_trunk"
>>
>> I downloaded the file
>> "fgs-php_dbase-module-svn_trunk-linux-i386.tar.gz" and the problem is
>> that you install the libraries. The file contine two directories:
>>
>> / www/lib/php5 / -> dbase-dbase.so svn_trunk.so php_dbase.so
>> / etc / fgs / pkgs / php_dbase_module -> install.sh FGS_API_VERSION
>> VERSION my_files.list required.list
>>
>> Can you help to me? Thank you.
>>
>>
>>
>>
>> Fernando S?nchez Garc?a
>> SIG-UCO Universidad de C?rdoba
>> Dept. Ingenier?a Gr?fica Y Geom?tica
>> C?RDOBA (Espa?a)
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Fri, 12 Feb 2010 08:29:06 -0500
>> From: Normand Savard <nsavard at mapgears.com>
>> Subject: Re: [FGS] LocateByAttribute Widget Library needed
>> To: Fernando S?nchez Garc?a <i82sagaf at uco.es>
>> Cc: foss-gis-suite at lists.maptools.org
>> Message-ID: <4B7557A2.7070803 at mapgears.com>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>> Fernando,
>>
>> If I were you I'll try with the latest version found here:
>>
>> http://dl.maptools.org/dl/fgs/dev/dev-20091216/self-installers/
>>
>> You could also use more advanced software like OpenLayers to display
>> your maps.  Chameleon is more or less at its end of life ...
>>
>> Norm
>>
>> Fernando S?nchez Garc?a wrote:
>>     
>>> Hello I have installed
>>> Apache-PHP5-Mapsever-postgresql-postgis-Chameleon on Ubuntu Server
>>> 9.10 32 bit and now everything is correct. Apache returns "It's works"
>>> to do returns MAPSERVER http://locahost and typical message "No query
>>> information to decode. QUERY_STRING is set, but empty."
>>> http://locahost/cgi-bin/mapserv doing.
>>>
>>> Now I copied my website that was scheduled in windows and I have
>>> copied to / opt / portal_web, I have edited the file "/
>>> etc/apache2/sites-enabled/000-default and created:
>>>
>>> Alias / portal_web "/ opt / portal_web / htdocs"
>>> <Directory "/opt/portal_web/htdocs">
>>> Options Indexes FollowSymLinks MultiViews
>>> AllowOverride None
>>> </ Directory>
>>>
>>> Then I restarted and the website is perfect.
>>>
>>> I need to install Chameleon to view the maps. I downloaded
>>> "chameleon-2.6rc1.zip" and I unpacked in / opt look like: / opt /
>>> chameleon
>>>
>>> SET CHAMELEON:
>>> 1) Following the installation guide on the help of chameleon
>>> (http://chameleon.maptools.org/help/viewer.phtml) in installing Linux
>>> says:
>>>
>>> "Create a temporary directory for MapServer to create and publish
>>> images. For example, create / tmp / ms_tmp /.
>>> Configure your Web Server to be able to access this directory. For
>>> example, create a symlink from / var / www / html / ms_tmp / to / tmp
>>> / ms_tmp /.
>>> It is recommended that a cron job be created to delete the contents of
>>> this directory on a regular basis (hourly or daily, depending on
>>> usage). "
>>>
>>> I have created in / var / www / folder "html" and within this
>>> "ms_tmp", with this: / var / www / html / ms_tmp / and without
>>> creating the symbolic link because I want the stay there for ms_tmp
>>> example.
>>>
>>> 2) Then the guide says:
>>>
>>> "Configure your Web Server to be able to access / opt / chameleon /
>>> htdocs /. For example, create a symlink from / var / www / html /
>>> chameleon / to / opt / chameleon / htdocs /.
>>> Make sure directory chameleon / data is writable by the web user. This
>>> is where temporary cached capabilities and other information are
>>> stored for the duration of a user's session. "
>>>
>>> But I think this is to see from localhost chameleon links to their
>>> samples and other things and I have not done.
>>>
>>> 3) Then say:
>>>
>>> "Config/cwc2.xml-dist Copy the file under the name cwc2.xml and edit
>>> it to suit your local settings (the Web-based interface is not ready)."
>>>
>>> I have edited the "cwc2.xml" and "chameleon.xml" and I placed my
>>> routes. I also edited the portal_web.pthml pitcher and I have put the
>>> correct path of "chameleon.php.
>>>
>>> 4) After you restart Apache everything correctly except Widget
>>> "LocateByAttribute.
>>>
>>> I open it and find I get the following error:
>>>
>>> "Warning: dl () [function.dl]: Dynamically loaded extensions are not
>>> enabled in / opt / chameleon / htdocs / widgets / LocateByAttribute /
>>> searchresults.phtml on line 68
>>>
>>> Fatal error: Call to undefined function dbase_create () in / opt /
>>> chameleon / htdocs / widgets / LocateByAttribute / searchresults.phtml
>>> on line 438 "
>>>
>>>
>>> I have searched and those lines are:
>>>
>>>         if (! extension_loaded ( 'dbase'))
>>>
>>>         (
>>>
>>>         $ dbasemodulename = 'php_dbase.'. PHP_SHLIB_SUFFIX;
>>>
>>>         dl ($ dbasemodulename);
>>>
>>>         )
>>>
>>>
>>> therefore infer that I am missing some library. After looking on from
>>> FGS've seen that I'm missing:
>>>
>>> "php_dbase-module: svn_trunk"
>>>
>>> I downloaded the file
>>> "fgs-php_dbase-module-svn_trunk-linux-i386.tar.gz" and the problem is
>>> that you install the libraries. The file contine two directories:
>>>
>>> / www/lib/php5 / -> dbase-dbase.so svn_trunk.so php_dbase.so
>>> / etc / fgs / pkgs / php_dbase_module -> install.sh FGS_API_VERSION
>>> VERSION my_files.list required.list
>>>
>>> Can you help to me? Thank you.
>>>
>>>
>>>
>>>
>>> Fernando S?nchez Garc?a
>>> SIG-UCO Universidad de C?rdoba
>>> Dept. Ingenier?a Gr?fica Y Geom?tica
>>> C?RDOBA (Espa?a)
>>> _______________________________________________
>>> Foss-gis-suite mailing list
>>> Foss-gis-suite at lists.maptools.org
>>> http://lists.maptools.org/mailman/listinfo/foss-gis-suite
>>>
>>>
>>>       
>>
>> ------------------------------
>>
>> _______________________________________________
>> Foss-gis-suite mailing list
>> Foss-gis-suite at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/foss-gis-suite
>>
>>
>> End of Foss-gis-suite Digest, Vol 60, Issue 2
>> *********************************************
>>
>>     
>
>
>
> Fernando Sánchez García
> SIG-UCO Universidad de Córdoba
> Dept. Ingeniería Gráfica Y Geomática
> Edificio Gregor Mendel C5 - 3ª Pta.
> Campus Universitario de Rabanales. Ctra. N-IV a km. 396
> 14071 CÓRDOBA (España). Telf. 957 21 21 26
> _______________________________________________
> Foss-gis-suite mailing list
> Foss-gis-suite at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/foss-gis-suite
>
>   



More information about the Foss-gis-suite mailing list