Re: Tomcat and php in Suse 9.2
| From: | Richard Lynch | Date: | Tue, 19 Apr 2005 04:53:05 +0000 |
| Subject: | Re: Tomcat and php in Suse 9.2 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-213316@lists.php.net to get a copy of this message | ||
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