Bug 60275 - Module install scripts are incorrect
Summary: Module install scripts are incorrect
Status: CLOSED DUPLICATE of bug 60037
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: php   
(Show other bugs)
Version: 1.0
Hardware: i386 Linux
Target Milestone: ---
Assignee: Phil Copeland
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2002-02-23 20:22 UTC by andrew.simpson
Modified: 2007-04-18 16:40 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-03-01 05:27:46 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description andrew.simpson 2002-02-23 20:22:13 UTC
Description of Problem:
Modules won't work with Apache, because they are not loaded automatically.

Version-Release number of selected component (if applicable):
php 4.1.1-4

How Reproducible:
Everytime installed

Steps to Reproduce:
1. Install the rpm modules php-mysql, php-ldap etc.

Actual Results:
Modules don't work with Apache

Expected Results:
The opposite to the above!

Additional Information:
The rpm contains a script to add the module into php.ini.  However the search
string does not occur in the php.ini file, so the script does nothing.

Comment 1 Techwolf 2002-02-28 18:58:32 UTC
The script needs to do this also to php.ini.

extension_dir = ./
extension_dir = /usr/lib/php4
so that php can find the modules. In my case, mysql.

Comment 2 andrew.simpson 2002-03-01 05:27:41 UTC
The last comment:

>The script needs to do this also to php.ini. change
>extension_dir = ./
>extension_dir = /usr/lib/php4
>so that php can find the modules. In my case, mysql.

I've actually entered as bug number 600037

Comment 3 Phil Copeland 2002-03-04 20:50:25 UTC

*** This bug has been marked as a duplicate of 60037 ***

Comment 4 andrew.simpson 2002-03-05 06:46:54 UTC
Whoops.  Not quite closed!!

The comment made by techwolf@att.net is a duplicate of 60037.  But my original 
comment is not.

The perl scripts in the postinstall script do not correct the windows
pathnames for the modules because the search strings are wrong.

For instance in the spec file:

%post mysql
	%{__perl} -pi -e "s|^;extension=mysql.so|extension=mysql.so|" %{_sysconfdir}/php.ini
	%{__perl} -pi -e "s|^;extension=mysql.dll|extension=mysql.so|" %{_sysconfdir}/php.ini

Should be:

%post mysql
	%{__perl} -pi -e "s|^;extension=mysql.so|extension=mysql.so|" %{_sysconfdir}/php.ini
	%{__perl} -pi -e "s|^;extension=php_mysql.dll|extension=mysql.so|" %{_sysconfdir}/php.ini

Comment 5 Phil Copeland 2002-03-05 08:54:54 UTC
Bugger. There's always something that I mistype...
Fixed for next rawhide

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