[FGS] Error from php-mysql module

Normand Savard nsavard at mapgears.com
Fri Aug 28 07:03:19 EST 2009


Alan Hale wrote:
> Normand Savard wrote:
>   
>> What does phpinfo says about mysql?  To see the output of phpinfo just 
>> access "http://localhost:yourport/" and click the phpinfo link.
>>
>> Norm
>>     
>
> Hi Norm
>
> It actually gives a similar error message to my own script:
>
> Unable to load dynamic library 
> '/home/fgs/fgs-dev/built/php/lib/php/extensions/no-debug-non-zts-20060613/php_mapscript.so' 
> - 
> /home/fgs/fgs-dev/built/php/lib/php/extensions/no-debug-non-zts-20060613/php_mapscript.so: 
> cannot open shared object file: No such file or directory 
> in */opt/fgs/www/htdocs/phpinfo_mapscript.php* on line *2
>
> Alan
> *
>
>
>   
Alan,

This is strange because I tested it yesterday and I didn't get this error.

 sh fgs-mapserver_basic_5.4.2-fgs_9.5-linux-i386.bin
cd $FGS_HOME
. setenv.sh
fgs install php_mysql-module /path/to/module
fgs start

opened browser
accessed http://localhost:myport/
clicked on phpinfo link
get the following output


Just by curiosity on which OS are you?

Norm


    mysql

MySQL Support 	enabled
Active Persistent Links 	0
Active Links 	0
Client API version 	5.1.30
MYSQL_MODULE_TYPE 	external
MYSQL_SOCKET 	/tmp/mysql.sock
MYSQL_INCLUDE 
-I/home/fgs/fgs-dev/built/mysql-5.1.30-linux-i686-icc-glibc23/include
MYSQL_LIBS 
-L/home/fgs/fgs-dev/built/mysql-5.1.30-linux-i686-icc-glibc23/lib 
-lmysqlclient


Directive 	Local Value 	Master Value
mysql.allow_persistent 	On 	On
mysql.connect_timeout 	60 	60
mysql.default_host 	/no value/ 	/no value/
mysql.default_password 	/no value/ 	/no value/
mysql.default_port 	/no value/ 	/no value/
mysql.default_socket 	/no value/ 	/no value/
mysql.default_user 	/no value/ 	/no value/
mysql.max_links 	Unlimited 	Unlimited
mysql.max_persistent 	Unlimited 	Unlimited
mysql.trace_mode 	Off 	Off







More information about the Foss-gis-suite mailing list