Showing posts from April, 2014

Solved: Solution for How to Redirect non www to www in NopCommerce

The easiest method is to update your web.config file inside the <system.webServer> node with...

              <rule name="Redirect to WWW" stopProcessing="true">
                  <match url=".*" />
                      <add input="{HTTP_HOST}" pattern="^$" />
                  <action type="Redirect" url="{R:0}" redirectType="Permanent" />

This will keep your pages, URL parameters, links etc intact but redirect from NON-WWW to WWW of your domain name. It's also an SEO friendly method.

Sending Emails through web form using authroized smtp through phpmailer - phpmailer example code

Sending e-mails via SMTP with PHPMailer and GMail
These days I tried some plugin to send e-mail message within WordPress via SMTP. Since my domains email is hosted with Google applications I decided to send my messages via the SMTP server from GMail. I found several articles and PHPMailer tutorials, but a lot of them didn’t worked for me. Why using GMail for sending mail messages? First of all it’s FREE! Sure most website owners can use their own SMTP server for sending email messages from their website, but it makes sense even than to use GMail for sending mail. The chance is big that your websites IP address is on a blacklist if your site is on hosted by a shared web hosting provider. If not or you host your site on your own server, there is always a risk that your IP address get blacklisted. Because of some limitations, the SMTP server from Google is a good choice applications with less than 500 recipients a day, check this information from the Google help pages. Requirements You …

Windows 7 – Edit the Hosts File - How to edit the windows hosts file - Host access file edition

Windows 7 – Edit the Hosts File Need to figure out how to edit the Hosts file in Windows 7? For the most part, it’s pretty much the same as Windows XP and Vista, but with a few extra hiccups! Just if case you don’t know, the Hosts file is where you can manually enter a hostname and an IP address pair, thereby bypassing the DNS server. This can be pretty useful in certain situation, especially for anyone in IT. The path to the Hosts file in Windows 7 is the same as usual: %systemroot%\system32\drivers\etc\ where %systemroot% is usually c:\windows unless you installed Windows on a different partition. By default, you cannot see these hidden folders since they are system folders. To show hidden folders in Windows 7, press the ALT key while in Explorer to bring up the File menu. Click on Tools and then Folder Options. Click on the View tab and then click on the Show hidden files, folders, and drives radio button underHidden files and folders. Now navigate to the directory above and open …

Updating ClamAV Virus Database in CPanel through SSH

There are new viruses coming up every day, and hackers mostly use such viruses and exploits to crack your server. If you have a linux box, you are most probably using CalmAV. Your server’s protection becomes outdated at the very moment a new virus is released. So it is very much important to schedule a corn job daily to update your virus databases. When CalmAV virus database is outdated it will show following message. LibClamAV Warning: ************************************************** LibClamAV Warning: ***  The virus database is older than 7 days!  *** LibClamAV Warning: ***   Please update it as soon as possible.    *** LibClamAV Warning: ************************************************** If you receive a message the one given above, run following command to update ClamAV Virus database. freshclam

how to scan and remove shell & virus whole server via WHM or SSH whit Clamav?

command for scan and remove shell & virusif you want scan /folder1

clamscan /folder1 -ir --remove=yes 

I suggest you use follow command, it will move virus/shell to a folder,
clamscan /folder1 -ir --move=/virus
How to get Help regarding ClamScan
root@pea[/home]# clamscan --help

Clam AntiVirus Scanner 0.96.1
By The ClamAV Team:
(C) 2007-2009 Sourcefire, Inc.

--help -h Print this help screen
--version -V Print version number
--verbose -v Be verbose
--debug Enable libclamav's debug messages
--quiet Only output error messages
--stdout Write to stdout instead of stderr
--no-summary Disable summary at end of scanning
--infected -i Only print infected files
--bell Sound bell on virus detection

--tempdir=DIRECTORY Create temporary files in DIRECTORY
--leave-temps[=yes/no(*)] Do not remove temporary files
--database=FILE/DIR -d FILE/DIR Load virus database from FILE or load
all supported db files from DIR
--official-db-only[=yes/no(*)] Only load official signatures
--log=FILE -l F…