Re: [PHP] Tomcat and php in Suse 9.2

2005-04-18 Thread Richard Lynch
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



Re: [PHP] Tomcat and php in Suse 9.2

2005-04-15 Thread Dan Rossi
I noticed you never had a reply for this, its probably because this is 
non standard, or totally not heard of. What I would do, (even though I 
have yet to try this), is run php standard as a module in apache, but 
then run the tomcat connector jk or jk2 into apache, so it will run 
seamlessly. There is prob alot of settings to configure to do it 
though. Tomcat has a nice easy to understand xml descriptor, i actually 
prefer them than .conf files ;)

On 14/04/2005, at 7:30 PM, Andreas Persson wrote:
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?
/Andreas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Tomcat and php in Suse 9.2

2005-04-14 Thread Andreas Persson
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?

/Andreas

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