For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > July 2005 > mysqli extension not loading at runtime









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author mysqli extension not loading at runtime
Huang, Wesley CIV SPAWAR , J761

2005-07-24, 8:33 pm

Hi there,

If someone can please explain as to why I can't get this module to load
automatically, I would greatly appreciate it. As of right now, I have a
test box setup with Fedora Core 4, apache 1.3.33, MySQL 5.0.9, and PHP
5.0.4. I've been tweaking PHP all day to get mysql and mysqli working.
I finally got that up and running except for one little thing that is
bugging me.

When I compiled PHP, I configured mysqli to be a shared object so it
could be loaded dynamically. This was the only way I get both the mysql
and mysqli extensions working together. The problem that I am getting
is the mysqli extension is not being loaded when I call a php file
through my browser. When I call phpinfo(), it doesn't even show.

I have edited the php.ini file to point to the correct location where
the module is located. If I execute the script in command line, the
script works without the need to call dl(). Now, when I try to view the
script through my browser it craps out unless I explicitly call dl() for
the module. I did configure apache to load PHP as a dynamic module
through apxs which I'm not sure if that would have anything to do with
it or not. I haven't been able to find info on this particular issue.

Can somebody please explain to me why this is happening?

Wes Huang
SPAWAR Systems Center Charleston
National Capital Region
wesley.huang@navy.mil


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com