Re: unable to load perl extension
| From: | Jochem Maas | Date: | Fri, 30 Dec 2005 14:11:28 +0000 |
| Subject: | Re: unable to load perl extension | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-228008@lists.php.net to get a copy of this message | ||
dev lamp wrote:
On 12/29/05, Jochem Maas <jochem@iamjochem.com> wrote:you not only have to specify the correct extension dir you also have to specify [in your php.ini] each and every extension that you want to load e.g: extension=perl.so or alternatively (no need for the extension dir to be set): extension=/complete/path/to/your/perl.sodev lamp wrote:There is only one php.ini I have checked the extensions path information using phpinfo().Hi I am unable to call perl code from PHP, since the extension does not get loaded ! Scenario 1: use dl('perl.so'); in the php code and invoke the script from the command line The script works fine and the perl code gets executed as well.so the extension is not being loaded automatically right? but if you dl() it everything is fine, right? then double check the 'right' ini file is being used!
Is there something else that I need to checkout ?the php apache module needs to know where the php.ini can be found - usually set at compile time - the place it's kept varies from OS to OS (which has caught me out before!).is the apache module using the php.ini that you think it is ?? - that kind of thing has caught me out more than once!How do I check that ? I downloaded apache sources and compiled it. Why do I need to specify the path of the php.ini file to the apache web server ?
Dev.