Sales : +44-1616605030

Home | About Us | Support | Online Community | Blog | FAQ |

RSHosting Blogs

Archive for the 'Articles -- Webhosting' Category

Unrouteable Email Issue

Wednesday, April 11th, 2007

While sending emails from your email address and you get the error Unrouteable address with RCPT reject. That means the problem at receivers end.

Check the following things.

1. Check the domains entry is available in userdoamins.

2. Check the domains entry is is available in localdomain

3. check the domain must having catchall address set if not then set
vi /etc/valiases/domain.com

*: username

4. also make sure that the mail folder having ownership user:mail

5 restart exim services once.

6. Now your problem will get resolved.

How to change MX Record

Wednesday, April 11th, 2007

MX Record is an entry in a domain name database that identifies the mail server that is responsible for handling e-mail for that domain name.You can have website on one server and MX record on some another server and in that case you will have to ulter your MX entry in DNS zone for that perticular domain.

You can have multiple MX records for a same domain and it will check for MX record set with priority.
lowest number will receive mail first that is lower number will have highest priority.

1)You will have to login as a root in WHM

2)Go to the option called DNS Functions >> Edit DNS Zone

3)Select the domain from list and edit that domain
You will see the entries like
XYZ.com. 14400 MX 0 XYZ.com.
mail 14400 CNAME XYZ.com.

4)Suppose you want to change MX to point to the ip 176.199.1.90 then you will have to do the changes in MX record as
XYZ.com. 14400 MX 0 mail.XYZ.com.
mail.XYZ.com. 14400 A 176.199.1.90

5)Save the chnages and remove the entry for XYZ.com from /etc/localdomains.

6)Edit the /etc/remotedomains file - this tells Exim to not handle mail for this domain.
vi /etc/remotedomains
Add the domain name to this file.
Save the changes.

7)You can check the changes done in MX record for the domain at — http://www.dnsstuff.com/

Access denied for user ‘root’@’localhost’ (using password: NO)

Wednesday, April 11th, 2007

If you are getting this error message while accessing mysql from the shell then make sure that you have done
su -
from the command prompt after that fire
mysql
even if you are getting that error message then you need to reset the mysql password you can use following steps for it

first locate your mysql’s hostname.pid file then

kill `cat /mysql-data-directory/host_name.pid`
mysqld_safe –skip-grant-tables &
mysqladmin -u root flush-privileges password “newpassword”

New password will be the password that you want to set now.

How to install MySQL on Red Hat systems?

Wednesday, April 11th, 2007

MySQL is easiest to install on Red Hat systems using the RPM packages. To install MySQL in the same directory as the RPM packages use the command:
# rpm -Uvh *.rpm

Note: You most likely need to do this as the root user. Either log in or su to root.

After MySQL is installed you need to set the root password. To do this use the following commanding changing my_password to the password you want for the root user to access MySQL.
# mysqladmin -u root password ‘my_password’

Note: If the MySQL service is not running, you may have to start it by hand before trying to set the password. It should start automatically when the computer boots. The command to start MySQL is:
# /etc/rc.d/init.d/mysqld start

You can test the MySQL installation by doing the following:

# mysql mysql (connect to mysql database)
Enter Password:
mysql> SELECT * FROM user; (grab some data out of user table)

This should return the data in the user table. Type exit to leave.

How to protect a directory under Apache?

Wednesday, April 11th, 2007

This can be done with .htaccess, visitors must input username and password before they can access the protected directory.

Step 1.
Create the file “.htaccess” with the following content under the directory you want to protect, you can specify the password in any place as long as Apache can access it.

AuthUserFile /home/account/passwd/.htpasswd
AuthGroupFile /dev/null
AuthName “Title”
AuthType Basic

require valid-user

Step 2.
Generate the password file “.htpasswd” under the directory /home/account/passwd/ with the following command:
# htpasswd -c .htpasswd user_name

You will be reminded to input password for the user “user_name”, this command can be called multi times to generate multi users.

Step 3.
This step may not be necessary. If there is an entry about the directory you want to protect in Apache configuration file, make sure AllowOverride has the option authconfig.

For example, when protecting Awstats pages, the Apache configuration file should be modified as following:


Options None
AllowOverride authconfig
Order allow,deny
Allow from all

Restart Apache
# /usr/local/sbin/apachectl restart

Default my.cnf file

Wednesday, April 11th, 2007

If you are not aware of my.cnf files configuration and want to use mysql server to optimize your database usage then replace this configuration file.
————————————————————————————
[mysqld]
socket = /var/lib/mysql/mysql.sock
safe-show-database
old-password=1
max_connections=500
interactive_timeout=100
wait_timeout=30
connect_timeout=30
thread_cache_size=8
key_buffer=32M
join_buffer=8M
max_allowed_packet=32M
table_cache=1024
sort_buffer=32M
record_buffer=8M
thread_cache_size=128
max_user_connections=30

thread_concurrency=4
myisam_sort_buffer_size=64M
query_cache_limit=2M
query_cache_size=32M
query_cache_type=1

old-passwords = 1

[safe_mysqld]
err-log=/var/log/mysqld.log
open_files_limit=8192

[mysqldump]
quick
max_allowed_packet=32M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_bufer=16M

[myisamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M

[mysqlhotcopy]
interactive-timeout

Robots.txt file

Wednesday, April 11th, 2007

Robots.txt file is a simple text file which is responsible for preventing crawling of your site’s pages. Suppose you have certain pages which are not SE friendly such as pages including repeated keywords, some hidden tags with keywords and some other bugs which may be responsible for getting your site banned from search engines.

The robots.txt file is a simple text file which can be created using Notepad.
It should be saved at root directory of your site. eg.http://www.yoursitename.com/robots.txt.

Format :
User-agent: robot or spider name
Disallow: files or directories
.

If you want to exclude all the search engine spiders from your entire domain, Just use this tiny code, but be sure you need it.
User-agent: *
Disallow: /

If you want to prevent your certain directories, you can specify them in Disallow field.
User-agent: *
Disallow: /directoryname1/
Disallow: / directoryname2/

Similarly if you want to restrict specific files then type in the path of the files.
User-agent: *
Disallow: / directoryname1/filename.html

If you don’t want certain spiders crawling your site, which are not useful for you or are just eating up your bandwidth, you can specify them in User-agent. Eg. You don’t want bot of Alta vista (Scooter) from crawl your whole site use following code.
User-Agent: Scooter
Disallow: /

While using robots.txt file you should be careful, It may stop your specified pages from appearing in search engines.There are many hundreds of bots and spiders crawling the Internet, most of them respect your robot.txt file while some may not.

Note :

(*) You can include comments in your robots.txt file, by putting a pound-sign (#) at the front of the line to be commented.
(*) You can find the names of robots which are crawling around your site in your log file..

Common Outlook Errors

Wednesday, April 11th, 2007

Sometimes we get some errors while using outlook express but we can’t understand what they mean and what could be the solution for that.

Following are the usual errors codes with their solutions ;

0×800CCC00 - Authentication did not load.
Solution :
*) Try closing and restarting Outlook express
*) If still getting same error, wait 20-30 minutes for a server reset of your account then try again.
*) It could be a corruption of the user account in Outlook Express. Try setting up a second identity and see if it works.

0×800CCC01 - INVALID CERTIFICATE CONTENT
0×800CCC02 INVALID CERTIFICATE DATE
Solution :
*) Get your certificate re-issued by your authority server.

0×800CCC03 - USER ALREADY CONNECTED
Solution :
*) Close all connections on all machines, wait 20-30 minutes and try again.
*) If you are not logged in on another machine or poplocked then someone may be using/downloading from your account or something is wrong with your account.
*) Sometimes due to improper disconnection your account gets ‘Poplocked’ so to get out of it either wait 20-30 minutes for it to time out or get somebody to shell into the mail server and stop the mail task that is running on the account.

0×800CCC05 NOT CONNECTED TO SERVER
0×800CCC0D CANT FIND HOST - Cannot locate server
Solution :
*) You may have typed wrong mail server in your account settings or the server may be down.
*) Reboot the computer and try again.
*) Data may not be moving across the network properly. Check DNS numbers, remove and then reinstall TCP/IP in Control Panel > Network.

0×800CCC0A MESSAGE DOWNLOAD INCOMPLETE
0×800CCC19 TIMEOUT
Solution :
*) This error may be due to corruption of pop3uidl file. Close the Internet connection and all programs. Search for the file ‘pop3uidl and delete it. Reconnect and it should work.

0×800CCC0F CONNECTION DROPPED
Solution :
*) may be modem or network cable was disconnected. If this happens frequently then try updating the modem drivers or adding an Init string.

0×800CCC10 INVALID ADDRESS - Address not known on server
Solution :
*) Check the spelling in the TO: field of the e-mail. Delete the old message from the Outbox and then try it again.

0×800CCC12 SOCKET READ ERROR - Unable to send Winsock request
Solution :
*) Remove the TCP/IP protocol and reinstall it. In windows, go into Network from the Control Panel. NOTE: You may need your Windows CD for this task!

0×800CCC16 INVALID ACCOUNT - User account not recognized
Solution :
*) Check the spelling of the account name and re-enter the password taking care to spell it correctly.

0×800CCC18 SICILY LOGON FAILED - Logon attempt failed
Solution :
*) Check account information, making sure account is not case sensitive, close Outlook Express, restart the computer and try reconnecting.
*) Create a different identity and see if it will logon on from this identity with the same information.
*) Make sure the account is still active with the ISP.

0×800CCC1A SECURE CONNECT FAILED - Unable to connect using SSL
Solution :
*) Your ISP may not require an SSL connection. Turn off SSL in the e-mail account properties and try again.

What is Web-Based Email ?

Wednesday, April 11th, 2007

What is Web-Based Email ?

Web-Based Email is an Internet-based email system that lets you send and receive
email messages from a Web browser. All you need to use Web-Based Email is an Internet
connection and the Internet Explorer Web browser (Internet Explorer v5.5 or later).
How do I access my Web-Based Email account ?
You can log on to your Web-Based Email account from your Web browser by going
to the Web address for your account. The Web address is the same as your domain
name, except you replace “www” with “email”. For example, if your Web address
is “www.example.com”, your email address is “email.example.com”.

| About Us | UK Reseller Hosting | US Reseller Hosting | Support | Faq | FOR INFORMATION info@rshosting.com
Copyright 2003 - 2008: RSHosting. All Rights Reserved. | Terms of Use | Privacy Policy