[Chameleon] Chameleon Digest, Vol 68, Issue 2

Fernando Sánchez García i82sagaf at uco.es
Mon Feb 15 08:07:02 EST 2010


Solution:

     * Download the package php (at php.net)
     * 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




chameleon-request at lists.maptools.org escribió:

> Send Chameleon mailing list submissions to
> 	chameleon at lists.maptools.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.maptools.org/mailman/listinfo/chameleon
> or, via email, send a message with subject or body 'help' to
> 	chameleon-request at lists.maptools.org
>
> You can reach the person managing the list at
> 	chameleon-owner at lists.maptools.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Chameleon digest..."
>
>
> Today's Topics:
>
>    1. LocateByAttribute Widget Library needed (Fernando S?nchez Garc?a)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 12 Feb 2010 13:04:11 +0100
> From: Fernando S?nchez Garc?a 	<i82sagaf at uco.es>
> Subject: [Chameleon] LocateByAttribute Widget Library needed
> To: chameleon at lists.maptools.org
> Message-ID: <20100212130411.78523yoqnb2qq30b 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 urge? 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)
>
>
> ------------------------------
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>
>
> End of Chameleon Digest, Vol 68, 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


More information about the Chameleon mailing list