Cannot install FGS php_pgsql-module (both locally and from the internet)
I installed FGS version 1.0.0 fgs-mapserver_5.2.2-fgs_1.0.0-linux-i386.bin) on CentOS 4.2, in the /opt/fgs/ folder. Apparently the particular FGS version does not support PostgreSQL, because when I tried to run phpPgAdmin, it gaves me the following error message:
Your PHP installation does not support PostgreSQL. You need to recompile PHP using the --with-pgsql configure option.
First, I found it to be strange, because when I ran phpinfo(), I noticed '--with-pgsql=shared,/home/fgs/fgs-dev/built/postgresql' in the Configure Command section. Why can't it connect to a PostgreSQL database?
And yes, the PostgreSQL is up and running. I tried another instance of Apache (running on different port), and it connects to PostgreSQL flawlessly.
However, a quick browse on the URL shows that there is a php_pgsql module (fgs-php_pgsql-module-5.2.5-linux-i386.tar.gz). Why can't I install it?
I then tried to download the module first, and install it locally. I created a folder named ./modules/ in /opt/fgs/, and put the downloaded tarball there.
And then, I executed the following:
fgs install php_pgsql-module ./modules
(Basically I was trying to tell fgs executable to look the tarball in the ./modules folder instead of some internet folder)
However, I still got the following error message:
* Probing last version of module 'php_pgsql-module'... 5.2.5
+ Installing php_pgsql-module:
+ Getting and extracting module 'php_pgsql-module'...
! Cannot find file './modules/fgs-php_pgsql-module-5.2.5-linux-i386.tar.gz', aborting...
That's very weird, because ls command clearly shows that the tarball is there, in the ./modules/ folder:
I have tried different locations for the downloaded tarball, and adjusted my fgs install command accordingly. Ad nauseam. Nothing has worked so far.
What should I do now? How am I supposed to do to successfully install an FGS module? Please help. :-(