Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-13-2006, 12:47 AM   #1
Registered: Sep 2004
Location: Hyderabad
Posts: 440
Blog Entries: 1

Rep: Reputation: 30
Question to setup include_path in php.ini for pear

My PHP version is php-4.3.9-3.1 and the pear comes with the installation.

Now , to get started, I need to set the include_path for PEAR in php.ini.

My pear is installed in /usr/share/pear/.

I have added the following line in the php.ini.
Please tell me whether it is correct or not.

include_path = .:/usr/share/pear/

And I restarted the apache service.

Now, The pear should work with PHP.
Is there any other thing i need to do.
Do suggest the needful.

Thanks in advance
Old 07-13-2006, 03:10 AM   #2
Registered: Sep 2004
Location: Hyderabad
Posts: 440
Blog Entries: 1

Original Poster
Rep: Reputation: 30
i got it from another forum:

this is the syntax for Unix:

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

I think it would work without quotes, too.
I also think you should NOT have a slash / at the end of paths.
This example will include these 3 paths:
... where "." is same directory where current php script is running


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
php.ini-dist to php.ini lord-fu Programming 10 05-02-2006 05:24 PM
php5 apache2 mysql4 don't work, php does not seem to read php.ini atom Linux - Software 5 03-24-2005 11:05 AM
Failed opening '../main/mainconfig.php' for inclusion (include_path='.:/usr/local/lib ryancoolest Linux - Newbie 3 09-29-2004 09:10 PM
'PEAR.php' (include_path=''.:/usr/local/lib/php'') SOLVED SOLVED adengua Linux - Software 0 04-02-2004 03:34 AM
(include_path='.:/usr/share/pear) ???? bentman78 Linux - Software 2 07-11-2003 02:09 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration