Web Hosting Blog

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

Entries for the ‘cPanel Hosting’ Category

Install exim and configure it as a SMTP mail server

Install exim and configure it as a SMTP mail server
1. Install the exim mail server as
# up2date exim
2. Change the default Mail Transport Agent (MTA) to exim:
# system-switch-mail
3. Select exim.
4. Edit exim’s configuration file as :
# vi /etc/exim.conf
In Main Configuration Settings, search for the entry called primary_hostname and add the hostname of system:
primary_hostname = server.hostname.com
5. [...]

Install php - GD on Plesk with linux server

Hello,
The Plesk Hosting software package is a commercial hosting automation software. It allows to setup set up new websites, email accounts, and DNS entries through a web-based interface.
The php gd package contains a dynamic shared object that will add support for using the gd graphics library to PHP. If users are using popular CMS software [...]

No space left on device: mod_rewrite: could not create rewrite_log_lock

Hello,
If you are getting
No space left on device: mod_rewrite: could not create rewrite_log_lock
error while restrating apache then do this to fix it (replace “apache” with the name of the
user apache runs as):
ipcs -s | grep apache | perl -e ‘while () { @a=split(/s+/); print `ipcrm sem $a[1]`}’
Enjoy..
Bookmark Me

Install Mod_perl on cpanel server

This set of instructions will show you how to easily install mod_perl onto a cpanel server.
1) Create a new account, or choose an existing account where you will install mod_perl. I typically choose either the rvskin admin account or fantastico admin account. This tutorials will assume you install it in the rvadmin account.
2) SSH into [...]

Change MYSQL Root Password

Forgot the MySQL root password :
First you will have to stop the MySQL service on the server.
# service mysqld stop
Start MySQL as
# /usr/bin/safe_mysqld –skip-grant-tables &
Or
# /usr/bin/mysqld_safe –skip-grant-tables &
safe_mysqld is a script that starts mysqld and traps any forceful terminationof the MYSQL server and it privents any database corruption.
Change the password for root user as
# mysql [...]

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               [...]

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 [...]

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 [...]