Web Hosting Blog

Blog for Web Hosting Issues, FAQ’s, Tutorials and Troubleshooting, Blogging

Entries for October, 2006

List all the files owned by a particular user or group

List all the files owned by a particular user or group
There are many commands used to find out files or directory as find which and locate.
But for searching for files owned by a specific user the command used is find.
“find” searches the directory tree rooted at each given file name by evaluating the given expression [...]

Increase the number of TELNET sessions allowed

Increase the number of telnet sessions allowed :
The number of telnet sessions allowed is limited to 60 by default and it is controlled by xinetd. You can check it from /etc/xinetd.conf file on the server.
A default /etc/xinetd.conf file will be as per given below;
==================================
cat /etc/xinetd.conf
#
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
instances               [...]

TCP Vs UDP :

TCP -Transmission Control Protocol -It is a Protocol used in connection oriented networks
It breaks the data into packets and also supports error correction.
It supports error correction in the transmitted data and thus it is a reliable protocol. TCP is connection orinted protocol means it will get an acknowledgment for the packet it has forwarded.
It is [...]

Automatic way to fix RPM installations

Automatic way to fix RPM installations :
If you are installing rpm which is having many dependancies then you can do it with the up2date utility. It will automatically install all the dependencies for rpm package that is installed. If you have access to Red Hat Network (RHN) you can use the command up2date to update [...]

Setting up the Admin User for tomcat

Setting up the Admin User for tomcat
Edit the “tomcat-users.xml” file as
vi /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/tomcat-users.xml
[You will have to find out the path for tomcat-users.xml on your server first]
Add a line like in that conf file as :
<user username=”username” password=”password” roles=”manager,admin”/>
You will have to check that none of the default users have the manager or admin roles.
Bookmark Me

Setting a Universal Co-ordinated Timezone

Setting a Universal Co-ordinated Timezone
If your company is in country A; the data center is having timezone B; your customers are in country Y; and say their users are in country Z.
In this case you can  try Universal Co-ordinated Time (UTC).
Please edit the file /etc/sysconfig/clock as
vi /etc/sysconfig/clock
and change the UTC line as
“UTC=true”
You can set localtimezone [...]

frequently asked questions

1. Do we allow EXE files to live and run as CGI?
Answer: We have no problems with allowing EXE files to live and run as CGI.
2. If you submit for a shared hosting, Will you get an anti virus installed on
Web mail you provide?
Answer: Anti-virus is installed on the mail servers and it will protect [...]

Permission denied: .htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

Hello,
If you are getting 403 error on your site with following messege in your error log
Permission denied: /home/user/public_html/subdomain/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
Then it seems that the nobody user is not getting read and executing permission upto any of that folder.So make sure that the public_html and the subdomain are [...]

What is PEAR

PEAR Is short for ‘PHP Extension and Application Repository’
PEAR is having it’s primary goal to become a repository for PHP extensions and library code. The most important goal of the PEAR project is to try to define standard coding packages that can be used be developers directoly and it is re-usable coding.
Each package is a [...]

Tomcat Failed

If tomcat is failed on the server, Then login to the server with root login details and Goto, ————————-
cd /usr/local/jakarta/jakarta-tomcat-5.5.9/bin/
————————-
Check the running processes as
ps aux | grep tomcat
Then stop all tomcat processes. You can stop it with the script as ————————-
root@servername [/usr/local/jakarta/jakarta-tomcat-5.5.9/bin]# ./shutdown.sh ————————- [This script will stop the tomcat processes that [...]