Bug 67815 - Incorrect search path in /etc/php.ini
Summary: Incorrect search path in /etc/php.ini
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: php
Version: 7.3
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Phil Copeland
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-07-02 14:08 UTC by gerry_doris
Modified: 2005-10-31 22:00 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-07-02 14:08:52 UTC
Embargoed:


Attachments (Terms of Use)

Description gerry_doris 2002-07-02 14:08:49 UTC
Description of Problem:
/etc/php.ini supplies an include path of /usr/share/php.  That doesn't exist in 
Redhat 7.3.  Instead the php packages are installed in /usr/share/pear.  This 
causes problems with applications that use php ie. installing mysql support for 
squirrelmail.

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


How Reproducible:
Do a cd to /usr/share/php.  The directory doesn't exist.  The packages are 
installed in /usr/share/pear.

Steps to Reproduce:
1. 
2. 
3. 

Actual Results:


Expected Results:


Additional Information:
I ran into this when installing mysql support for squirrelmail.  squirrelmail 
reponded with an error that it couldn't find one of the pear packages it needed 
in directory /usr/share/php which is listed as the php search path 
in /etc/php.ini.  

I fixed it by just doing a ln -s /usr/share/pear /usr/share/php

You should change the search path to replace /usr/share/php 
with /usr/share/pear.

Comment 1 Phil Copeland 2002-08-02 18:49:09 UTC
Humm
well thats the default php abuses

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"

(what were they thinking with a pathname like that)

I've inserted this into the standard php.ini file

include_path = ".:/usr/share/pear"              

I've additionally looked at php 4.2.2 and it did the same thing
rawhide currently doesn't show 7.x components that are rebuilt for errata but
this one is queued up for the next 7.x errata release. php 4.2.2-x has the fix
in and will be available from rawhide tomorrow I'd think

Phil
=--=


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