find database name location in linux or find text in text file
Sunday, September 5th, 2010use below command in ssh
grep -lir “databasename” *
thank you.
use below command in ssh
grep -lir “databasename” *
thank you.
code should be .jsp for example test.jsp
========
<html>
<head>
<title>Hello from JSP</title>
<%!
String message = “Hello, World. From JSP test page Tomcat is running.”;
%>
</head>
<body>
<hr color=”#000000″ />
<center>
<h2><font color=”#3366cc”><%= message%></font></h2>
<h3><font color=”#0000ff”><%= new java.util.Date() %> </font></h3>
<hr color=”#000000″ />
</center>
</body>
</html>
==============
Thank you.
1- WHM>> then easyapache then follow the step and select tomcat
or
you can run below scripts in SSH
/scripts/easyapache
then follow
after done you need to go to WHM >> install servlets>> then select the domain that you want to enable it to use tomcat and press install .
after done that you can test using below code
code should be .jsp for example test.jsp in your domain
alzwea.com/test.jsp
==============
<html>
<head>
<title>Hello from JSP</title>
<%!
String message = “Hello, World. From JSP test page Tomcat is running.”;
%>
</head>
<body>
<hr color=”#000000″ />
<center>
<h2><font color=”#3366cc”><%= message%></font></h2>
<h3><font color=”#0000ff”><%= new java.util.Date() %> </font></h3>
<hr color=”#000000″ />
</center>
</body>
</html>
==============
tomcat use for jsp, to make your website support jsp code
references
http://www.eukhost.com/forums/f15/how-install-enable-tomcat-account-whm-6447/
Thank you.
Solution: Run
/scripts/updateuserdomains
cat ~username/.cpanel/email_accounts.yaml
add the code below in php.in then restart apache
suhosin.simulation = On
If there is a discrepancy between quotas and a du -sh /home/username, chances are, some other files on the system are owned by that user’s UID. To find these, type:
Run that and you will get a long list of all files owned by that user. It might be wise to redirect the output to a file to browse through later.
Depending on the files, it’s usually better to chown them to the root user rather than delete them.
ndc is the name daemon control program. If you are getting that error, run the following script as the root user:
Run the following from a command line: