Re: can't modify include path [message #178472 is a reply to message #178471] |
Thu, 21 June 2012 01:37 |
jans
Messages: 7 Registered: June 2012
Karma:
|
Junior Member |
|
|
On Wednesday, June 20, 2012 2:16:34 PM UTC-7, Jerry Stuckle wrote:
> On 6/20/2012 4:11 PM, jans wrote:
>> I did a locate php.ini on my Mac. I found 5 php.ini. Why do I have so many? I installed a Filemaker Web Sesrver and it added a php.ini. I also had Tiger OS and then upgraded to Leopard OS. I think APple may have changed where the php.ini was for Apache 2. I also may have installed PHP version 5 and entropy build. I added the include path to all of these one by one to see which was the current php.ini. It turns out I still don't have an include path in the info.php. I'm trying to track this down and figure out which one is my php.ini
>>
>> I think one of these versions, maybe the entropy version, added this php-config . Maybe this version was trying to upgrade the Tiger OS to PHP 5 and added this config file? I don't know but my include path should be:
>> include_path = ".:/usr/local/php5/include:/users/jr/pear/share/pear"
>> Can I change this php-config to have this include_path? I don't have Zend running on this server but the extension directory looks right and it is targeting the right php source. I would like to have the include path working so I can install xdebug and use PEAR.
>> thanks,
>>
>
> See phpinfo() - it will tell you which config (if any) it's using, i.e.
>
> <?php
> phpinfo();
> ?>
>
> Run the script on a page under your web server to see which .ini file
> the server's php is using, or from the cli with the php command to see
> which one the cli is using (they may be different).
>
> Also - php --ini from the command line will tell you which it is using.
>
> And yes, it's not unusual to have more than one php.ini file -
> unfortunately!
>
> <snip>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex(at)attglobal(dot)net
> ==================
I tried the php --ini and it told me the right one is in /etc
The only one in that directory is php.ini.default and I added the include_path to that ini and it is not showing up in php.info.
the command said
loaded ini file (/etc)
additional parsed ini files(none)
additional ini files (none)
I restarted the web server apache. Just for fun I restarted my server. I still have .: for my include path. The php.ini.default include_path is:
include_path = ".:/usr/local/php5/include:/users/jr/pear/share/pear"
the permissions on this file is
-r--r---r--
thanks
|
|
|