Author: bob
• Wednesday, January 20th, 2010

To get IIS to serve content off of Cloud Storage follow the below steps;

i) You need to create a local user account with the same username and password that you use to access Cloud Storage.

ii) Now you should go to Home Directory tab for your Web site in IIS. Choose A share located on another computer and put the path to Cloud Storage content in the Network directory box then click “Connect” as and enter the username and password you created same as Cloud Storage credentials.

iii) Now go too the Directory Security tab for your Web site in IIS. Click Edit for Authentication and access control. For Enable anonymous access, enter the same local username and password (same as your Cloud Storage credentials).

if it does not work you may need to uncheck Integrated authentication.

Author: bob
• Sunday, November 08th, 2009

APF-Advanced Policy Firewall is a firewall system- a subset of features which is ideal for deployment of advanced policy firewall system in many server environments based on Linux.

Here is the installation process;

Requirements:
- Root SSH access to your server

Lets begin!
Login to your server through SSH and su to the root user.

* cd /root/downloads or another temporary folder where you store your files.

* wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz

* tar -xvzf apf-current.tar.gz

* cd apf-0.9.5-1/ or whatever the latest version is.

* Run the install file: ./install.sh
You will receive a message saying it has been installed

.: APF installed
Install path: /etc/apf
Config path: /etc/apf/conf.apf
Executable path: /usr/local/sbin/apf

* Lets configure the firewall: vi /etc/apf/conf.apf
You should check README and the configuration for an explanation of each feature since the detail here is not that much sufficient to further guide you.

We like to use DShield.org’s “block” list of top networks that have exhibited
suspicious activity.
FIND: USE_DS=”0?
CHANGE TO: USE_DS=”1?

* Configuring Firewall Ports:

Cpanel Servers
We like to use the following on our Cpanel Servers

Common ingress (inbound) ports
# Common ingress (inbound) TCP ports -3000_3500 = passive port range for Pure FTPD
IG_TCP_CPORTS=”21,22,25,53,80,110,143,443,2082,2083, 2086,2087, 2095, 2096,3000_3500?
#
# Common ingress (inbound) UDP ports
IG_UDP_CPORTS=”53?

Common egress (outbound) ports
# Common egress (outbound) TCP ports
EG_TCP_CPORTS=”21,25,80,443,43,2089?
#
# Common egress (outbound) UDP ports
EG_UDP_CPORTS=”20,21,53?

Ensim Servers
This should work on Ensim servers as stated by other users bu I am not sure about this.

Common ingress (inbound) ports
# Common ingress (inbound) TCP ports
IG_TCP_CPORTS=”21,22,25,53,80,110,143,443,19638?
#
# Common ingress (inbound) UDP ports
IG_UDP_CPORTS=”53?

Common egress (outbound) ports
# Common egress (outbound) TCP ports
EG_TCP_CPORTS=”21,25,80,443,43?
#
# Common egress (outbound) UDP ports
EG_UDP_CPORTS=”20,21,53?

Save the changes: :wq

* Starting the firewall
/usr/local/sbin/apf -s

Other commands:
usage /usr/local/sbin/apf [OPTION]
-s|–start …………. load firewall policies
-r|–restart ……….. flush & load firewall
-f|–flush|–stop …… flush firewall
-l|–list ………….. list chain rules
-st|–status ……….. firewall status
-a HOST|–allow HOST … add host (IP/FQDN) to allow_hosts.rules and
immediately load new rule into firewall
-d HOST|–deny HOST …. add host (IP/FQDN) to deny_hosts.rules and
immediately load new rule into firewall

* Now you can change the DEV option
You need to Stop the firewall from automatically clearing itself every 5 minutes from cron.
change it to “0? after you’ve had a chance to ensure everything is working well and tested the server out.

vi /etc/apf/conf.apf

FIND: DEVM=”1?
CHANGE TO: DEVM=”0?

Save your changes! :wq
Restart the firewall: /usr/local/sbin/apf -r

* New - Make APF Start automatically at boot time
To autostart apf on reboot, run this:

chkconfig –level 2345 apf on

To remove it from autostart, run this:

chkconfig –del apf

Author: bob
• Tuesday, November 03rd, 2009

If you have a some knowledge about the computer and internet then you must be well aware of the problems one can face when you loss your important data. It is important that you should make sure that your all important data are secure in some or the other ways so that the important data is not lost in case of any unforeseen circumstances. To make safe your data you will have to create a backup for the important data. Backup iwill make a copy of the data is saved in a secured area.

If you have a website you can download easily entire data of your website such as your databases, home directory, email forwarders configuration, email filters configuration to your computer using cPanel. However, these backups are not the automatically scheduled backups. You must be server owner / administrator level login for getting automatically scheduled backup. It is possible for you to backup and download the following:-

* Full backups

* Home directory backup

* MySQL database backup

* Email forwarders or filters backup

* It is also possible for you to restore the following:-

1) Home directory backup

2) MySQL database

3) Email forwarders or filters

Creating a full backup:-

If you have already a full backup you can easily create an archive of all the files and configurations on your website. You need to just move your account to another server, or to keep a local copy of your files. However you cannot restore Full Backups through your cPanel interface.

Below are the few easy steps which will allow you to create a full backup:-

Just set the following:-

Backup destination- You will have to select the location where you want to save the backup copy. Your choices include the following:

1) Home Directory

2) Remote FTP Server

3) Remote FTP Server (Passive mode transfer)

4) Secure Copy (scp) - “Notice” if you choose the secure copy option ( scp ) option, continue with the “FTP/SCP settings” otherwise, move on to the step 3 below.

FTP/SCP settings

1) Email Address: - Enter the email address where cPanel can send a confirmation email to you when your full backup has been created.

2) Remote server (FTP/SCP only):- Enter the name of the remote server (host name, IP address) where you are sending your backup file.

3) Remote user (FTP/SCP only):- Enter the username of the remote server login where you are sending your backup file.

4) Remote Password (FTP/SCP only):- Enter the password of the remote server where you are sending your backup file.

5) Port (FTP/SCP only):- Enter the port of the remote server where you are sending your backup file.

6) Remote dir (FTP/SCP only):- Enter the directory name of the remote server where you are sending your backup file.

Now you only have to click on generate backup button.

The following statement will be seen:-

“Once you completed the full backup of your account you will receive an email message to the address you specified EMAIL_ADDRESS”

Now you can Click on following the link once you receive the confirmation email. You will see an entry in the “Backups Available for Download.” You can download the backup file at any time.

Hope the above information would have been helped you to create backup for your website.

Author: bob
• Sunday, October 18th, 2009

Whenever using CS3-Adobe Illustrator on Windows Vista 64 bit, you may notice unanticipated errors however with a few couple of easy tweaks, you can remove these errors by informing Windows Vista 64 bit to run Adobe Illustrator CS3 in a different compatibility mode. This will notify Windows Vista 64 bit to run Adobe Illustrator CS3 in a different OS that simulates a earlier version of Windows. You can follow the following steps to run Adobe Illustrator CS3 in Windows XP SP2 or SP3 compatibility mode!

Start by closing Adobe Illustrator CS3 if it’s already open.

Step 2

Find the shortcut icon used to launch Adobe Illustrator CS3.

Step 3

Now Right-click on the shortcut icon and choose “Properties”.

Step 4

Click on the “Compatibility” tab.

Step 5

Under the “Compatibility mode” section, enable the option called “Run this program in compatibility mode for.

Step 6

From the drop-down menu now you can choose “Windows XP (Service Pack 2)” or “Windows XP (Service Pack 3)”.

Step 7

Click on “OK” to save your settings and continue.

Step 8

Now CS3-Adobe Illustrator should work properly with no errors.

Author: bob
• Tuesday, May 05th, 2009

Magento™ is built on open-source technology- a feature-rich eCommerce platform that provides online merchants with exceptional flexibility and enable users to control over the look, content and improve on functionality of their eCommerce store. Magento software is very usable one which requires extensive resource, Magento templates have the structure that fits well to operate a shopping cart. Not many hosting companies support Magento because many people use oscommerce, Zen Cart, Cube Cart and other shopping cart, obviously they are nice too, but to try something new is always good.

To host magento site you will need fastest-optimised Magento server, fully managed. It would be best if you find a host provider those provide you magento optimized server on their shared plans that mean your website will always be ready for increases in traffic and resources.

Try to find a hosting company that provide one click Magento install, and provide you SSL Certificate and offer you all the benefit of the reliability and speed, preferably they should have trained techs to handle any technical query related to magento because as an online merchant you should make sure that you minimize downtime, bounce rate if any and keep your customers fixed on buying products from your store.

Category: vps server | Tags:  | One Comment
Author: bob
• Tuesday, April 14th, 2009

A shared hosting plan represents a service where a number of websites reside on a single server, each website has its own partition and it is kept separate from other sites. This is the most economical version of a Linux hosting plan.

The most important feature in any hosting plan is the support team, many hosting company provide 24×7 support to their clients, even though you choose a cheaper solution, that doesn’t mean you don’t need quality services.

Many businessmen operating their business globally using a shared host. Remember, you share your space with a number of other users, so if there are problems, the larger the numbers of users, so it will be easier to get the attention you need from your hosting providers.

Choosing a reliable shared host does not take a lot of time, however you need to spend time to surf on the internet to find most reliable hosting company that can provide you high quality services. Every service which are reliable and stable generally are customer oriented, and therefore your opinions will be heard and accounted for. In shared hosting, the provider is generally responsible for managing servers, security updates, installing server software, technical support, and other aspects of the service so you need not to worry about maintenance of your server and the technical issues.

Most of the hosting services have generally similar plan, and also the prices are not very far apart. Most of them offer almost similar prices for shared hosting however few of them may charge additional fees. Also most of them offer 30 days money back guarantee so before finalizing a hosting company you should opt for a free trial without paying any additional fees. A true host take all possible measure to ensure that your online business grow and become successful and prosperous.

Category: shared hosting  | One Comment
Author: bob
• Friday, March 06th, 2009

Many hot keys are added to windows 7, Microsoft want to accelerate the navigation and usage of windows 7 to the next level, here are some of useful shortcuts that include windows Aero snapping feature too.

Windows + ? (Up Arrow) - Maximize window

Windows + ? (Left Arrow) - Snap window to left side covering half of desktop space.

Windows + ? (Right Arrow) - Snap window to right side covering half of desktop space.

Windows + ? (Down Arrow) - Minimize the window.

Alt+P Display/ hide the Explorer preview pane

Windows Logo+G Display gadgets in front of other windows

Windows Logo++ (plus key) Zoom in, where appropriate

Windows Logo+- (minus key) Zoom out, where appropriate

Windows Logo+Up Maximise the current window

Windows Logo+Down Minimise the current window

Windows Logo+Left Snap to the left hand side of the screen

Windows Logo+Right Snap to the right hand side of the screen

Windows Logo+Home Minimise/ restore everything except the current window

Other popular or common keyboard hotkeys which are already been used in Windows Vista:

Windows + D - Show desktop and restore desktop (minimize or restore all windows).

Windows + M - Minimize all windows.

Windows + T - Show preview thumbnail of running apps in Windows Taskbar one by one without mouse over.

Windows + P - Display options.

Windows + F - Search window.

Windows + G - Bring all gadgets on top and foreground.

Windows + X - Run Windows Mobile Center.

Windows + R - Open ‘Run’ command.

Windows + E - Run Windows Explorer.

Windows + L - Lock the computer.

Windows + [number] - Activate and run the program pinned on Windows 7 Taskbar

If you want to add more useful windows 7 shortcuts please feel free to add..

Category: Uncategorized | Tags:  | One Comment
Author: bob
• Saturday, February 21st, 2009

Errorlytics. is a new service out there that can provide solutions for Fix website 404 errors smoothly, Errorlytics easily centralizes reporting and handling of 404 “Page Not Found” errors for your websites and the tools transparently fix the problems quickly and easily so they never happen again. No more messing with your .htaccess file for search engine friendly redirects. Errorlytics handles it all, smoothly. The end results are better user experiences and higher search engine rankings for your websites.

Errorlytics. service will track your web site’s 404 page not found errors, transparently redirect users away from the 404 pages, and increase your web site’s SEO (search engine optimization).  Sounds like very easy solutions for getting rid from 404 errors. J

I am just trying this service out myself, but if you have already tried out please post your feedback.

Author: bob
• Friday, February 06th, 2009

Periodically, MySQL tables have an affinity of corrupting themselves. However MySQL offers a easy and speedy method of repairing those tables.

Here are few steps that can help you to repair the corrupt MySQL tables;

Login to your VDS via SSH and change directories to the database that is having problems.

cd /usr/local/mysql/var/[DBNAME]/

You will need to replace [DBNAME] with the actual name of your database.

Stop the MySQL server:

/etc/rc.d/init.d/mysql stop

NOTE: Accounts created before July 7th, 2003 will want to use:

/etc/rc.d/init.d/mysqld stop

To check the tables:

myisamchk *.MYI

To repair tables:

myisamchk -r *.MYI

Restart MySQL:

/etc/rc.d/init.d/mysql start

NOTE: Accounts created before July 7th, 2003 will want to use:

/etc/rc.d/init.d/mysqld start

Alternatively, if you do not want to shut down MySQL, you can use mysqlcheck.

mysqlcheck [DBNAME]

To repair the database tables:

mysqlcheck -r [DBNAME]

You will need to replace [DBNAME] with the actual name of your database.

For additional help and documentation you can refer this:
dev.mysql.com/doc/mysql/en/Table_maintenance.html
dev.mysql.com/doc/mysql/en/Using_mysqlcheck.html

Also you can -repair table tablename use_frm which will repair even the most stubborn table

Author: bob
• Thursday, September 25th, 2008

To provide security to Kernel and linux Openwall ( a security-enhanced GNU/*/Linux-based server platform ) The following was basically installed on Redha Linux. You will need to do the following :

cd /usr/src
get ftp://ftp.kernel.org/pub/linux/kernel/version/linux-version
tar zxvf linux-version
ln -s linux-version linux
wget http://www.openwall.com/linux/linux-version-ow1.tar.gz
cp cp linux-version-ow1/*diff .
patch -p0 < linux-version-ow1.diff

Redhard kernel Configuration file needs to be copied.

cd /usr/src/linux
cp /boot/config-version.EL /usr/src/linux/.config
make oldconfig

Settings that were received :

CONFIG_HARDEN_STACK=y
# CONFIG_HARDEN_STACK_SMART is not set
CONFIG_HARDEN_LINK=y
CONFIG_HARDEN_FIFO=y
CONFIG_HARDEN_PROC=y
CONFIG_HARDEN_RLIMIT_NPROC=y
# CONFIG_HARDEN_SHM is not set

in case you receive an error for it which was as follows :

grubby fatal error: unable to find a suitable template

# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz

title Red Hat Enterprise Linux ES (version-ow1)
root (hd0,0)/grub
kernel (hd0,0)/vmlinuz-version.EL ro root=/dev/hda2 hdb=ide-scsi
initrd (hd0,0)/initrd-version-ow1.img

title Red Hat Enterprise Linux ES (version.EL)
root (hd0,0)/grub
kernel (hd0,0)/vmlinuz-version-ow1 ro root=/dev/hda2 hdb=ide-scsi
initrd (hd0,0)/initrd-version.img

# NOTICE: You have a /boot partition. This means that

# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz

title Red Hat Enterprise Linux ES (version-ow1)
root (hd0,0)/grub
kernel (hd0,0)/vmlinuz-version-ow1 ro root=/dev/hda2 hdb=ide-scsi
initrd (hd0,0)/initrd-version-ow1.img

title Red Hat Enterprise Linux ES (version.EL)
root (hd0,0)/grub
kernel (hd0,0)/vmlinuz-version.EL ro root=/dev/hda2 hdb=ide-scsi
initrd (hd0,0)/initrd-version.EL.img

To grub to point to the kernel if you find something similar you will need to edit the capability.

cd /usr/src/linux-2.4.29-ow1/optional
gcc -o stacktest stacktest.c
./stacktest -e
Attempting to simulate a buffer overflow exploit…
Segmentation fault

This should give you a start for Hardening your Kernel with OpenWall.