Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 28-08-2003, 08:25 AM
masterix's Avatar
Novice Webmaster
 
Join Date: Feb 2003
Location: Pangsapuri Kelana Impian, Petaling Jaya
Posts: 9
Rep Power: 0
masterix is on a distinguished road
Send a message via Yahoo to masterix
JRun + JSP + Apache + PHP + MySQL

ok, the thing is like this. i've installed this JRun in my machine. everything go smooth as silk. the thing is, i would like to install back my apache + php + mysql into my machine (since i'm actually crazy about PHP/Mysql! ), without uninstalling my JRun (i need this for my JSPs, for the sake of my job! ).

the question is, will this interupt my JRun, since supposedly it would not, because JRun using port 8000 and 8100 and on the other hand, apache is using port 80, and mysql is 3306. so, how is it?

and one more thing, can i used the mysql that i've installed with my jsp and how does actually i set that JDBC thingy? or is there another way to interact with the database using this JSP?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 28-08-2003, 02:17 PM
Senior Webmaster
 
Join Date: Oct 2001
Location: Melbourne, AU
Posts: 456
Rep Power: 95
sufyan is on a distinguished road
Hi,

There shouldn't be any problems reinstalling Apache without uninstalling JRun.

To interface MySQL with JSP try:

<%@ page import="java.sql.*" %>
Connection connection = null;
Class.forName("org.gjt.mm.mysql.Driver").newInstan ce();
connection = DriverManager.getConnection("jdbc:mysql://localhost/<DB NAME>?user=<USER NAME>&password=<PASSWORD>");
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 29-08-2003, 08:29 AM
masterix's Avatar
Novice Webmaster
 
Join Date: Feb 2003
Location: Pangsapuri Kelana Impian, Petaling Jaya
Posts: 9
Rep Power: 0
masterix is on a distinguished road
Send a message via Yahoo to masterix
ok, i got that. so, how's about if i want to connect to a oracle server. is it still the same? if could, please include examples.

and another thing, will all of the sql still the same, i mean the sql query object, not the sql statement. an example here also is really appreciated.

one more thing, how to use that JRun Management Console. which is better anyway, should i stay using JRun or change to that jakarta-tomcat, since it seems that i got this one tutorial from www.visualbuilder.com where it shows that handling jakarta-tomcat is easier than JRun. opinion please...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help: Iis & Apache edahani Website Programming 2 05-04-2007 02:16 PM
Need help with Apache patcjh Website Programming 1 16-01-2007 06:34 PM
PHP 4.3.2 / OS X / Apache 1.3.29 problem kelly001 Website Programming 1 12-11-2004 03:34 AM
Problem with Apache maman Website Programming 6 23-10-2004 06:27 PM
ASP in web server APACHE ReaLSyLo Website Programming 2 30-08-2002 09:40 PM



All times are GMT +8. The time now is 04:27 AM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59