On Thu, April 14, 2005 2:30 am, Andreas Persson said:
> I have installed tomcat and added php-support with help of the php-servlet
> but it seem like php cant find any of the extensions installed. Like
> mysql. I have the php4-mysql package installed.
>
> If i run php -i from the commandline its telling me that I have
> mysql-support and a small php-script runned from the commandline verifies
> this.
>
> But if i run phpinfo() from a php-page under tomcat there is no support
> for mysql (or anyother extension). It tells me that its using /etc/php.ini
> and I have enabled the mysql extension in it.
>
> Anyone who knows why tomcat failes to find the php-extensions?

What I know about Tomcat could fit in a matchbook with room for all the
technological things Microsoft has done right over the years. :-)

WILD GUESSES:
#1.
What *user* does PHP report in <?php phpinfo();?>
Can that user read the extension .so files?

#2.
What path is set for extensions in etc/php.ini?

What path do you see when you do command line:
php -i | grep "php.ini"

Is that /etc/php.ini?

If not, what path is set for extensions in *THAT* php.ini file -- cuz that
works.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to