How To Install Tomcat On Linux
Dec 21, 2008You can easily install tomcat on Linux through this tutorial
[url]
You can easily install tomcat on Linux through this tutorial
[url]
in cPanel 11.24.4-R35075 I have installed tomcat using the manage plugin in whm now could anyone let me know how do i test it and what will be the webapp;lication directory for tomcat, Does the steps performed to install is inadequate?
View 4 Replies View Relatedinstall tomcat in one location and have multiple instances running for individual clients:
Why would you want to do this:
==============================
1) Install tomcat in 1 location and have x number of instances running on a per client basis
2) Upgrade tomcat and have it propagate to all clients
3) Limit the resources each tomcat instance uses
4) Tomcat runs as the individual user rather than "root" or "tomcat"
5) Each user has its own manager; hence, no security risk to others
6) Start/Stop/Restart tomcat instances without affecting other clients who also have a tomcat instance
Assumptions:
============
1. Tomcat is installed in: /usr/local/tomcat (TOMCAT_HOME)
2. Instances are installed in: /usr/local/tomcat/instances
3. Java is installed somewhere on your machine
Step 1 - Create a Tomcat Instance
=================================
- Create a directory in /usr/local/tomcat/instances/user1 (CATALINA_BASE)
- Create a set of directories (conf,temp,logs,webapps) in $CATALINA_BASE
- Copy web.xml,server.xml,tomcat-users.xml from $TOMCAT_HOME/conf to $CATALINA_BASE/conf
- Create a bash script called user1startstop.sh as follows and make it executable
Quote:
#!/bin/bash
export INSTANCE_NAME=user1
export CATALINA_BASE=/usr/local/tomcat/instances/user1
#This is where you'd be able to restrict the memory usage
export CATALINA_OPTS=" -Djava.awt.headless=true"
# Call the jsvc script to launch the Tomcat instance
/usr/local/tomcat/bin/Tomcat5.sh $1
Step 2 - Configure the Tomcat Instance
======================================
- edit $TOMCAT_BASE/conf/server.xml:
Replace: ... port=8005 with port 8101 ... This is shutdown port
Replace: ... port=8080 with port 8201 ... This is http port
Replace: ... port=8009 with port 8301 ... This is the AJP port
- edit $TOMCAT_HOME/conf/workers.properties
Add: user1 to worker.list=ajp12,ajp13...
Add:
worker.user1.host=localhost
worker.user1.port=8301
worker.user1.lbfactor=1
worker.user1.type=ajp13
Under:
DEFAULT ajp13 WORKER DEFINITION
Step 3 - Modify Main Tomcat (One-Time)
======================================
Edit $TOMCAT_HOME/bin/Tomcat5.sh
Add:
Quote:
DAEMON_HOME=/usr/local/tomcat/bin
PIDFILE=/var/run/jsvc-$INSTANCE_NAME.pid
TMP_DIR=/usr/local/jakarta/servers/$INSTANCE_NAME/temp
TOMCAT_USER=$INSTANCE_NAME
Modify start case with the following:
Quote:
$DAEMON_HOME/jsvc
-user $TOMCAT_USER
-home $JAVA_HOME
-outfile $CATALINA_BASE/logs/catalina.out
-errfile $CATALINA_BASE/logs/catalina.err
-pidfile "$PIDFILE"
-Dcatalina.home=$CATALINA_HOME
-Dcatalina.base=$CATALINA_BASE
-Djava.io.tmpdir=$TMP_DIR
$CATALINA_OPTS
-cp $CLASSPATH
org.apache.catalina.startup.Bootstrap
;;
Modify end case with the following:
Quote:
PID=`cat $PIDFILE`
kill $PID
rm $PIDFILE
;;
Step 3 - Configure Apache
=========================
- Edit httpd.conf
Add the following code under the VirtualHost definition of the user in question:
<IfModule mod_jk.c>
JkMount /*.jsp user1
JkMount /webapps/* user1
JkMount /servlets/* user1
JkMount /servlet/* user1
</IfModule>
Step 4 - Restart Apache
Step 5 - run $TOMCAT_INSTANCE/user1startstop.sh start
That's it.
I have 5 instances of tomcat running on my machine and it works like a charm.
I run a server with Plesk 11.0.9 and want to add Tomcat support. I installed the "Tomcat Java Servlets support", but can't start the service in the "Services management" tool. It does not show any button. How do I do the next step to run tomcat in plesk?
View 2 Replies View RelatedIs it possible to install Plesk 12 to Debian Jessie with the autoinstall script?
View 7 Replies View RelatedTrying to enable Tomcat Java Servlets using autoinstaller via ssh, but I'm receiving the following error:
Exception: Failed to solve dependencies: 2:apache-commons-discovery-0.5-9.el7.noarch requires mvn(commons-logging:commons-logging)
ERROR: The Yum utility failed to install the required packages. Attention! Your software might be inoperable. ​When I try through the admin UI, I just get "The Yum utility failed to install the required packages"
The control panel is plesk.
When I run
Code:
yum install php5-mhash
I get
Quote:
Loaded plugins: security
Setting up Install Process
No package php5-mhash available.
Nothing to do
When I run
Quote:
yum install php-mhash
Same thing happen.
Linux version 2.6.18-128.4.1.el5PAE (mockbuild@hs20-bc1-6.build.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)) #1 SMP Thu Jul 23 20:14:48 EDT 2009
When I run on centOS, it works just fine.
how to install Adobe AIR on linux with ssh?
I want to test out the software Scalix and need a server to install it on. I'm currently on a shared environment so I can't do it on my current host.
What is the cheapest option for me? I guess I need a Linux server hosting package where I can install programs myself. Dedicated servers are too expensive for me.
What do? Any host that has cheap hosting that would me to install this?
I have recently moved to a dedicated server and its a clean Fedora Core 5 installation with mysql 4.0.12 i guess...
I want to install MySQL 5.1 on this one but i don't know much about how to install this on linux...and since i don't have a control panel,things got tough for me.
I tried to install it and seemed it installed fine but when i tried to start it i got an error:
Code:
[root@myuserid bin]# mysqld
071223 21:57:51 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
071223 21:57:51 InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 43912.
InnoDB: Doing recovery: scanned up to log sequence number 0 43912
071223 21:57:51 InnoDB: Started; log sequence number 0 43912
071223 21:57:51 [ERROR] mysqld: Can't find file: './mysql/host.frm' (errno: 13)
071223 21:57:51 [ERROR] mysqld: Can't find file: './mysql/host.frm' (errno: 13)
071223 21:57:51 [ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
071223 21:57:51 [ERROR] mysqld: Error on delete of '/var/lib/mysql/crcfefvs.pid' (Errcode: 13)
Easy way to install 5.2 with plesk i try all old threads but these not working ....
View 2 Replies View RelatedI wanna know How to install php 5.5 in my Plesk 12 CentOs 6
View 4 Replies View RelatedI am using Plesk for my website and I want speed it little bit so I wanna install an APC without screwing everything.
View 16 Replies View RelatedI am trying to install Plesk 11.5.30...I have downloaded the autoinstaller to my CentOS 7 server:
# wget http://autoinstall.plesk.com/plesk-installer
#chmod +x plesk-installer
#./plesk-installer --all-versions
I have also tried:
# ./plesk-installer --select-release-id PLESK_11_5_30
But i only get options from Plesk 12.0.18 to 12.1.15. I should run /usr/local/psa/admin/sbin/autoinstaller --all-versions to install older versions of Plesk, but when i run this the file does not exist.How do i install Plesk 11.5.30?
I installed imagemagick on my server and I'm trying to write text to an image. However, I dont think i have any fonts installed on my server because I've checked my code and it appears right but theres no text. (The same code worked on an old server)
How would I go about installing fonts on my Cent OS server and what types of fonts work? (I have root access).
I want to use (Microsoft SQL Server 2005 "on my PC") to conect with my database on my VPS linux, but I can't
View 5 Replies View RelatedI need to remove CentOS from an old office PC. Dont get me wrong I use Linux almost on everything but for specific reason I need to get XP back into this old AMD PC.
I cannot install XP. I cannot remove Linux. This install is devil. It will not let me remove it. I tried everything. XP disk goes black screen and stays there, this is happens with some hardware and you have to remove all Linux partitions to me the Windows XP disk install start.
The problem I CANT remove it.
I go to rescue mode, or interactive, mode, it doesnt matter, I cannot remove linux.
"fisk -l"
Go to my partition
fdisk /dev/sda2
d for delete and it just outputs:
No partition is defined yet!
I tried lots of ways around it and always that message. Linux doesnt let me remove the partitions.
How in the world do I get XP back now?
How do I install Webmin on a Linux server?
I am using Putty to remotely access the server which runs RedHat Enterprise OS and Apache.
I mean I have downloaded the .rpm file from Webmin and just need to know what are the commands for installing a .rpm file on Linux and then how to configure webmin for proper operation and usage?
I'am partner with cloudflare I have the follow question:
As my subject says how can I install cloudflare for PA? (I already install the addon extension ServerShield Plus by CloudFlare) but pretend install CloudFlare for PA [URL] ....
Where I can get:
[URL] ....
POA IP, POA API, etc?
I have installed PHP 5.6 following this guide (enabling php 5.6 in remi) but I can't select the new version of PHP from hosting settings page in domain administration. What is ionCube?
View 5 Replies View RelatedHow can I install OpenProject on Plesk 11.5 (Debian 7.7) without problems? How to add vhost for OpenProject and keep running my other websites?
[URL] ....
I would like to know the process to activate or install mcrypt module on my php ?
I'm on
OS Ubuntu 10.04.3 LTS
Plesk 12.0.18
I get the following error:
===> Checking for the necessary system accounts
Checking for the system groups and users necessary for MySQL...
Checking for the group ''...
Trying to add group ''... groupadd: '' is not a valid group name
ERROR while trying to add group ''Click to expand...
How do I install FFMPEG on Pleslk 11.5?
View 1 Replies View RelatedI trying to install Joommla via XML-RPC API. (Plesk version : 12.0.18 Update #13 - API version : 1.6.6.0)
Here are my methods
1. get Package list
2. download package
3. install package
if I try with Wordpress, I don't have any problems.
With Joomla : step 2 : I've got this message in log file :
ERR [panel] Error during package add to repository: Add-ons for APS packaged web apps are not supported.
ERR [apscatalog] Error during downloading package from APS Catalog: Add-ons for APS packaged web apps are not supported.
ERR [panel] Task failed: id=95, pid=21231, type=aps-download, error=Add-ons for APS packaged web apps are not supported.
If I install via http admin interface, install works.
I tried to install an additional version of PHP followuing this guide [URL] .....
But when i launch this command (the same of the guide but I substitute "php540" with "php55") I retrive the following error:
./configure '--with-libdir=lib64' '--cache-file=../config.cache' '--prefix=/usr/local/php55-cgi' '--with-config-file-path=/usr/local/php55-cgi/etc' '--disable-debug' '--with-pic' '--disable-rpath' '--enable-fastcgi' '--with-bz2' '--with-curl' '--with-freetype-dir=/usr/local/php55-cgi' '--with-png-dir=/usr/local/php55-cgi' '--enable-
[Code]....
How to install ASSP on linux system without cpanel.
View 2 Replies View RelatedAnybody have a good scheme of fresh install or preinstallling a server with Linux (CentOS in this case) remotely?
View 7 Replies View RelatedI have a Windows 2003 server running on a machine, and I'd like to convert this machine to a Linux (Fedora) machine.
Suppose I don't have a CD-Rom/Floppy/USB drive. Is it possible to install Linux?
I only know basic commands for SSH and have been trying for hours to get GD installed for PHP4. I have tried:
# apt-get install php-gd
bash: apt-get: command not found
apt-get install php4-gd
bash: apt-get: command not found
# up2date -i php-gd
Fetching Obsoletes list for channel: rhel-i386-es-4...
Fetching Obsoletes list for channel: rhel-i386-es-4-extras...
Fetching rpm headers...
Name Version Rel
----------------------------------------------------------
The following Packages were marked to be skipped by your configuration:
Name Version Rel Reason
-------------------------------------------------------------------------------
kernel 2.6.9 55.0.2.ELPkg name/pattern
kernel-devel 2.6.9 55.0.2.ELPkg name/pattern
kernel-hugemem-devel 2.6.9 55.0.2.ELPkg name/pattern
kernel-smp 2.6.9 55.0.2.ELPkg name/pattern
kernel-smp-devel 2.6.9 55.0.2.ELPkg name/pattern
php-gd 4.3.9 3.22.5Pkg name/pattern
The following packages you requested were marked to be skipped by your configuration:
php-gd
None of these things work and I was wondering if anyone knew how to get this to work without recompiling PHP.