Bug 15669 - Install documentation missing
Install documentation missing
Product: Red Hat Linux
Classification: Retired
Component: php (Show other bugs)
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Nalin Dahyabhai
Depends On:
  Show dependency treegraph
Reported: 2000-08-07 14:17 EDT by Need Real Name
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-08-08 11:36:40 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2000-08-07 14:17:35 EDT

In order to install this package you need to edit
php3.ini and add two lines:
extension_dir = /usr/lib/apache

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.

Comment 1 Nalin Dahyabhai 2000-08-07 16:24:35 EDT
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.
Comment 2 Need Real Name 2000-08-07 17:26:23 EDT
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.
Comment 3 Nalin Dahyabhai 2000-08-07 17:45:34 EDT
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?
Comment 4 Need Real Name 2000-08-07 18:07:07 EDT
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

#%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'
Comment 5 Nalin Dahyabhai 2000-08-07 18:10:03 EDT
What is the output of "grep pgsql.so /etc/httpd/php3.ini"?
Comment 6 Need Real Name 2000-08-07 18:31:55 EDT
grep pgsql.so /etc/httpd/php3.ini

diff /etc/httpd/php3.ini /etc/httpd/php3.ini.orig
< 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
Comment 7 Nalin Dahyabhai 2000-08-08 10:46:31 EDT
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
Comment 8 Need Real Name 2000-08-08 11:23:48 EDT
What php3.ini included in the package?

[efm@gwen efm]$ rpm -qlp php-pgsql-3.0.15-2.i386.rpm

Do you mean from some other package?
Comment 9 Nalin Dahyabhai 2000-08-08 11:36:39 EDT
Yes, php-3.0.15-2.i386.rpm.

Note You need to log in before you can comment on or make changes to this bug.