• Welcome to Web Hosting Forum - A Web Hosting Community for Webmasters.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Kevin

#1
Hi,

I have few domains registered with Godaddy registrar. I have recently purchase Amazon EC2 service from Amazon. How can I point my Godaddy domains to my Amazon EC2 instance?

I am new to Amazon EC2 cloud.

Thanks!
Kevin
#2
Plesk Billing is one of the widely used billing system now a day. The admin panel looks like plesk control panel. Seems they are trying to make all interface same.

Kevin
#3
MySQL / Re: MySQL backup problem via PHPMyAdmin
December 19, 2008, 01:09:30 AM
It is not recommended to take the backup of the large MySQL database from PHPMyAdmin because there is a risk that it doesn't take the full backup of your database due to large size. You will need to take the backup from command line.

Generally it downloads the incomplete database due to time out in the PHP script.

Kevin
#4
Quote from: "Alex"Hi,

What are the recommended Wordpress plugins for search engine optimization and which plugins are you using in your Wordpress blog ?

I am using two plugins for Search Engine Optimization. They are as follow:

[1] All in one SEO plugin.
This plugin rewrite the URL as well as you can add your blog name in title of each post.

[2] Google sitemap generator
This plugin generates the sitemap whenever there is a change in the blog (new post, comments, post updates or edit etc.) It also pings to Google, Yahoo, MSN, Ask whenever it generates the sitemap.

Kevin
#5
Microsoft IIS / Re: Rewrite rules in IIS
December 19, 2008, 01:03:16 AM
Yes, you can install ISAPI rewrite software provided by HeliconTech. It is IIS module and ISAPI filters for URL rewriting. There is free and paid version available for this software. For more details, visit their web site http://www.helicontech.com/.

Kevin
#6
You do not need to assign the dedicated IP address of your each sub-domain. You just need to assign the dedicated IP address to your main domain.

Kevin
#7
How Tos / Rkhunter installation Guide
November 26, 2008, 10:48:47 AM
Rkhunter is a very useful tool that is used to check for trojans, rootkits, and other security problems. It is highly recommended to install it on your Linux base server. Below is the guide line to install it:

[1] Download Rkhunter from the below link:
http://sourceforge.net/projects/rkhunter/
[2] Untar the installation file using the below command:
tar -zxvf downloaded_file_name
[3] Go to Rkhunter using the below command:
cd rkhunter-version_numberJust type ls and you will get the name of rkhunter  directory.

[4] Install it using the following command:
./installer.sh
Now you can run it manually using the below command:
/usr/local/bin/rkhunter -c
You can setup in daily cron to run it automatically. To add it in daily cron follow the below steps:

pico /etc/cron.daily/rkhunter.sh
Now add the following line:
#!/bin/bash
(/usr/local/bin/rkhunter -c --cronjob 2>&1 | mail -s "Rkhunter Report" youremail@domain.com)

rkhunter.sh file should have execute permission. You can do it using

chmod +x /etc/cron.daily/rkhunter.sh
Regards,

Kevin
#8
How Tos / E-mail Alert on Root SSH Login
November 26, 2008, 10:35:22 AM
It is essential that you have been notified whenever someone login to your server. On the server, you can set an email alert when someone login to your server as root.

[1] Login to your server as a root user.

[2] Type the below command:
pico /root/.bashrc

[3] Scroll down to the end of the file and add the following line:

echo 'Root Shell Access on your [ServerName] on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" <a href="mailto:[email protected]">[email protected]</a>

[4] Save the file and exit from SSH. Now login to your server and check whether you are receiving the email alert or not.

Regards,

Kevin
#9
Linux / Newbie Linux Server Administration Guide
November 26, 2008, 10:28:25 AM
Hi,

Let us start a thread to describe some commonly used Linux commands to manage the server. Probably this will help to the newbie who have less knowledge.

[1] To check the running processes:
top
Description: This command will display the current running processes on the server. This will help to monitor the current running processes. For more options of this command go through the manual of this command.

man top
[2] To list the files and folders:
ls
Description:
This is command will list the files and folders which are in current directory. For more options of this command go through the manual of this command.

man ls
[3] To check running process by particular user:
ps
Description:
By adding some parameters to this command you can grep the processes owned by particular user:

ps auxf | grep username
Regards,

Kevin
#10
Linux / Re: Backup MySQL database via cron on Linux
November 25, 2008, 10:04:22 AM
Hi Ramesh,

Thanks for sharing it.

Kevin
#11
It is a good idea to disable root login via SSH. It reduces the security risk. It is also recommended to use SSH protocol 2 and disable SSH protocol 1. SSH protocol 2 is more secure than SSH protocol 1. Following are the steps to disable direct root login and to disable SSH protocol 1:

[1] Login as a 'root' to your server.
[2] Open /etc/ssh/sshd_config file.
Quotepico -w /etc/ssh/sshd_config
[3] Find the below text within file:
QuoteProtocol 2, 1
[4] Uncomment the above line and change it as follow:
QuoteProtocol 2
[5] Now, search the below text:
QuotePermitRootLogin yes
[6] Uncomment the above line and set as follow:
QuotePermitRootLogin no
[7] Save the file and restart SSH service using the below command:
Quote/etc/rc.d/init.d/sshd restart

Now, no one will be able to login as root directly. They have to use su - to get the root access. You will need to add your user to wheel group in cPanel otherwise you will not be able to use su command.

Regards,

Kevin
#12
Go for Smartermail 5.5.X which has better anti spam solution as well as you will get good statistics of your server in Smartermail.

Kevin
#13
Smartermail 5.5.X is now out.

Kevin
#14
Smartermail 5.5 is now available which has better anti spam capability then Smartermail 4. If you want to integrate any other third party anti spam solution then I would suggest Declude with Smarter as it is easy to integrate it with Smartermail. Please note that such anti spam software require high resources on the server and it may slow down the performance if you have low configuration server.

Kevin
#15
How Tos / How to redirect using META Tags
November 04, 2008, 02:44:45 AM
Hi,

Sometime you may need to redirect your html or htm (static pages to another URL). You can do this using the META tag redirection. you just need to add the following code in your code to redirect the page:

<META http-equiv="refresh" content="1;
             URL=http://www.webhostingdiscussion.net">

Regards

Kevin
#16
I think the below steps will help you to fix the problem:

1) Install spamd and spamc:

cd /usr/local/directadmin/scripts
./spam.sh

2) Start the spamd:

/usr/bin/spamd -d -c -m 15
3) In order to get exim to use the spamd program, you'll need to make some changes in your /etc/exim.conf. Change:

# Spam Assassin
#spamcheck_director:
#  driver = accept
#  condition = "${if and { \
#      {!def:h_X-Spam-Flag:} \
#      {!eq {$received_protocol}{spam-scanned}} \
#      {!eq {$received_protocol}{local}} \
#      {exists{/home/${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}/.spamassassin/user_prefs}} \
#      {<{$message_size}{100k}} \
#    } {1}{0}}"
#  retry_use_local_part
#  transport = spamcheck
#  no_verify
to

# Spam Assassin
spamcheck_director:
  driver = accept
  condition = "${if and { \
      {!def:h_X-Spam-Flag:} \
      {!eq {$received_protocol}{spam-scanned}} \
      {!eq {$received_protocol}{local}} \
      {exists{/home/${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}/.spamassassin/user_prefs}} \
      {<{$message_size}{100k}} \
    } {1}{0}}"
  retry_use_local_part
  transport = spamcheck
  no_verify

4) Restart exim:
Redhat:

/sbin/service exim restart
FreeBSD:
/usr/local/etc/rc.d/exim restart
The global spamassassin config file is in /etc/mail/spamassassin/local.cf

You'll want to make sure that you have the correct call to spamc in the spamcheck transport in your exim.conf:

transport_filter = /usr/bin/spamc -u ${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}
If you run debian and are missing perl or some pm files, type:

apt-get install perl-base perl-modules
Source: http://help.directadmin.com/item.php?id=36

Kevin
#17
Please try below:

- Log in as admin to  your Plesk control panel.
- In the server administration (click "Server" in the menu), click "Mail".
- Select the tab "Maximum letter size and relay mode parameters".
- Check the box "POP 3 lock time"
- Click Set
- Restart psa

Regards,

Kevin
#18
One of the common error in cPanel after installation is:

/usr/bin/crontab permissions are wrong. Please set to 4755

An easy fix for this error is:

- Login to your server via SSH and shoot out the following command:
- chmod 4755 /usr/bin/crontab

Please note that you will require root access to the server to change the permissions of crontab.

Kevin
#19
Hi,

Are you referring to maximum file size upload limit (upload_max_filesize) in php.ini or maximum allowed packet for mysql (max_allowed_packet)?

To increase the file upload limit for php, just edit your php.ini and set the desired value for upload_max_filesize. You may need to restart Apache or IIS after modifying the php.ini file. To know the php configuration path, just create a new file with .php extension and write the below code:

<?php
phpinfo
();
?>
Look at the path set for "Loaded Configuration File".

And to increase the MySQL packet, edit your my.cnf (Linux server) or my.conf (windows), and set the desired value for max_allowed_packet. You will need to restart mysql after making the changes.

Kevin
#20
It is simple process to install PHPMailer on Windows server. You just need to upload PHPMailer class file inside the 'includes' folder of your PHP installation. Generally the include folder in locate inside your PHP installation directory (c:\php\includes). Make sure you have added this include path in your php.ini files.

That's it.  :)

Kevin
#21
Other Web Hosting Stuff / Windows or Linux Hosting ??
October 05, 2008, 10:36:51 PM
Hi,

Which hosting platform are you using for your web site?

For me it's Linux.

Kevin
#22
Not sure but I think it take 3-4 business days.

Kevin
#23
Domain Registration / Re: Prices are hiked for gTLDs
October 02, 2008, 10:36:27 AM
Yes, most of the registrars have hiked the prices of gTLD domains from Oct 1.

Kevin
#24
The easy and simple way to disable ASP session state is to add the following code in the starting of your Active Server Page (ASP):

<%@ EnableSessionState=False %>

Please note that the above code should be the first line in your page otherwise it will give you an error.

Kevin
#25
I will select PHPbb3 for free forum and as a paid forum first I will go for vBulletin and then IPB.

Kevin
#26
Quote from: "Mike"2Checkout is now accepting payment via PayPal too. I am not the user of PayPal but it seems it's easy to use it and also it looks like it is fast payment method too. It is good for the the people who do not have credit card.
That's great news. Now, if you do not have credit card then also you can make the payment using 2checkout.

Kevin
#27
How Tos / Disable manually update Awstats from cPanel
September 28, 2008, 08:45:19 PM
Many host allow to update the Awstats of the domain from 'Update Now' link on Awstats page. However, it consumes some additional server resources if you are updating the stats of some high traffic web site. This option should be disabled in shared hosting server. If you are unsure on how to disable it then the below steps will help you:

[1] Login to your WHM.
[2] Go to Tweak Settings.
[3] Uncheck the option "Allow users to update Awstats from cPanel" and save it.

Regards,

Kevin
#28
How Tos / Disable PHP mail function on cPanel server
September 28, 2008, 02:49:29 PM
There is a function available in PHP to send a mail via PHP script. The function is mail(). However, it is advisable to disable PHP mail() function on the shared hosting server to prevent spamming from the server and allow only SMTP authentication to send the emails via PHP script. You can disable PHP mail() function from WHM. You will just need to follow the below steps for that:

[1] Login to your WHM.
[2] Go to Tweak Settings.
[3] Select the option "Prevent the user "nobody" from sending out mail to remote addresses (PHP and CGI scripts generally run as nobody if you are not using PHPSuexec and Suexec respectively.)" and save it.

Regards,

Kevin
#29
How Tos / Disable BoxTrapper Spam Trap for cPanel server
September 28, 2008, 02:37:17 PM
There is a feature called BoxTrapper Spam Trap in cPanel. If you have enabled this option for your domain then whenever anyone sends email they will need to reply the automated mail generated by BoxTrapper Spam Trapper and then you will receive the email to your account. However, it is advisable not to enable this option. You can disable this option server wide by following the below steps:

[1] Login to your WHM.
[2] Go to Tweak Settings.
[3] Uncheck BoxTrapper Spam Trap option and save it.

Regards,

Kevin
#30
How Tos / Disable SpamAssassin for entire cPanel server
September 28, 2008, 02:31:51 PM
You can disable SpamAssassin for your entire server by following the below steps:

[1] Login to your WHM.
[2] Go to Tweak Settings.
[3] Uncheck SpamAssassin Spam Filter option and save it.

If you are not using SpamAssassin in your server, you can also disable SpamAssassin service. To disable it:

[1] In WHM -> Go to Service Manager.
[2] Uncheck Enabled and Monitor option for spamd.

Regards,

Kevin