Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

php extension won't load in php.ini, but loads dynamically

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
How can load without extension - How can configure for loading all my .php without i need to put extension on my file. Ex: >> open file Thank's

Picture loads half - Hello, When I want to view a 'large' picture, he only loads it half. The rest of the pictures are just some colors. When I had IIS he load the complete picture. Look at this: Bert

apachectl start loads 11 apache's into memory ? - Does this look right? and if not what do I do about it? root 6361 0.0 1.1 13008 4568 ? Ss 18:03 0:00 -k start nobody 6362 0.0 1.8 15296 7188 ? S 18:03 0:00 -k..

.inc extension truncated - We recently installed Apache 2.0 servers ( used to use 1.3 before ). The directory structure of the content being accessed remains the same. For some reason , include files with extension .inc are trying to be retrived as .in ( the gets truncated ) ...

use .py as extension for cgi scripts - Hi, My apache can run scripts with extension (.cgi, .pl, .py) in In scripts with extension ..cgi or .pl are OK, but .py cannot be run, it always display the source code even if I add
Next:  Apache: adding .zul and zhtml extensions  
Author Message
tommybiegs

External


Since: May 05, 2008
Posts: 1



(Msg. 1) Posted: Mon May 05, 2008 1:26 pm
Post subject: php extension won't load in php.ini, but loads dynamically
Archived from groups: alt>apache>configuration (more info?)

I'm having a weird problem. I can't seem to force php to load an
extension in php.ini, but it loads perfectly if I load it dynamically
at the beginning of a test script.

In php.ini I've got:

extension_dir = "/correct/verified/path/to/extension/dir/"
extension=imagick.so

apache will not restart if both those lines are present in php.ini,
and the error_log is blank (it reports httpd starting, but nothing
after that)

If I remove the extension load line, e.g.:

extension_dir = "/correct/verified/path/to/extension/dir/"
; extension=imagick.so

apache will restart normally without the extension loaded, but with
the correct verified extension path set in php (confirmed by checking
phpinfo on a test page).

The confusing thing is that the extension then loads fine dynamically:

<?php
dl("imagick.so")
phpinfo();
?>

and phpinfo displays the extension info normally.

I assume the problem is with apache, but I do not know how to proceed
since the logs are blank.

system/installation info:
freebsd 7 on x86_64 architecture
apache 1.3.41
php 5.2.5 running as a static module

Any thoughts?

 >> Stay informed about: php extension won't load in php.ini, but loads dynamically 
Back to top
Login to vote
phantom

External


Since: Aug 23, 2007
Posts: 21



(Msg. 2) Posted: Tue May 06, 2008 3:59 pm
Post subject: Re: php extension won't load in php.ini, but loads dynamically [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

<tommybiegs.RemoveThis@gmail.com> wrote in message
news:27c0f589-9a64-4e40-b382-3f9abc4b02cd@m36g2000hse.googlegroups.com...
> I'm having a weird problem. I can't seem to force php to load an
> extension in php.ini, but it loads perfectly if I load it dynamically
> at the beginning of a test script.
>
> In php.ini I've got:
>
> extension_dir = "/correct/verified/path/to/extension/dir/"
> extension=imagick.so
>
> apache will not restart if both those lines are present in php.ini,
> and the error_log is blank (it reports httpd starting, but nothing
> after that)
>
> If I remove the extension load line, e.g.:
>
> extension_dir = "/correct/verified/path/to/extension/dir/"
> ; extension=imagick.so
>
> apache will restart normally without the extension loaded, but with
> the correct verified extension path set in php (confirmed by checking
> phpinfo on a test page).
>
> The confusing thing is that the extension then loads fine dynamically:
>
> <?php
> dl("imagick.so")
> phpinfo();
> ?>
>
> and phpinfo displays the extension info normally.
>
> I assume the problem is with apache, but I do not know how to proceed
> since the logs are blank.
>
> system/installation info:
> freebsd 7 on x86_64 architecture
> apache 1.3.41
> php 5.2.5 running as a static module
>
> Any thoughts?

Try running php from the command line:

php -v

it should process the ini file and give you back any warnings/errors.

 >> Stay informed about: php extension won't load in php.ini, but loads dynamically 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]