Tomcat @ Cpanel Stopped

Mar 18, 2007

for some reason since 2 days ago tomcat stopped working by itself. i removed it and reinstalled it several times with no luck at all. it seems it has something todo with mysql connectivity, but the weird thing its working on php just fine even the test code its not working ....

View 0 Replies


ADVERTISEMENT

CPanel Stopped Working In Vista

Jan 4, 2008

Yesterday I could reach all of my cPanels on a Vista laptop; today they all time out. I can reach them with other computers. It doesn't matter if I go to mysite.com/cpanel or mysite.com:2082. I even added a port 2082 under Windows Firewall; no change. I'm not using any 3rd party firewalls. I did install a bittorrent client last night, then uninstalled it when it didn't work.

View 3 Replies View Related

WHM/cpanel Tomcat 404 Error

Aug 4, 2009

In my linux vps i am using WHM and enabled tomcat hosting for one of virtual host ,the tomcat shows 404 error for .jsp pages,remaining virtualhosts are working properly.When i view the log file i found the following line,

INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[vhost].[/] has not been started

In above line vhost is domainame.How to solve this issue?

View 1 Replies View Related

Install Multiple Tomcat Instances With CPanel X.xx

Nov 20, 2007

install 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.

View 4 Replies View Related

Reliable VPS Provider That Manage Tomcat/JSP Fine On Cpanel?

Nov 5, 2008

Could you please recommend a stable reliable VPS provider that manage Tomcat/JSP fine on cpanel?

I did search and find no suitable one

View 2 Replies View Related

Redirect 8080 Requests To 80 Port - Tomcat Problem At CPanel Server

Jan 31, 2008

Yesterday I installed tomcat on a RHEL 4 + cPanel and httpd 2.0.63 server using easyapache3, process was ok, jsp pages are loading fine using http://site.com/example.jsp , but servlets, are not working using http://site.com/example, how ever, if I load http://site.com:8080/example it loads the servlet perfect.

I read something about redirecting all traffict from port 80 to 8080, but you know.. this is a shared server, and that would affect all customers on the server.

So, mod_jk seems to be the only solution, now I read many documents over the web, but no one seems to be working to configure apache2 and mod_jk that is installed using easyapache3 script.

In my httpd.conf file, i have this:

LoadModule jk_module modules/mod_jk.so
Include "/usr/local/apache/conf/jk.conf"
At jk.conf i have this content: ...

View 5 Replies View Related

IIS Just Stopped Serving..

Aug 2, 2008

I have been hosting a site for the past number of weeks on IIS on Server 2003..I have a no-ip a/c which is working fine along with port forwarding on my router..

The other day I restarted my server for something but now I cant seem to access my site from across the internet and according down for everyone or just me (website) it is down. I can, however, access the site using domain name from within my lan.

I'm not too hot on server 2003 or IIS. What can I do to debug/diagnose the problem?

View 2 Replies View Related

Nsplayer Must Be Stopped

Sep 24, 2007

i have been around the internets trying to figure out how to stop this menacing problem and i really have come to just a lot of dead ends.

my issue is that i want to block people using something called nsplayer from ravaging my bandwidth. every day there are at least 300 or so entries from people using this piece of software which is causing me to blow through about 20 gigs a day instead of around 5-7 gigs. the fine support folks at imountain went out of their way and wrote a htaccess script but alas that isnt helping that much. so, what i have been doing is just banning each individual ip through htaccess and sometimes it works and sometimes it doesnt.

my site is in my profile.

is there anyway to block this completely?

here is an example of one of my log entries.

79-65-96-136.dynamic.dsl.as9105.com - - [23/Sep/2007:19:33:06 -0700] "GET /debaser/vol.%204/14%20Wish%20You%20Were%20Here.mp3 HTTP/1.1" 200 803868 "-" "NSPlayer/11.00.6000.6324 WMFSDK/11.00.6000.6324"

i dont know if it matters, but i am using h-sphere and indexing is turned off.

View 11 Replies View Related

Mysql Replication Stopped

Jul 23, 2008

I had configured mysql replication for one of my client. Now the replication is stopped and slave server is not updating the data. How can I resolve this and start the replication again?

View 7 Replies View Related

Mail Stopped Working

May 12, 2007

I run a small website on a dedicated unmanged server with cpanel.
About a month ago,i stopped getting the daily mails from addresses that are located on the server...

Also,when I attempted to send mail to one of these addresses I never received it...

Its a RHEL 3 server with cpanel,is there anything I can do to see where the problem is?

View 2 Replies View Related

SMTP Connection Has Stopped Working

Jul 9, 2008

I have been having great trouble sending mails from my local Thunderbird/Windows client to my Debian/Exim-server via TLS/SMTP.

I am no expert on TLS and SMTP, but I managed to create a server certificate and set up a secure (TLS) connection more than a year ago, and it has been working fine until it suddenly stopped working a couple of weeks ago.

Sending to external addresses from web pages still works fine, the problem seems to be in the SMTP connection. If I try to "telnet xxx.xxx.xxx.xxx 25" I get no reply whatsoever (it seems to connect but it just gives me a blank screen with a blinking cursor) and I am wondering if there is a firewall issue or if I am simply not running the right daemon to listening for incoming SMTP connections...

POP continues to work fine with teapop/stunnel enabled.

I am running Exim 4.63-17 on Debian Etch. I configured Exim to be of the type "internet site; mail is sent and received directly using SMTP"

==============================
Firewall shouldn't be a problem (?):

debian:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
==============================

I really don't know what to do. I have tried running:
tail -f /var/log/daemon.log

Which responds when I access my mail using POP but not when I try to send using SMTP.

View 4 Replies View Related

PHP Mail() Function Stopped Working

May 10, 2008

I have a dedicated that suddenly stop php mail() function to work.

Very strange because if I run php script with mail() function as root on command line all working fine.

But If I run php script with mail() function in my browser so not work. Seems that only ROOT can run mail() function.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved