[FGS] Problem Connection to MySQL

Mazlan Man lanzx1979 at yahoo.com
Thu Jun 1 01:03:56 EDT 2006


Hi,

I've just installed the fgs-mapserver base package 
fgs-mapserver_phpmapscript_4.8.2-1.2-linux-i386.bin 
and also installed the php_mysql-module 4.4.2

Then I did fgs stop and fgs start

I've restarted apache.

after phpinfo i get this...it seems my newly installed
module was not loaded

Configure Command 	 './configure'
'--with-regex=system'
'--with-freetype-dir=/home/users/gdallaire/fgs-dev/built/freetype'
'--with-dbase'
'--prefix=/home/users/gdallaire/fgs-dev/built/php'
'--with-mysql=shared,/home/users/gdallaire/fgs-dev/built/mysql-standard-4.1.14-pc-linux-gnu-i686'
...etc...

so when run my php script to connect mysql i get this

Call to undefined function: mysql_connect() in
/home/mazlan/fgs/www/htdocs/testbed/Connections/TestBed.php
on line 9


Then I found a "SOLUTION" that require us to add this
into php.ini and restart fgs (fgs stop fgs start)

extension=mysql.so

but the problem remain the same ....found that the
newly added line suddenly missing...it seems that
apache regenerate the php.ini

So anyone ...please help me..thanks



Lanzx 



		
___________________________________________________________ 
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html


More information about the Foss-gis-suite mailing list