php-pgsql-3.0.15-2.i386.rpm In order to install this package you need to edit php3.ini and add two lines: extension_dir = /usr/lib/apache extension=pgsql.so The RPM doesn't include either a README nor an INSTALL file. I was thinking the info in the RPM should include the installation instructions. (I just spent close to 2 hours trying to install this, which is why I marked it high priority.) My first guess was that this was to be installed as an apache module. Thanks
The package's %post script should handle editing the php.ini file for you, unless it has been modified drastically from the default. The version in the development tree still does this.
Well, I picked up the package from one of your mirrors this morning (not from the dev tree), and it did not change the php3.ini file.
That's odd. Is your php3.ini file the same as the one distributed in the package? What does running "rpm -qp --scripts" against the package show?
postinstall script (through /bin/sh): perl -pi -e 's|^;extension=pgsql.so|extension=pgsql.so|g' /etc/httpd/php3.ini postuninstall script (through /bin/sh): if [ $1 = 0 ]; then perl -pi -e 's|^extension=pgsql.so|;extension=pgsql.so|g' /etc/httpd/php3.ini fi #%post mysql #perl -pi -e 's|^;extension=mysql.so|extension=mysql.so|g' /etc/httpd/php3.ini #%postun mysql #if [ $1 = 0 ]; then # perl -pi -e 's|^extension=mysql.so|;extension=mysql.so|g' /etc/httpd/php3.ini#fi
What is the output of "grep pgsql.so /etc/httpd/php3.ini"?
grep pgsql.so /etc/httpd/php3.ini extension=pgsql.so diff /etc/httpd/php3.ini /etc/httpd/php3.ini.orig 146d145 < extension_dir = /usr/lib/apache # this was the line that I had to add to make it work # once I knew which file to look at
Looking at the php3.ini included in the package shows that it includes: extension_dir = /usr/lib/apache/ ; directory in which the loadable extensions (modules) reside
What php3.ini included in the package? [efm@gwen efm]$ rpm -qlp php-pgsql-3.0.15-2.i386.rpm /usr/lib/apache/pgsql.so Do you mean from some other package?
Yes, php-3.0.15-2.i386.rpm.