Solved

How to install Apache and Tomcat onto Ubuntu server

Posted on 2010-09-03
9
854 Views
Last Modified: 2013-12-02
How to install Apache and Tomcat onto Ubuntu server
0
Comment
Question by:1030071002
9 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 300 total points
ID: 33598268
Follow the directions on this page: https://help.ubuntu.com/community/ApacheMySQLPHP  I recommend you use the builtin commands to do this because you will get a version configured for Ubuntu.  Something like : sudo apt-get install apache2

And here's a page on Tomcat: http://www.ubuntugeek.com/how-to-install-tomcat-6-on-ubuntu-9-04-jaunty.html
0
 

Author Comment

by:1030071002
ID: 33598770
one more question for this 500 points good job answer is good
is there any way to refrence a microsoft server 2005 on a different machine from ubuntu
I dont want mysql
0
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 300 total points
ID: 33598843
Yes, you can access Microsoft SQL Server 2005 thru PHP and probably other languages but it must be running on a different machine because it requires Windows to run.  I don't know about accessing it thru JSP on Linux.  The SQL Server must be set up with a user that is allowed to remotely access it and the database you want to use.
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:1030071002
ID: 33614313
where do I put the source code for the website when I install apache and tomcat
0
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 300 total points
ID: 33614374
I don't really know.  You'll have to ask someone else about that.
0
 
LVL 2

Assisted Solution

by:andrel39
andrel39 earned 100 total points
ID: 33621843
The website for Apache defaults to /var/www/

Just create a folder within that directory and then add that name to the end of your URL

example:
mkdir /var/www/aspdev

URL: http://webserver/aspdev/

There is a more complicated way to create the source code anywhere and have Apache link to it buts that's pretty advanced stuff. I have not dealt with Tomcat.

0
 
LVL 26

Assisted Solution

by:arober11
arober11 earned 100 total points
ID: 33632232
As to where you stick your html / deploy your Webapps, the directories are specified by two environment variable:

DocumentRoot     =  Apache HTTPD base directory, probably /var/www/htdocs, you'll probably find the variable in a /etc/apache*/*.conf file

CATALINA_HOME  =  Apache Tomcat base directory, applications are deployed into the "webapps" directory off this directory, may be set to "/usr/share/tomcat", you'll probably find the variable set in /etc/tomcat*/tomcat*.conf

The location of the configuration files / CATALINA_HOM can be verified through the following commands:

ps -ef | egrep "httpd|java"
grep DocumentRoot    /etc/apache2/*
grep CATALINA_HOME /etc/tomcat*/*

As to "refrence a microsoft server 2005" I'm guessing you are asking how you connect a Tomcat Web application to a MS SQL Server database. For a start you'll need to download the appropriate JDBC driver (.jar) and drop it into you application lib directory, tweak the applications context and bounce (stop/start) the Tomcat, see: http://wiki.apache.org/tomcat/UsingDataSources

May also be of use:

http://www.howtogeek.com/howto/linux/installing-tomcat-6-on-ubuntu/
http://download.oracle.com/javaee/5/tutorial/doc/bnaaw.html
http://oreilly.com/java/archive/tomcat-tips.html
0
 

Author Comment

by:1030071002
ID: 33818952
still working on it
0
 

Author Closing Comment

by:1030071002
ID: 33968317
yes
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to run my script during boot in rhel 7 14 302
how to add new optional parameter to JSP 1 49
login form jsp example 2 35
going to wrong jsp page 2 33
Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question