/    Sign up×
Community /Pin to ProfileBookmark

php with sql query kills tomcat

i have a php5 code with mysql command in it (mysql version 5). i use tomcat 4 as the web server. the problem is that when i run the page (with mysql_query or other mysql_ in it) , the tomcat stopped/terminated. does anyone know why?
Does anyone know the solution for this?

i am still new using tomcat….pls help me…thx…

to post a comment
PHP

11 Comments(s)

Copy linkTweet thisAlerts:
@dethlonauthorAug 01.2006 — do we need to configure anything in order to run PHP mysql query in the tomcat webserver???

anyone know about this?? pls pls tell me!!!!!!!!
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYAug 01.2006 — see: http://wiki.apache.org/tomcat/UsingPhp
PHP version 5 is not currently supported as it does not include the necessary servlet code.[/QUOTE]


You can install PHP4 though,

or install another webserver (e.g.: Apache HTTP or IIS)
Copy linkTweet thisAlerts:
@dethlonauthorAug 01.2006 — dear LiLcRaZyFuZzY;

the reason i use PHP 5 is because i need to run some java servlet in the tomcat webserver. i have seen some website teaching people how to do this(with PHP5servlet.dll) and i have managed to run my php5 code in tomcat server....but i am now stuck with the mysql query stuff...sad~~

i wouldnt mind to use PHP 4 if i can get it to work in tomcat webserver.....therefore i would be grateful if someone can show me how to run PHP4 in tomcat server.........

thanks again~~
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYAug 01.2006 — Did you follow the link i posted?!
Copy linkTweet thisAlerts:
@dethlonauthorAug 01.2006 — yeah...but i cant understand all of it...
Copy linkTweet thisAlerts:
@dethlonauthorAug 01.2006 — can u understand completely of the page content? is it possible to explain it to me in a bit simple terms?? please give me your yahoo or msn mssger so i can contact u if u dun mind... so that u can explain it better to me.... (if u dun wish to tell, then just forget it)....we also can communicate here...

my yahoo mssger is [email][email protected][/email] and my msn mssger is [email][email protected][/email].

thanks in advance
Copy linkTweet thisAlerts:
@dethlonauthorAug 01.2006 — i am very new to this server thing...so cant understand much what is written in the page..
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYAug 01.2006 — I'm sorry, i'm totally unfamiliar with tomcat..

did you do this?

Download PHP (this tutorial uses PHP 4.3.5)

Download Tomcat (this tutorial uses Tomcat 5.0.19)

Define $JAVA_HOME for your JDK installation

Define $TOMCAT_HOME for your Tomcat installation

Define $PHP_HOME for your PHP installation
Copy linkTweet thisAlerts:
@dethlonauthorAug 01.2006 — yeah....

i already installed the PHP 4.3, tomcat 5, and mysql5
Copy linkTweet thisAlerts:
@dethlonauthorAug 02.2006 — OK thanks....i will try n see .....
×

Success!

Help @dethlon spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...