strauberry

Well-Known Member
Mar 25, 2003
150
0
166
Hi,

how can I deinstall JSP for one account? I find only install but not deinstall... Thank you!

Best regards
strauberry
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
10
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
In httpd.conf remove the jsp settings for that account.

<IfModule mod_jk.c>
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13
</IfModule>


Then in /usr/local/jakarta/jakarta-tomcat-4.0/build/conf/server.xml

remove the following for that account.


<Host name="domain.com" appBase="/home/username/public_html">
<Context path="" reloadable="true" docBase="/home/username/public_html" debug="1"/>
</Host>

<Host name="www.domain.com" appBase="/home/username/public_html">
<Context path="" reloadable="true" docBase="/home/username/public_html" debug="1"/>
</Host>


Restart tomcat and apache, done.
 

ivaserver

Well-Known Member
Aug 9, 2002
111
0
166
Hi

I have followed the intructions till

/etc/rc.d/init.d/sshd restart

when i ran this command putty closed and now i cannot log in

i have tried ssh.domain and domain i get connection refused

when i try to connect using putty telnet i get connection refused

could someone explain in more detail this bit

Now exit out, enter 'ssh.domain.com' as the host name, and put in your high level random port in the box, ssh into your box and your done.


Thansk Ivaserver
 

000

Well-Known Member
Jun 3, 2008
533
29
78
Restart tomcat and apache, done.
When we delete/terminate a count from WHM too we need remove manually?

What is the command (in putty) tu restart tomcat and apache ?

Is necesary install EJB ? 3 or 5 ?

Thanks
 

viraj

Well-Known Member
Sep 28, 2006
209
3
168
India
cPanel Access Level
DataCenter Provider
Twitter
When we delete/terminate a count from WHM too we need remove manually?

What is the command (in putty) tu restart tomcat and apache ?

Is necesary install EJB ? 3 or 5 ?

Thanks
1) No need to remove anything from an account when it's terminated from WHM.
2) Services restart commands :

Apache : service httpd restart

Tomcat :
/usr/local/jakarta/tomcat/bin/shutdown.sh
/usr/local/jakarta/tomcat/bin/startup.sh

3) You can install any version of EJB you require or your applications require..
 

vendeka

Registered
Aug 10, 2008
3
1
51
If you want to remove servlets w/o terminating an account:
Code:
/scripts/remservlets --domain=example.com
  • Removes <Host> container from server.xml
  • Removes cp_jkmount.conf for provided site