You are here: Re: php.ini path « PHP Language « IT news, forums, messages
Re: php.ini path

Posted by Antoine EMERIT on 02/19/07 14:59

Antoine EMERIT <sdfqsdf@nowhere.com> ιcrivait
news:XnF98DC8A51B454Baemeritaglfr@212.27.60.37:

> Hi,
>
>
> I have apache 1.3 and apache 2, using php 4 and 5.
>
> Fo test purpose I've compiled APC (Alternatice PHP Cache).
>
> Now I need to set the "zend_extention" php.ini directive with
> differents values (path of the apc.so file).
>
> I can't see any way to do this in the httpd.conf, so I search how to
> specify a different php.ini file at the apache startup.
>
> The PHP documentation at
> http://fr2.php.net/manual/en/configuration.php gives many way. But
> none seems to work. I'm using PHP as a module.

I've found a generic way, which works with Apache 13 and Apache 2 :

use of the PHPRC os environment variable

PHPRC=/home/conf/php-ini/phpa
export PHPRC

PHPRC=/home/conf/php-ini/apc
export PHPRC


with one php.ini in each PHPRC directory


Bye

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация